Developed a conversational chatbot using GPT-3.5 Turbo and Chainlit for a food delivery service.
- Overview
- Features
- Demo
- Setup and Installation
- Usage
- Configuration
- Project Structure
- Technologies Used
- License
Food-Delivery-Chatbot is an AI-powered conversational assistant designed to streamline food ordering and customer interactions for a food delivery service. Leveraging OpenAI's GPT-3.5 Turbo and Chainlit, this chatbot can handle user queries, take orders, provide restaurant recommendations, and manage order statuses in a natural, user-friendly way.
- Natural language understanding and conversation
- Menu browsing and food ordering
- Real-time order status updates
- Restaurant and cuisine recommendations
- Order history retrieval
- Error handling and user guidance for edge cases
- Easily extensible for new features
-
Clone the repository
git clone https://github.com/chandansoren/Food-Delivery-Chatbot.git cd Food-Delivery-Chatbot -
Create a virtual environment (optional but recommended)
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install dependencies
pip install -r requirements.txt
-
Set up environment variables
OPENAI_API_KEY: Your OpenAI API key for GPT-3.5 Turbo.- Any other relevant configuration (see Configuration).
You can use a
.envfile for local development.
-
Start the chatbot server
python app.py
Or, if using Chainlit:
chainlit run app.py
-
Interact with the chatbot
- Access the chatbot via the provided web interface or integration point.
- Start chatting to order food, ask for recommendations, or check order status.
config.pyor.env: Contains API keys and configuration options.- Supported settings:
OPENAI_API_KEY- Service endpoints
- Menu data source paths
Food-Delivery-Chatbot/
├── app.py
├── requirements.txt
├── config.py / .env
├── chatbot/ # Core chatbot logic and modules
│ ├── __init__.py
│ ├── conversation.py
│ ├── order_management.py
│ └── ...
├── data/ # Menu and restaurant data
│ └── menu.json
└── README.md
- Python 3.x
- OpenAI GPT-3.5 Turbo
- Chainlit
- (Optional) Flask/FastAPI for REST endpoints
This project is licensed under the MIT License. See the LICENSE file for details.
Feel free to open issues or submit pull requests for improvements or new features!