Voltar para receitas

Takeout & Delivery Ordering

Build a pickup or delivery order with a voice agent.

TypeScriptIntermediárioAgora
agora init my-agora-restaurant-ordering-demo --recipe agora-restaurant-ordering-demo
Illustration for Takeout & Delivery Ordering

Guia de implementação

Neste guia

Idioma do documento: Idioma não informado

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.

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, the fictional reference or the UI copy.

8. Verify

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