{"id":23057124,"url":"https://github.com/pushpakrai/food-delivery-chatbot","last_synced_at":"2026-04-18T00:02:51.309Z","repository":{"id":268289877,"uuid":"903880396","full_name":"pushpakrai/Food-delivery-chatbot","owner":"pushpakrai","description":"A Dialogflow, FastAPI, and MySQL-based chatbot for food delivery, leveraging NLP for conversational order management.","archived":false,"fork":false,"pushed_at":"2024-12-28T19:11:12.000Z","size":432,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-03T05:45:02.105Z","etag":null,"topics":["dialog","fastapi","langchain","nlp","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/pushpakrai.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":"2024-12-15T19:42:27.000Z","updated_at":"2024-12-28T19:11:15.000Z","dependencies_parsed_at":"2024-12-15T20:31:45.895Z","dependency_job_id":"58199bc8-7a57-44a7-af93-69b539f624bf","html_url":"https://github.com/pushpakrai/Food-delivery-chatbot","commit_stats":null,"previous_names":["pushpakrai/food-delivery-chatbot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pushpakrai%2FFood-delivery-chatbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pushpakrai%2FFood-delivery-chatbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pushpakrai%2FFood-delivery-chatbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pushpakrai%2FFood-delivery-chatbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pushpakrai","download_url":"https://codeload.github.com/pushpakrai/Food-delivery-chatbot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246944385,"owners_count":20858773,"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":["dialog","fastapi","langchain","nlp","python"],"created_at":"2024-12-16T02:10:30.634Z","updated_at":"2025-10-08T18:09:16.619Z","avatar_url":"https://github.com/pushpakrai.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Food Delivery Chatbot Using Dialogflow and FastAPI 🤖🍲 \n\n## Overview\nThis project demonstrates an end-to-end implementation of a food delivery chatbot using Dialogflow, Python (FastAPI), and MySQL. It includes natural language processing (NLP) concepts like intents, entities, and contexts to create a conversational interface. The chatbot interacts with a backend server to handle real-time orders and integrates with a database for order management.\n\n---\n\n## Directory Structure\n\n```\nbackend/\n    Contains Python FastAPI backend code\n\ndb/\n    Includes the MySQL database dump. Import this using MySQL Workbench or other tools.\n\ndialogflow_assets/\n    Contains training phrases, intents, and entities for Dialogflow setup.\n\nfrontend/\n    Holds the website code for user interaction.\n```\n\n---\n\n## Setup Instructions\n\n### 1. Install Required Modules\n\nTo set up the backend, install the necessary dependencies:\n\n```bash\npip install mysql-connector\npip install \"fastapi[all]\"\n```\n\nAlternatively, you can install all dependencies at once using the `requirements.txt` file located in the `backend` directory:\n\n```bash\npip install -r backend/requirements.txt\n```\n\n### 2. Start FastAPI Backend Server\n\nTo run the backend server:\n\n1. Navigate to the `backend` directory:\n\n```bash\ncd backend\n```\n\n2. Start the FastAPI server with the following command:\n\n```bash\nuvicorn main:app --reload\n```\n\nThe server will now be available at `http://127.0.0.1:8000`.\n\n### 3. MySQL Database Setup\n\nImport the provided MySQL database dump into your MySQL server using MySQL Workbench:\n\n1. Open MySQL Workbench and connect to your database server.\n2. Go to the \"Server\" menu and select \"Data Import\".\n3. Choose the provided `.sql` dump file and import it into your database.\n\n### 4. Ngrok Setup for HTTPS Tunneling\n\nTo allow external services like Dialogflow to securely communicate with your local FastAPI server, use ngrok:\n\n1. Download and install ngrok from [here](https://ngrok.com/download).\n2. Extract the ZIP file and place `ngrok.exe` in a folder.\n3. Open a command prompt in the folder and run the following command:\n\n```bash\nngrok http 8000\n```\n\nThis will provide an HTTPS URL (e.g., `https://abcd1234.ngrok.io`) that you can use to set up webhook endpoints in Dialogflow.\n\n**Note:** Ngrok sessions may expire. If you encounter a \"session expired\" message, simply restart the ngrok process.\n\n---\n\n## Dialogflow Integration\n\n### Dialogflow Assets\n\nThe `dialogflow_assets/` directory contains all the necessary training phrases, intents, entities, and context configurations required for the chatbot. Import these assets into your Dialogflow project for the chatbot to function properly.\n\n---\n\n## Key Features 🛠️\n\n- **Intents and Entities**: The chatbot understands various intents (e.g., placing an order, tracking orders) and extracts relevant entities like food item names and quantities.\n- **Order Management**: Integration with MySQL to store and retrieve order information, enabling smooth order processing.\n- **Real-Time Updates**: Provides real-time updates about order status, allowing users to track their deliveries.\n- **Webhook Fulfillment**: The FastAPI server handles fulfillment requests from Dialogflow, delivering dynamic responses based on database interactions.\n\n---\n\n## Technologies Used 🖥️\n\n- **Dialogflow**: NLP platform for building conversational interfaces.\n- **FastAPI**: Python web framework for building the backend.\n- **MySQL**: Relational database to store order data.\n- **Ngrok**: Tool for exposing local servers to the internet via HTTPS.\n- **HTML/CSS/JS**: Frontend technologies for building the user interface.\n\n---\n\n## Future Improvements 🚀\n\n- **Voice Integration**: Add voice recognition to make the chatbot more interactive and accessible.\n- **Payment Gateway**: Integrate a payment system to process food orders securely and efficiently.\n- **Mobile App**: Develop a mobile app for better user accessibility, making it easier for customers to interact with the chatbot.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpushpakrai%2Ffood-delivery-chatbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpushpakrai%2Ffood-delivery-chatbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpushpakrai%2Ffood-delivery-chatbot/lists"}