Skip to main content
“Two masala dosas. Actually, make that one.” Those are two turns about one line item. A restaurant voice interface needs an editable order behind the conversation. Hosty is a public example of a Hindi–English ordering agent that keeps a live cart while the customer speaks. Hosty

Agree on the cart event

Let the restaurant backend resolve menu aliases, availability, and prices. After applying a finalized turn, have it send the entire cart with a revision number for this order. Send the transcript in the customer’s language and address items by a stable menu ID. Partial speech can update a caption without changing the cart. For example, a correction to one dosa produces a new snapshot with quantity: 1. The first snapshot can arrive twice or arrive late. The UI keeps the highest revision. If the server starts a different order, mount a fresh cart using the new order ID as its React key.

Try an order and a correction

Install orb-ui in a React app and render this component. The buttons replay finalized turns in English and Hindi. They let you test the cart and review step without a restaurant backend or a microphone.
First replay the order, confirm it, then apply the correction. The total should fall from ₹240 to ₹120 and the revised cart should require confirmation again. Replay the older order. The quantity should remain one.

Connect the real voice and checkout flows

Feed your backend’s cart snapshots into receive. For a customer-facing edit control, send the requested change and display the resulting authoritative snapshot. Keep microphone state and agent playback in a separate OrbSignal. Pass that signal to the orb so an audible reply can animate while the customer reviews the cart. A finalized transcript alone cannot tell you whether the microphone or speakers are active. Pipecat adapter · Microphone-driven orb In production, confirmation sends the order ID and reviewed revision to the server. Recheck prices, availability, and the current revision there. Use an idempotency key for that confirmation so a network retry places one order. If a newer revision exists, show its items and ask the customer to review again. The demo’s confirmation stays local.
Last modified on November 26, 2026