<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Sam</title>
    <description>The latest articles on DEV Community by Sam (@sam112).</description>
    <link>https://dev.to/sam112</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3969582%2F55b6fcd9-cc49-4882-a5c8-0df5190422e7.png</url>
      <title>DEV Community: Sam</title>
      <link>https://dev.to/sam112</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sam112"/>
    <language>en</language>
    <item>
      <title>Building an AI Voice Agent for Appointment Booking: What I Learned</title>
      <dc:creator>Sam</dc:creator>
      <pubDate>Fri, 05 Jun 2026 09:53:17 +0000</pubDate>
      <link>https://dev.to/sam112/building-an-ai-voice-agent-for-appointment-booking-what-i-learned-5hd8</link>
      <guid>https://dev.to/sam112/building-an-ai-voice-agent-for-appointment-booking-what-i-learned-5hd8</guid>
      <description>&lt;p&gt;Over the past few months I’ve been building VoiceIntego, an &lt;a href="https://voiceintego.com/" rel="noopener noreferrer"&gt;AI voice agent&lt;/a&gt; that answers calls and books appointments for service businesses (dental clinics, HVAC, plumbing). Here are some of the technical lessons that surprised me along the way.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Latency is the whole game&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;With text chatbots, a 2-second delay is fine. On a phone call, anything over ~800ms feels broken — people start talking over the AI. The hard part isn’t the LLM response; it’s the round trip: speech-to-text → LLM → text-to-speech, all streaming. You have to stream every stage and start TTS before the full response is generated.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Interruptions break naive pipelines&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Real callers interrupt. “Actually, can we do Tuesday instead—” mid-sentence. A simple request/response loop can’t handle this. You need barge-in detection: monitor the incoming audio stream and cancel the current TTS playback the moment the caller starts speaking again.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Booking logic needs guardrails, not vibes&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Letting the LLM “decide” availability is a recipe for double-bookings. The reliable pattern: the LLM extracts intent (date, time, service), then deterministic code checks the actual calendar API and confirms. The model handles language; your code handles truth.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Confirmation loops matter more than you’d think&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Always read the booking back: “So that’s a cleaning on Tuesday the 9th at 2pm — correct?” Phone audio is noisy and names/times get misheard constantly. One extra confirmation turn cuts errors dramatically.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Phone numbers and edge cases everywhere&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Voicemail detection, callers who mumble, background noise, people who say “yeah” to mean no. The happy path is maybe 20% of the work.&lt;/p&gt;

&lt;p&gt;If you’re building something in this space, happy to compare notes. You can see what I’m working on at &lt;a href="https://voiceintego.com/" rel="noopener noreferrer"&gt;VoiceIntego&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>aivoiceagent</category>
      <category>automation</category>
      <category>aireceptionist</category>
    </item>
  </channel>
</rss>
