Convert spoken staff orders into POS actions
A custom voice agent listened for orders, changed the basket in a POS, and initiated card payment in a demo.
- What they did
- The author assembled a LangChain workflow using gpt-3.5-turbo and three actions: add item, remove item, and pay. Those actions were exposed as functions that sent requests to a FastAPI service standing in for the POS. A headset recorded the whole exchange, and the prompt told the system to respond only to speech spoken between the words 'agent' and 'please'.
- How it went
- During the demo, it separated the relevant instructions from surrounding talk, applied a revised order after the speaker changed their mind, and then launched card payment. The demo did not include speed or accuracy figures, and there was no report of a real shop deployment.
- Tips
- Write the tool docstrings as direct instructions for the model, including the exact input shape you want back. Add a human check before any payment or cart update is carried out.
Try it yourself with n8n
Create a workflow for [spoken staff orders or transcript] that listens for phrases between [start cue] and [end cue], then uses an LLM to call tools for [add item], [remove item], and [begin payment] against [my POS endpoint]. Present the parsed order for approval before any item is added, removed, submitted, or paid. Try it first with sample phrases in a sandbox, and wait for confirmation before taking any irreversible action.
Fill in the [brackets]. Agents can make mistakes, so review anything before it is sent, paid or deleted.
Get 3 agent uses like this every morning
With the day's top AI news. Free, and one click to unsubscribe.
Related agent uses
Use an agent to track deals and lease deadlines
A custom agent helped a commercial real estate operator monitor offers, organize follow-ups, and catch timing problems before they caused trouble.
Use voice agents to screen and schedule candidates
A staffing firm used a voice agent to reach candidates, ask screening questions, and book recruiter interviews.
Automate warehouse documents, SOWs, and billing
A warehousing team built a custom platform that turns incoming paperwork into records, SOWs, and billing without manual handling.
Have an agent sort and draft your inbox replies
An author let an agent read his professional email, organize messages, and prepare replies in his style, while keeping risky cases for manual review.
Automate WhatsApp tutoring bookings
A no-code WhatsApp agent booked tutoring appointments in two days by using a reused backend layer for the calendar and database steps.
Set up an email chase agent for overdue invoices
A small-firm owner used an email agent to follow up on unpaid invoices and missing paperwork until there was a clear answer or payment.