AI‑powered pizza ordering assistant built with Streamlit and Groq’s LLaMA 3 (
llama3‑70b‑8192
).
The bot chats like a real server, takes complete orders, confirms delivery or pickup, summarises the bill, and can be extended with payment or POS hooks.
- Natural conversation – greets, asks clarifying questions, and confirms the order.
- Full menu handling – pizzas (sizes & toppings), sides, and drinks with prices.
- Delivery / pickup flow – collects address when required.
- Order summary – repeats the basket and final total for confirmation.
- Ultra‑low latency – powered by Groq API inferencing LLaMA 3 at blazing speed.
- Streamlit UI – runs locally or can be deployed to Streamlit Community Cloud, Hugging Face Spaces, etc.
Chat Interface | Order Summary |
---|---|
Layer | Tech |
---|---|
UI | Streamlit + streamlit‑chat |
LLM | Groq API • LLaMA 3 70B |
Secrets | python‑dotenv |
Language | Python 3.9 + |
git clone https://github.com/choudaryhussainali/streamlit-pizza-order-bot.git
cd streamlit-pizza-order-bot
python -m venv .venv && source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -r requirements.txt
echo "GROQ_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" > .env
streamlit run pizza.py
Open http://localhost:8501 in your browser and start chatting!
streamlit-pizza-order-bot/
├─ assets/ # images for the README / app
│ ├─ chat.png
│ └─ summary.png
├─ .env # ← your Groq API key (never commit!)
├─ pizza.py # main Streamlit application
├─ requirements.txt # Python dependencies
├─ README.md
└─ .gitignore
Variable | Purpose |
---|---|
GROQ_API_KEY |
Your secret key from the Groq Console |
Create a .env
file in the repo root and add:
GROQ_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
- Add new menu items – edit the system prompt in
pizza.py
. - Multilingual – change the greeting messages or detect language automatically.
- Payment integration – hook into Stripe / PayPal after order confirmation.
- Database logging – store completed orders in PostgreSQL or Firebase.
- Fork the repo and create your branch:
git checkout -b feature/awesome
. - Commit your changes:
git commit -am 'Add awesome feature'
. - Push the branch:
git push origin feature/awesome
. - Open a Pull Request – thanks! ❤️
Please run black
and flake8
before submitting.
This project is proprietary and confidential. All rights reserved.
© 2025 HUSSAIN ALI. This code may not be copied, modified, distributed, or used without explicit permission.
For questions or collaboration requests:
- 📧 Email: choudaryhussainali@outlook.com
- 🌐 GitHub: choudaryhussainali
- Groq for the lightning‑fast LLM API
- Meta & TII for LLaMA 3
- The Streamlit community for an amazing developer experience
Feel free to ⭐ the repo if you find it helpful, and enjoy your slice of AI‑powered pizza!