# Takeout & Delivery Ordering

> Build a pickup or delivery order with a voice agent.

Browse a fictional menu, specify quantities, switch between pickup and delivery and review your revised order draft.

- Author: Agora
- Updated: 2026-12-03T01:29:42.026Z
- Guide language: unspecified
- Guide status: available
- Difficulty: Intermediate
- Categories: voice-ai
- Platforms: TypeScript
- Use cases: Commerce, Voice AI
- Capabilities: Conversational AI, Voice Agent, Agora RTC, Next.js
- [Recipe page](https://recipes.agora.io/recipes/agora-restaurant-ordering-demo)
- [Implementation repository](https://github.com/AgoraIO-Community/agora-restaurant-ordering-demo)
- [Source recipe](https://github.com/AgoraIO-Community/agora-restaurant-ordering-demo/blob/main/RECIPE.md)
- [Raw source Markdown](https://raw.githubusercontent.com/AgoraIO-Community/agora-restaurant-ordering-demo/main/RECIPE.md)
- [All recipes](https://recipes.agora.io/llms.txt)

## Use with Agora CLI

agora init my-agora-restaurant-ordering-demo --recipe agora-restaurant-ordering-demo

## Implementation guide

# Agora Takeout & Delivery Ordering Demo

## 1. What you build

Order from a sample pizza menu for dine-in, pickup, or delivery, or reserve a table.

## 2. Prerequisites

Use Node.js 24, pnpm 9.15.9 and an Agora project with Conversational AI enabled.

## 3. Configure the app

Copy `env.local.example` to `.env.local`. Enter the App ID, App Certificate, and public HTTPS tool origin as described in [README.md](https://github.com/AgoraIO-Community/agora-restaurant-ordering-demo/blob/main/README.md).

## 4. Run the app

Run `pnpm install --frozen-lockfile` and `pnpm dev`. Open the local page and allow microphone access.

## 5. Try a conversation

Ask for a large Garden Pizza delivered to Copley Square, then switch to pickup and confirm the new quote. Also try booking a table for four tomorrow at 6:30 p.m.

## 6. Understand the boundary

Orders, table reservations, and routes use demo data. Use a sample Boston landmark for delivery. Keep the exercise free of payment details and personal contact information.

## 7. Customize the scenario

Edit [the workflow](https://github.com/AgoraIO-Community/agora-restaurant-ordering-demo/blob/main/lib/agent-config.ts), [the fictional reference](https://github.com/AgoraIO-Community/agora-restaurant-ordering-demo/blob/main/lib/scenario-knowledge.ts) or [the UI copy](https://github.com/AgoraIO-Community/agora-restaurant-ordering-demo/blob/main/lib/presentation.ts).

## 8. Verify

Run `pnpm run verify`. Exercise the initial request and correction in a real browser call to validate speech behavior.


## Recipe prompt

You are implementing the "Takeout & Delivery Ordering" recipe in this project.

Read the recipe markdown first:
https://raw.githubusercontent.com/AgoraIO-Community/agora-restaurant-ordering-demo/main/RECIPE.md

Use the source repository for cross-reference:
https://github.com/AgoraIO-Community/agora-restaurant-ordering-demo

Build this recipe into the user's app using the markdown as the implementation guide. Inspect related source files through the repository links when the recipe points to them. Ask before installing new dependencies.
