{"id":23887144,"url":"https://github.com/ashharr/chatbot-ml-sih-2019","last_synced_at":"2025-04-10T03:36:17.525Z","repository":{"id":43249124,"uuid":"176571891","full_name":"ashharr/chatbot-ml-SIH-2019","owner":"ashharr","description":"A Customer Support Chatbot using Machine Learning for Smart India Hackathon 2019 ( Winning Idea)","archived":false,"fork":false,"pushed_at":"2023-05-02T00:17:53.000Z","size":449,"stargazers_count":24,"open_issues_count":2,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-07T14:16:16.134Z","etag":null,"topics":["chatbot","dialogflow","dialogflow-api","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ashharr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2019-03-19T18:09:58.000Z","updated_at":"2024-12-20T08:53:08.000Z","dependencies_parsed_at":"2025-01-04T07:37:53.439Z","dependency_job_id":"ddf1fab2-206c-4f62-8f72-20523950165a","html_url":"https://github.com/ashharr/chatbot-ml-SIH-2019","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/ashharr%2Fchatbot-ml-SIH-2019","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashharr%2Fchatbot-ml-SIH-2019/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashharr%2Fchatbot-ml-SIH-2019/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashharr%2Fchatbot-ml-SIH-2019/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ashharr","download_url":"https://codeload.github.com/ashharr/chatbot-ml-SIH-2019/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248153425,"owners_count":21056428,"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":["chatbot","dialogflow","dialogflow-api","python"],"created_at":"2025-01-04T07:37:34.126Z","updated_at":"2025-04-10T03:36:17.501Z","avatar_url":"https://github.com/ashharr.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# chatbot-ml-SIH-2019\nA Customer Support Chatbot using Machine Learning for Smart India Hackathon 2019 ( Winning Idea)\n\nProblem Definition / Idea:\n\nThe Solution is that we have created a chatbot that responds to the request made by the customer by searching the DB for solutions. \nOur chatbot is capable enough to interpret to all queries of the customers , analyze them and understand the intent of the queries. \nThe chatbot shall search the entire database for resolution to the problems. If the best solution is found then Chatbot will directly \nprovide the solution to the customer's concerned queries. On the contrary , if no solution is found, then chatbot will handover the\nproblem to the Support Staff available to interpret the query and provide a better solution by interacting with the customer. Having\ninteracted with the customer and finding new solutions for different queries, the solutions would get updated in the data base wherein\nthe chatbot shall be prepared to handle similar queries in future.\nThe Database has been maintained using SQL Alchemy and will be integrated with the NLP engine using Dialogflow API’s which can accomplish word embedding\nintent and entity detection.\n\n\n\n\nTechnology Stack:\n\n1. Dialogflow(NLP training and Webhook):\n\n\tDialogflow which is powered by Google was used to create intents and entities with respect to the domain that was selected i.e.\n  Mutual Funds. \n\nBased on the intents the Chatbot was trained, Small Talk is a feature offered by Dialogflow was also incorporated into the Chatbot. \n\n2.  Python ( Sentimental Analysis and Sentence similarity )\n\n\tTo work on the default fallback intent we used python modules such as vaderSentiment to do Sentimental analysis so as to verify\n  whether the query is a Feedback or a Complaint. Part of speech tagging was also done using NLTK.corpus module.\n\n3. Flask(API and REST API)\n\n      Representational State transfer (REST)  API was used as a web API and was implemented using flask microframework.\n\n4. SQLAlchemy(Data Base)\n\n      The identified query which is fallback content is updated in the database to provide its solution when asked the next time\n\n5. Ngrok(local web server)\n\nSecure web tunnel was created to handle the requests along with public URL. It listens on the same port that your local web server is running on.\n\nThis URL was used to connect to Dialogflow API using webhook feature.\n\n\nIntegrations:\n\nWhatsapp using Twilio\n\nSkype\n\nTelegram\n\nGoogle Assistant\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashharr%2Fchatbot-ml-sih-2019","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fashharr%2Fchatbot-ml-sih-2019","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashharr%2Fchatbot-ml-sih-2019/lists"}