{"id":18734662,"url":"https://github.com/elysian01/ai-chatbot","last_synced_at":"2025-10-11T04:46:44.042Z","repository":{"id":57408663,"uuid":"357898249","full_name":"Elysian01/AI-Chatbot","owner":"Elysian01","description":"Python library for building custom AI chatbot with just one line of code.","archived":false,"fork":false,"pushed_at":"2023-03-02T01:55:39.000Z","size":3725,"stargazers_count":7,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T02:59:03.423Z","etag":null,"topics":["ai-chatbot","bag-of-words","bert","chatbot","custom-chatbot","lstm-neural-networks","python","python-library","seq2seq"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/aichatbot/","language":"Jupyter Notebook","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/Elysian01.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}},"created_at":"2021-04-14T12:30:56.000Z","updated_at":"2024-08-05T12:19:36.000Z","dependencies_parsed_at":"2022-09-26T17:10:57.625Z","dependency_job_id":null,"html_url":"https://github.com/Elysian01/AI-Chatbot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Elysian01%2FAI-Chatbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Elysian01%2FAI-Chatbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Elysian01%2FAI-Chatbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Elysian01%2FAI-Chatbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Elysian01","download_url":"https://codeload.github.com/Elysian01/AI-Chatbot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248618277,"owners_count":21134200,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","bag-of-words","bert","chatbot","custom-chatbot","lstm-neural-networks","python","python-library","seq2seq"],"created_at":"2024-11-07T15:14:27.944Z","updated_at":"2025-10-11T04:46:38.993Z","avatar_url":"https://github.com/Elysian01.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AI-Chatbot 🤖 \n\n[![Downloads](https://static.pepy.tech/personalized-badge/aichatbot?period=total\u0026units=international_system\u0026left_color=black\u0026right_color=orange\u0026left_text=Downloads)](https://pepy.tech/project/aichatbot)\n\n### Python library for building custom AI Chatbot with just one line of code.\n\n\n\u003c!-- ## Features --\u003e\n\n\n\u003c!-- Demo Output of AI Chatbot --\u003e\n\u003c!-- \u003cbr\u003e\u003cbr\u003e\n\u003cimg src = \"./static/demo.gif\" width=\"600px\" height = \"300px\"\u003e --\u003e\n\n## Get Started\n\nInstall the package\n```\npip install aichatbot\n```\n\nLoad the module\n```python\nimport aichatbot as bot\n```\n\n**Create the `intents file` by following format**\n\n```json\n{\n    \"intents\": [\n        {\n            \"tag\": \"tag name\",\n            \"patterns\": [\"example-1 of user query\", \"example-2 of user query\", \"example-3\"],\n            \"responses\": [\"bot response-1\", \"bot response-2\", \"bot response-3\"]\n        }\n    ]\n}\n```\n\nThe `patterns` contains a list of example `expected user query`, which user will enter and `responses` contains the list of `bot response`.\n\nWhenever a user inputs a query, bot will find the closest match with the `patterns`, and then select a random response from the list of `responses` specified under that pattern name.\n\n\n**Example**\n\n```json\n{\n    \"intents\": [\n        {\n            \"tag\": \"greeting\",\n            \"patterns\": [\"Hi\", \"How are you\", \"Is anyone there?\", \"Hello\", \"Good day\"],\n            \"responses\": [\"Hello, thanks for visiting\", \"Good to see you again\", \"Hi there, how can I help?\"]\n        },{\n            \"tag\": \"goodbye\",\n            \"patterns\": [\"Bye\", \"See you later\", \"Goodbye\"],\n            \"responses\": [\"See you later, thanks for visiting\", \"Have a nice day\", \"Bye! Come back again soon.\"]\n        }\n    ]\n}\n```\n\n\n**Create the model**\n\n```python\nfilenames = {\n    \"intents\": \"./data/basic_intents.json\",\n    \"dir\": \"dumps\"\n}\n\nbot_model = bot.Create(filenames, technique=\"bow\")\n```\n\n`intents` : Path to your intents file. \u003cbr\u003e\n`dir`: Specify the directory where you want to save the bot model.\u003cbr\u003e\n`technique`: Choose among [ bow | lstm | bert ]\u003cbr\u003e\n\nThat's it 😊, **Start your conversation**\n```python\nbot.start(bot_model)\n```\n\nOptional Parameter:\u003cbr\u003e\n`end_conversation` : Contains strings to stop the chatbot.\u003cbr\u003e\n`end_response` : Output Message when bot quits\n\nExample: \n```python\nbot.start(bot_model, end_conversation=[\"/stop\", \"quit\"], end_response=\"Thankyou for your time :)\")\n```\n\n\n\nPython Package: https://pypi.org/project/aichatbot/\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felysian01%2Fai-chatbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felysian01%2Fai-chatbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felysian01%2Fai-chatbot/lists"}