Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/abhifuturetech/servicegenie-chatbot
Food ordering chatbot using Dialogflow, FastAPI backend, MySQL database, and a responsive frontend. Allows users to place new orders and track existing ones.
https://github.com/abhifuturetech/servicegenie-chatbot
fastapi large-language-models mysql neural-network python
Last synced: 3 months ago
JSON representation
Food ordering chatbot using Dialogflow, FastAPI backend, MySQL database, and a responsive frontend. Allows users to place new orders and track existing ones.
- Host: GitHub
- URL: https://github.com/abhifuturetech/servicegenie-chatbot
- Owner: AbhiFutureTech
- Created: 2024-05-11T04:23:03.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2024-08-18T17:19:41.000Z (6 months ago)
- Last Synced: 2024-08-18T18:36:37.249Z (6 months ago)
- Topics: fastapi, large-language-models, mysql, neural-network, python
- Language: HTML
- Homepage:
- Size: 72.3 KB
- Stars: 8
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Chatbot for food orders online delivery using Dialogflow
===================
Build a chatbot for food orders online delivery using Google's Dialogflow ES. This bot supports two options,1) New Order
2) Track Order1) New Order: Sample Conversation
```
Bot: How can I help you? You can say things like (1) New Order (2) Track Order
User: New Order
Bot: What would you like to have? You can say things like 2 pizzas, one vada pav.
Only order from this list: Vada Pav, Pav Bhaji, Mango Lassi, Pizza, Rava Dosa, Masala Dosa, Samosa
User: I would like to have 2 Rava Dosa and one plate of samosa
Bot: Added 2 Rava Dosa and 1 Samosa. Anything else?
User: Oh yes, add one mango lassi, please
Bot: Sure. Now we have 2 Rava Dosa, 1 Samosa and 1 Mango Lassi. Anything else?
User: Well, you know my cholesterol came high so let's remove Samosa
Bot: Sure. Now we have 2 Rava Dosa, and 1 Mango Lassi. Anything else?
User: Nope. That's it
Bot: Awesome. Your order is placed. Order id # 45. Your total bill is 19$ which you can pay at the time of delivery!
```2) Track Order: Sample Conversation
```Bot: How can I help you? You can say things like (1) New Order (2) Track Order
User: Track Order
Bot: What is your order id?
User: 45
Bot: Order # 45, is in transit
User: How about 41
Bot: ORder # 41 is delivered
```Directory structure
===================
backend: Contains Python FastAPI backend code
db: contains the dump of the database. you need to import this into your MySQL db by using MySQL workbench tool
dialogflow_assets: this has training phrases etc. for our intents
frontend: website codeInstall these modules
======================pip install mysql-connector
pip install "fastapi[all]"OR just run pip install -r requirements.txt to install both in one shot
To start fastapi backend server
================================
1. Go to backend directory in your command prompt
2. Run this command: uvicorn main:app --reloadngrok for https tunneling
================================
1. To install ngrok, go to https://ngrok.com/download and install ngrok version that is suitable for your OS
2. Extract the zip file and place ngrok.exe in a folder.
3. Open windows command prompt, go to that folder and run this command: ngrok http 80000NOTE: ngrok can timeout. you need to restart the session if you see session expired message.
Project Snapshots
===================
![Screenshot 2024-05-25 144622](https://github.com/patilabhi20/object_recongination.project_1/assets/157373320/bbac14f7-1210-44bd-b4d6-98622aafd864)
![image](https://github.com/patilabhi20/object_recongination.project_1/assets/157373320/f1f09e2c-9665-4bac-b60a-9ad88d91131b)