This project is a sample AI-powered pizza ordering agent built for Microsoft OpenHack. It demonstrates how to use a custom Semantic Kernel plugin to interact with a pizza ordering API, allowing users to browse the menu, create orders, check order status, and cancel orders—all through natural language interactions.
- List available pizzas and toppings
- Create new pizza orders (with custom toppings)
- View all orders and their status
- Cancel existing orders
- Integrates with Azure AI and Semantic Kernel
- Python 3.8+
- pip
- Azure subscription and credentials (for Azure AI agent)
- Clone this repository:
git clone <your-repo-url> cd PizzaAgent
- Create and activate a virtual environment (optional but recommended):
python -m venv venv .\venv\Scripts\activate
- Install dependencies:
pip install -r requirements.txt
- Set up environment variables:
- Create a
.envfile in the project root with the following variables:your-agent-id starts with asst-AZURE_TENANT_ID=<your-tenant-id> PROJECT_ENDPOINT=<your-azure-ai-endpoint> AGENT_ID=<your-agent-id>
- Create a
Run the agent with:
python agent.pyThe agent will simulate a conversation, demonstrating menu browsing, order creation, status checking, and cancellation.
This project is designed for use in Microsoft OpenHack, a hands-on, challenge-based learning event. For more information, visit the OpenHack portal.
agent.py— Main entry point, defines the agent and pluginpizza_api_client.py— HTTP client for the Pizza APIREADME.md— Project documentation
This project is for educational purposes as part of Microsoft OpenHack.