Skip to content
vp.Ven Petrov
WorkAI demoWritingResourcesResume / CVAboutAt a glance
← Projects & notes
Restaurant-service voice agentExperiment · 3 min read

Designing a restaurant-service call around the real offer

The first correction was the offer: a paid service had become a free visit in one draft. I then compared how the Spanish voice-agent prompts handled new speakers, technical limits and booking results.

Ven PetrovPrompt prototype

One draft of this restaurant-service agent offered a free technical visit. The business actually sold a paid service. I corrected the offer and asked the conversation to establish a real need, rather than arrange a visit on terms the business did not provide.

I was working on a Spanish outbound voice-agent prompt for a technical service visiting restaurants. A natural opening mattered, but the conversation also needed to reach the right person, describe the real offer and handle a booking honestly.

The completed work is a final Markdown prompt and a comparison of two drafts. The call branches below are instructions in that prompt, not verified live-call results.

A transfer means checking the new speaker

The final prompt asks the agent to establish the speaker's role when the call begins and confirm it again after a transfer. Knowing the restaurant does not establish who has just picked up or whether they can arrange a visit.

This is a sanitized illustration of the instruction, not a recorded call:

First speaker: Un momento, te paso con la encargada.
New speaker: ¿Sí?
Agent: Hola. ¿Con quién hablo? ¿Se encarga usted de este tema
       en el restaurante?

The restaurant context remains useful. The speaker check has to happen before continuing the booking branch.

A transfer starts another role check

  1. 01Role confirmedThe current speaker has been identified
  2. 02Call transferredSomeone else joins the call
  3. 03Role unconfirmedDo not inherit the previous answer
  4. 04Check againConfirm who can arrange the paid visit
These are instructions in the final prompt. Recorded live-call behavior has not been verified.

The prompt also gives separate paths for a transfer to the wrong person and a person who is not interested. A refusal needs its own response and closing, rather than another attempt to run the same pitch.

Compare the offer, the handover and the booking separately

I supplied ElevenLabs examples and its prompting guide, then brought in another model's draft. I asked for an honest section-by-section comparison before choosing the final version.

That made it possible to look at the offer, role discovery, handover, objections and closing one at a time. A useful opening in a draft did not establish that its booking instructions were also useful.

The final prompt keeps a boundary around technical advice. The agent can collect a description of the need and arrange a visit. Diagnosis belongs to the technician. Fluent speech should not turn a caller's description into an invented technical conclusion.

Ask for a time, then wait for the booking result

get_availability finds available options. create_visit requests the booking. The prompt includes a short spoken acknowledgement before a tool call, explaining the pause to the caller.

The tool result determines what the agent is allowed to confirm:

What happened What the conversation can establish
Available times returned Offer those times
Booking succeeds Confirm the visit
Booking tool fails Explain the problem without saying the visit is booked

These are the intended branches. The prompt contains them, but I have not verified the final agent against a recorded suite of calls covering those cases.

The final document brings the paid offer, speaker checks, technical limits and tool rules together. Hearing the agent handle real transfers, refusals and failed bookings is still the next test. I do not have a measured booking success rate or latency result to report.

Project sources & checks
My requirements and revisions

The source includes supplied ElevenLabs examples and prompting guidance, the paid-visit correction, another model draft and a request for honest section-by-section comparison.

Final prompt

The saved prompt includes role verification, confirmation after transfers, technical limits, availability/booking tools, spoken tool acknowledgements, failure handling and closing examples.

Example scope

The short exchange below is a sanitized illustration of the prompt rule, not a call transcript or a verified model response.

Current result

A final Markdown prompt and comparison analysis. No verified live booking rate, latency result or recorded call suite.

On this page
A transfer means checking the new speakerCompare the offer, the handover and the booking separatelyAsk for a time, then wait for the booking resultSources & checks
Voice agentsElevenLabsContextPrompt design

Connected to this

All writing
Vapi and Telnyx voice integration · Technical note

The Vapi agent could speak, but it could not hear me clearly

ctxforge · Project story

ctxforge: turn “add search” into a task an agent can build

Ven PetrovSoftware engineer · Barcelona
GitHub ↗LinkedIn ↗Email ↗

Find a project or a note

18 results

Transfutur ERP · ExperienceERP for transport and logisticsAs the sole engineer, I built an ERP from zero for transport and logistics. It supported roughly €5–6 million in annual invoicing across two offices, and I kept it running for about a year.Finance evidence desk · Project storyCan an AI reviewer improve a financial explanation?A finance review needs the right explanation as well as the right numbers. I tested one AI analyst, an added reviewer and self-review on the same public report. The added review produced fewer supported answers.Financial review lab · Project storyWhat contributed to an $86 million rise in operating income?I built a financial-report explorer around a question I could check: how did seven income-statement movements add up to an $86 million increase? The same source now supports comparisons of sales, cash flow and reported versus core results.MNQ time-series research · ExperimentA time-series model that failed on later dataA model gained about $2,351 in the research simulation, then lost about $1,728 in three later windows. I followed the experiment from data acquisition and time intervals to costs, evaluation and the decision to reject it for trading.Crude-oil narrative tracker · Project storyFollowing crude-oil news without losing the market numbersI used a short personal experiment to follow global events alongside crude-oil prices and position values. The prototype calculates the numbers before asking Claude Code for an assessment and keeps a limited recent history.NQ/MNQ backtest engine · Technical noteYesterday’s short was blocking today’s trades in the simulatorWhen input stopped before the scheduled close, the strategy forgot a position but a shared counter kept counting it. Closing the old position before resetting the day restored the trade record and released the block.Small-cap edge research · Project storyWhat would make a small-cap price pattern worth testing?I built a Python and DuckDB prototype to turn trading ideas into named tests, compare their costs and revisit them in later periods. The candidates deteriorated under further checks, and the source exposed a misleading pass flag.Gadgeon Europe applications · ExperienceConnected-device dashboards and mobile apps at Gadgeon EuropeThe dashboards let people monitor energy use and control connected devices through data from several APIs. My work covered customized Ionic and Angular apps, integrations, store releases and maintenance.ctxforge · Project storyctxforge: turn “add search” into a task an agent can build“Add search” leaves decisions about data, matching and behavior unanswered. I built an editable toolkit that asks an LLM to uncover those requirements and show its assumptions before a coding agent starts.Sociedades Inactivas enquiries · Technical noteAn enquiry should survive a failed emailA failed notification should not make someone submit the same enquiry twice. The implemented form keeps the saved request and its reference while email delivery is retried; live activation is still pending.Astro local-services website · Project storyKeeping local service pages and their FAQs consistentA city page should only offer services enabled for that location. I used shared Astro templates with explicit availability rules, and one FAQ selection for both the visible page and its structured data.3D Spaces website migration · Project storyMoving 3D Spaces without moving its mailboxThe website could move to Next.js and Vercel, while email still depended on the old host. I carried over the pages, enquiry flow and analytics, then checked what the cutover had actually preserved.Capture CRM · Project storySave the listing now, connect the person when the details arriveA classified listing may arrive before its phone number or contact name. Capture CRM keeps those records separate, then lets a later capture complete the existing listing and bring contact status back to the browsing page.Product-description comparison bench · ExperimentWhere did the product description get that detail wrong?A product description can go wrong when the image is read or when the copy is written. This local bench exposes both steps, lets me switch models and records request measurements. A matched quality comparison is still unfinished.Between Us · Project storyBetween Us: keeping control of a generated filmA more emotional dialogue take still needed convincing acting and framing. I kept the alternatives, widened shots to reveal gestures and changed the workflow when its studio limited the films I wanted to make.Restaurant-service voice agent · ExperimentDesigning a restaurant-service call around the real offerThe first correction was the offer: a paid service had become a free visit in one draft. I then compared how the Spanish voice-agent prompts handled new speakers, technical limits and booking results.Vapi and Telnyx voice integration · Technical noteThe Vapi agent could speak, but it could not hear me clearlyI could hear the assistant, but it could not understand my distorted audio. Three codec tests changed the connection behavior and brought the greeting back; the caller-audio problem remains unresolved.Warloop: Echoes of Solmara · Project storyWarloop: turning generated character art into a playable prototypeGood-looking character images became tiny figures, a backwards walk and misplaced bosses in the game. I worked through the gap between generated art and playable behavior.
esc to close · Tab to move through results