Giter VIP home page Giter VIP logo

bob-chatbot-egyptian-food's Introduction

Chatbot for food orders online delivery [Egyptian Food] 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 Order

  3. 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 Kunafa, one basbousa.
     Only order from this list: ful wa tamia, feteer meshaltet, koshari, kofta, mahshi, kebda, basbousa, Roz bel laban, kunafa
User: I would like to have 2 Roz bel laban and one plate of koshary
Bot: Added 2 Roz bel laban and 1 koshary. Anything else?
User: Oh yes, add one piece of basbosa, please
Bot: Sure. Now we have 2 Roz bel laban, 1 koshary and 1 basbosa. Anything else?
User: Well, you know my cholesterol came high so let's remove basbosa
Bot: Sure. Now we have 2 Roz bel laban, and 1 koshary. 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!
  1. Track Order: Sample Conversation
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 code

Install these modules

pip install mysql-connector pip install "fastapi[all]"

OR just run pip install -r backend/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 --reload

ngrok 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 80000

NOTE: ngrok can timeout. you need to restart the session if you see session expired message.

bob-chatbot-egyptian-food's People

Contributors

eslam-shaban avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.