{"id":48395644,"url":"https://github.com/naver-ai/chacha-chatbot","last_synced_at":"2026-04-06T01:21:44.024Z","repository":{"id":219298937,"uuid":"663304636","full_name":"naver-ai/chacha-chatbot","owner":"naver-ai","description":null,"archived":false,"fork":false,"pushed_at":"2025-12-29T04:54:36.000Z","size":1276,"stargazers_count":41,"open_issues_count":2,"forks_count":5,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-01T01:05:06.931Z","etag":null,"topics":["ai","chatbot","conversational-agents","emotion","hci"],"latest_commit_sha":null,"homepage":"https://naver-ai.github.io/chacha","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/naver-ai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-07-07T02:31:39.000Z","updated_at":"2025-12-22T04:57:23.000Z","dependencies_parsed_at":"2025-09-24T10:24:58.871Z","dependency_job_id":null,"html_url":"https://github.com/naver-ai/chacha-chatbot","commit_stats":null,"previous_names":["naver-ai/chacha-chatbot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/naver-ai/chacha-chatbot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naver-ai%2Fchacha-chatbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naver-ai%2Fchacha-chatbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naver-ai%2Fchacha-chatbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naver-ai%2Fchacha-chatbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/naver-ai","download_url":"https://codeload.github.com/naver-ai/chacha-chatbot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naver-ai%2Fchacha-chatbot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31455820,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T21:22:52.476Z","status":"ssl_error","status_checked_at":"2026-04-05T21:22:51.943Z","response_time":75,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","chatbot","conversational-agents","emotion","hci"],"created_at":"2026-04-06T01:21:43.423Z","updated_at":"2026-04-06T01:21:44.019Z","avatar_url":"https://github.com/naver-ai.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![image](https://img.shields.io/badge/language-Python3%7CTypeScript-blue)\n![image](https://img.shields.io/badge/framework-FastAPI%7CReact-orange)\n![image](https://img.shields.io/github/license/naver-ai/chacha-chatbot)\n\n# ChaCha (CHAtbot for CHildren's emotion Awareness): LLM-Driven Chatbot for Enhancing Emotional Awareness in Children\n\n![image](screens.jpg)\n\nThis repository is a source code of the chatbot implementation presented in the ACM CHI 2024 paper, titled \"**ChaCha: Leveraging Large Language Models to Prompt Children to Share Their Emotions about Personal Events**.\"\n\n\u003e Woosuk Seo, Chanmo Yang, and Young-Ho Kim. 2024.\u003cbr/\u003e\n\u003e ChaCha: Leveraging Large Language Models to Prompt Children to Share Their Emotions about Personal Events.\u003cbr/\u003e\n\u003e In Proceedings of ACM CHI Conference on Human Factors in Computing Systems (CHI'24). To appear.\n\n## Project Website\nhttps://naver-ai.github.io/chacha/\n\n## System Requirements\n1. Python 3.11.2 or higher\n2. [Poetry](https://python-poetry.org/docs/) - Python project dependency manager\n3. NodeJS and NPM - tested on 18.17.0\n4. Paid OpenAI API key (ChaCha uses GPT-3.5 and GPT-4 models internally).\n\n## How To Run\n### Installation\n1. In the root directory, install dependencies using `poetry`.\n```shell\n\u003e poetry install\n```\n\n2. Install frontend Node dependencies\n```shell\n\u003e cd frontend\n\u003e npm install\n\u003e cd ..\n```\n\n4. Run the setup script and follow the steps. It would help if you prepared the OpenAI API Key ready.\n```shell\n\u003e poetry run python setup.py\n```\n\n### Testing Chatbot on Command Line\n3. Run chat.py on the command line:\n```shell\n\u003e poetry run python chat.py\n```\n\n### Testing Chatbot on Web\n\n#### Running in development mode\n1. **Run backend server**\n    ```shell\n    \u003e poetry run python main.py\n    ```\n    The default port is 8000. You can set `--port` to designate manually.\n    ```shell\n    \u003e poetry run python main.py --port 3000\n    ```\n2. **Run frontend server**\n   \n    The frontend is implemented with React in TypeScript. The development server is run on [Parcel](https://parceljs.org/).\n    ```shell\n    \u003e cd frontend\n    \u003e npm install \u003c-- Run this to install dependencies \n    \u003e npm run dev\n    ```\n    Access http://localhost:8888 on web browser.\n\nYou can perform the above steps using a shell script:\n```shell\n\u003e sh ./run-web-dev.sh\n```\n\n\n#### Running in production mode\n\nThe backend server can serve the frontend web under the hood via the same port.\nTo activate this, build the frontend code once:\n\n```shell\n\u003e cd frontend\n\u003e npm run build\n```\n\nThen run the backend server:\n```shell\n\u003e cd ..\n\u003e poetry run python main.py --production --port 80\n```\nAccess http://localhost on web browser.\n\n## Analysis of Chat Logs\n\n### Chat Session Reviewing on Web\nA session chat can be reviewed by visiting `[domain]/share/{session_id}`. There, you can also download the chat logs in CSV.\n\n### Log Files\nTo keep the framework lightweight, ChaCha leverages a file storage instead of a database. The session information and chat messages are stored in `./data/sessions/{session_name}` in real time.\n\nIn the session directory, `info.json` maintains the metadata and the global configuration of the current session. For example:\n\n```json\n{\n  \"id\": \"User_001\",\n  \"turns\": 1,\n  \"response_generator\": {\n    \"state_history\": [\n      [\n        \"explore\",\n        null\n      ]\n    ],\n    \"verbose\": false,\n    \"payload_memory\": {},\n    \"user_name\": \"John\",\n    \"user_age\": 12,\n    \"locale\": \"kr\"\n  }\n}\n```\n\nIn the same location, `dialogue.jsonl` keeps the list of chat messages in a format of [JsonLines](https://jsonlines.org/), where each message is formatted as a single-lined json object.\n\n\n## Authors of the Code\n* Young-Ho Kim (NAVER AI Lab) - Maintainer (yghokim@younghokim.net)\n* Woosuk Seo (Intern at NAVER AI Lab, PhD candidate at University of Michigan)\n\n## Acknowledgments\n* This work was supported by NAVER AI\nLab through a research internship.\n* The conversational flow design of ChaCha is grounded in Woosuk Seo’s dissertation research, which was supported by National Science Foundation CAREER Grant #1942547 (PI: Sun Young Park), advised by Sun\nYoung Park and Mark S. Ackerman, who are instrumental\nin shaping this work.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaver-ai%2Fchacha-chatbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnaver-ai%2Fchacha-chatbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaver-ai%2Fchacha-chatbot/lists"}