The AI Order System for Boba Tea House is a project that utilizes the OpenAI API to create an AI agent capable of handling customer orders. The goal is to reduce labor costs and streamline the ordering process for the Boba tea house. The AI agent responds to customer requests, collects order information, and provides concise answers while maintaining a friendly and helpful tone.
To use the AI Order System, follow these installation steps:
-
Clone the repository to your local machine.
-
Create a virtual environment and activate it.
-
Install the required dependencies by running the following command:
pip install -r requirements.txt
-
Modify a
.env
file in the project directory and set your OpenAI API key:OPENAI_API_KEY=your_api_key_here
-
Run the application using the provided script.
python app.py
The AI Order System follows these steps to collect and format customer orders:
- Greet the customer and ask what they would like to order.
- Collect the drink order from the customer.
- Ask if the customer wants their drink cold or hot (if hot option is available).
- Collect additional order details, including quantity, ice level, sweetness level, and drink size.
- Repeat the customer's order for confirmation.
- Inform the customer of the total order amount and display the product order formatting.
You can also recommend drinks such as Honey Green Tea and Brown Sugar Milk Tea if the customer requests recommendations.
This file contains utility functions used in the AI Order System, including the system message and the steps for processing customer orders.
The main application file that interacts with the OpenAI API to process user messages, collect order information, and generate responses. It includes functions for moderation, message processing, and more.
- Using whisper API to build a vocal interface
- Implementing function call for order management
- Latency research for optimizing response time
For questions or support related to the AI Order System, please contact:
- Kai([email protected])
We hope you enjoy using the AI Order System for Boba Tea House!
https://learn.deeplearning.ai/chatgpt-building-system/lesson/1/introduction