{"id":15395993,"url":"https://github.com/fr0st1n/seq2seq-chatbot","last_synced_at":"2026-03-07T08:03:18.954Z","repository":{"id":93435740,"uuid":"87089952","full_name":"FR0ST1N/Seq2Seq-Chatbot","owner":"FR0ST1N","description":"Seq2Seq Chatbot Using Tensorflow.","archived":false,"fork":false,"pushed_at":"2020-01-21T09:46:02.000Z","size":170,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-22T07:05:35.406Z","etag":null,"topics":["artificial-intelligence","chatbot","neural-network","telegram","tensorflow"],"latest_commit_sha":null,"homepage":null,"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/FR0ST1N.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}},"created_at":"2017-04-03T15:29:39.000Z","updated_at":"2020-01-21T09:46:04.000Z","dependencies_parsed_at":"2023-04-02T12:48:32.091Z","dependency_job_id":null,"html_url":"https://github.com/FR0ST1N/Seq2Seq-Chatbot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/FR0ST1N/Seq2Seq-Chatbot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FR0ST1N%2FSeq2Seq-Chatbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FR0ST1N%2FSeq2Seq-Chatbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FR0ST1N%2FSeq2Seq-Chatbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FR0ST1N%2FSeq2Seq-Chatbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FR0ST1N","download_url":"https://codeload.github.com/FR0ST1N/Seq2Seq-Chatbot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FR0ST1N%2FSeq2Seq-Chatbot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30209797,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T05:23:27.321Z","status":"ssl_error","status_checked_at":"2026-03-07T05:00:17.256Z","response_time":53,"last_error":"SSL_read: 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":["artificial-intelligence","chatbot","neural-network","telegram","tensorflow"],"created_at":"2024-10-01T15:30:18.165Z","updated_at":"2026-03-07T08:03:18.912Z","avatar_url":"https://github.com/FR0ST1N.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Seq2Seq-Chatbot\nSeq2Seq Chatbot Using Tensorflow.\n\n## Dependencies\n\n* Tensorflow\n* Numpy\n* Six\n\n## Usage\n\nTo preapre the enc and dec file for your own data use the [pre_processing.py][1] inside the data dir.\n\n1. Start training the model by changing the `mode = 'train'` in [bot.py][2].\n2. Model will be saved in the checkpoint dir every few steps based on the value assigned to `steps_per_checkpoint`.\n3. After training is finished set `mode = 'test'` and execute the script.\n\n### Triggers\n\nIf you are training a closed domain chatbot then you can use the [trigger.py][3] to make the chatbot perform an action based on the decoded output.\n\n* Place the triggers in the [dec][4] file and make sure the trigger symbol is in [vocab20000.dec][5].\n* Update the [trigger.json][6].\n* Update the conditional statement and the action to perform in [trigger.py][3].\n* Train and run your model.\n\n### Other Files\n\n* [telegram.py][7] - Just assign the API key to the `bot` var to interact with your bot on telegram.\n* [debug.py][8] - Prints everything.\n\n## References\n\n1. [A Neural Conversational Model][9]\n2. [Tensorflow Sequence-to-Sequence Models][10]\n\n[1]: https://github.com/FR0ST1N/Seq2Seq-Chatbot/blob/master/data/pre_processing.py\n[2]: https://github.com/FR0ST1N/Seq2Seq-Chatbot/blob/master/bot.py\n[3]: https://github.com/FR0ST1N/Seq2Seq-Chatbot/blob/master/trigger.py\n[4]: https://github.com/FR0ST1N/Seq2Seq-Chatbot/blob/master/data/train.dec\n[5]: https://github.com/FR0ST1N/Seq2Seq-Chatbot/blob/master/checkpoint/vocab20000.dec\n[6]: https://github.com/FR0ST1N/Seq2Seq-Chatbot/blob/master/trigger.json\n[7]: https://github.com/FR0ST1N/Seq2Seq-Chatbot/blob/master/telegram.py\n[8]: https://github.com/FR0ST1N/Seq2Seq-Chatbot/blob/master/debug.py\n[9]: https://arxiv.org/abs/1506.05869\n[10]: https://www.tensorflow.org/tutorials/seq2seq\n\n## Licenses\n\n* [Seq2Seq-Chatbot](https://github.com/FR0ST1N/Seq2Seq-Chatbot/blob/master/LICENSE)\n* [seq2seq](https://github.com/google/seq2seq/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffr0st1n%2Fseq2seq-chatbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffr0st1n%2Fseq2seq-chatbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffr0st1n%2Fseq2seq-chatbot/lists"}