<?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: Dograh AI</title>
    <description>The latest articles on DEV Community by Dograh AI (dograh).</description>
    <link>https://dev.to/dograh</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.us-east-2.amazonaws.com%2Fuploads%2Forganization%2Fprofile_image%2F12702%2F7ca75fbe-0efc-4495-a3f1-c9d0cd08bb1e.png</url>
      <title>DEV Community: Dograh AI</title>
      <link>https://dev.to/dograh</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/dograh"/>
    <language>en</language>
    <item>
      <title>Bland AI or Pipecat? Count Your Python Engineers First</title>
      <dc:creator>Pritesh Kumar</dc:creator>
      <pubDate>Mon, 23 Nov 2026 13:09:32 +0000</pubDate>
      <link>https://dev.to/dograh/bland-ai-or-pipecat-count-your-python-engineers-first-246e</link>
      <guid>https://dev.to/dograh/bland-ai-or-pipecat-count-your-python-engineers-first-246e</guid>
      <description>&lt;p&gt;Before you compare Bland AI and Pipecat on price or features, count the people on your team who can change a Python pipeline and keep it running in production. That number settles more of this decision than any rate card does.&lt;/p&gt;

&lt;p&gt;The two don't really sit on the same shelf. Bland is a hosted voice agent platform. You configure an agent in its builder, and Bland runs the call on its own models and its own servers. Pipecat is an open-source Python framework from Daily under BSD-2-Clause. Your engineers write each agent as a pipeline, and it runs wherever you deploy it.&lt;/p&gt;

&lt;h2&gt;
  
  
  If nobody on the team writes Python
&lt;/h2&gt;

&lt;p&gt;Bland was built for you. A product manager can read a Bland pathway, and nobody has to touch code to ship an agent. On 15 November Bland moved its dashboard to Bland Agents, where you write the prompt, lay out pathways, add tools and knowledge, set guardrails and run simulated test calls before you publish to staging and promote to production. API calls that still send a pathway or persona ID keep working.&lt;/p&gt;

&lt;p&gt;The bill is easy to forecast. Start is $0.14 a minute with Bland's models included, and Build is $299 a month plus $0.12 a minute. Watch the caps, because they shape the plan more than the rate does. Start allows 10 calls at once and 100 calls a day. Build allows 50 at once and 2,000 a day.&lt;/p&gt;

&lt;p&gt;On Bland the work moves to a different desk. Someone still writes the prompts and pathways and connects the agent to your CRM or booking system through tools.&lt;/p&gt;

&lt;h2&gt;
  
  
  If the voice agent is your product
&lt;/h2&gt;

&lt;p&gt;Pipecat hands you every lever. You pick from more than 100 model integrations on your own keys and can change any processor in the pipeline, then run the whole thing on your own servers. Pipecat Flows is built in for calls that follow set steps, like taking a booking or checking an order. Releases land every few weeks, so pin a version and retest after upgrades.&lt;/p&gt;

&lt;p&gt;The catch shows up at the phone line. Pipecat's telephony guide says its WebSocket routes to Twilio, Telnyx, Plivo and Exotel carry no advanced call center features like transfers or reconnects. To hand a caller to a person, you move the agent to Daily PSTN or a SIP route. Past that, a production phone agent wants contact lists with calling hours and retries, stored transcripts and recordings, a screen where non-developers can edit prompts and a way to score live calls. None of that ships with the framework.&lt;/p&gt;

&lt;p&gt;Our standing view is that Pipecat is an excellent base, and production deployment still needs significant plumbing on top of it. Plan that plumbing as a project of its own, with its own engineers. That layer is what Dograh, the open-source AI voice agent platform, adds on a fork of Pipecat that follows upstream releases. Its Transfer Call works on Twilio, Telnyx, Plivo, Cloudonix and Asterisk ARI, and it calls the destination first, connecting the caller only when someone answers.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the call actually runs
&lt;/h2&gt;

&lt;p&gt;Bland keeps the whole call inside its own stack. It runs its own SIP signaling and media servers, so every call is set up and processed on Bland infrastructure with Bland's models. One company in the call path is easy to explain to a security reviewer. The trade is that you can't read the code or run the platform on your own servers. Private hosting exists only on Enterprise, where Bland runs isolated infrastructure and dedicated GPUs for you, with a business associate agreement for HIPAA.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fl8p4c3qow4f1sa9sjge4.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fl8p4c3qow4f1sa9sjge4.webp" alt="One caller's call can take two paths. On the top path, a single box for Bland AI in Bland's cloud holds the phone servers, transcription, language model and voices, labeled one company. On the bottom path, Pipecat runs on your servers and sends audio and text out to a separate speech-to-text provider, language model provider and voice provider. A security reviewer on the right counts the companies on each path." width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Pipecat on your servers keeps the platform and the call records with you. The audio and text still travel to whichever speech and language providers your pipeline calls, though. Bringing your own model keys puts the contract in your name while the data keeps flowing out, so a team that needs audio to stay inside its network runs open models on its own hardware as well. If you want the open framework without running servers, Pipecat Cloud from Daily sits in the middle.&lt;/p&gt;

&lt;h2&gt;
  
  
  The 5,000-minute math
&lt;/h2&gt;

&lt;p&gt;Say you run 5,000 minutes a month, about 55 three-minute calls a day. Bland Start bills 5,000 x $0.14 = $700, and that already pays for Bland's models. Pipecat Cloud's smallest agent size bills 5,000 x $0.01 = $50, plus 5,000 x $0.018 = $90 for Daily PSTN if you use it.&lt;/p&gt;

&lt;p&gt;That $50 is hosting only. Every model lands on its own provider's bill, and the engineering time to build the product never shows up on an invoice at all. Softcery's cost model found hosted options coming out two to ten times lower below about 1M minutes a month once you hire a team to run your own stack. At this volume Bland Start also beats Build, which only pays off above roughly 15,000 minutes a month.&lt;/p&gt;

&lt;p&gt;So the framework gives you the bigger lever, and someone has to be paid to pull it.&lt;/p&gt;

&lt;p&gt;Whichever way you lean, pilot on a real phone number. Most phone calls still reach the agent as 8 kHz audio while a browser demo runs at 16 kHz, and an agent that sounded great in the browser can mishear on a handset.&lt;/p&gt;

&lt;p&gt;If you've shipped a phone agent on either one, how many engineer weeks did the first month of production actually take?&lt;/p&gt;

&lt;p&gt;Plan caps, the full cost table and the hosting options are laid out in our &lt;a href="https://www.dograh.com/hub/blogs/bland-ai-vs-pipecat" rel="noopener noreferrer"&gt;side-by-side of Bland's hosted agents and the Pipecat framework&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>voiceai</category>
      <category>opensource</category>
      <category>ai</category>
      <category>discuss</category>
    </item>
    <item>
      <title>Pipecat or Vocode? Ask Who Patches It When a Provider Changes</title>
      <dc:creator>Pritesh Kumar</dc:creator>
      <pubDate>Thu, 19 Nov 2026 11:03:15 +0000</pubDate>
      <link>https://dev.to/dograh/pipecat-or-vocode-ask-who-patches-it-when-a-provider-changes-235c</link>
      <guid>https://dev.to/dograh/pipecat-or-vocode-ask-who-patches-it-when-a-provider-changes-235c</guid>
      <description>&lt;p&gt;Here's a ten-minute test we'd run before building on either Pipecat or Vocode. Clone the repo, bump one provider client to its newest version, the OpenAI SDK is a good pick, and place a call. Whatever breaks is now your job to fix, and how often that happens depends mostly on whether anyone upstream is still shipping.&lt;/p&gt;

&lt;p&gt;On paper the two look like cousins. Both are open-source Python frameworks for real-time voice agents, and both carry permissive licenses, BSD-2-Clause for Pipecat and MIT for Vocode. Either one can go inside a closed commercial product as long as the copyright notice travels with it, and either can be forked freely. So the license won't settle this one.&lt;/p&gt;

&lt;h2&gt;
  
  
  One of them stopped moving
&lt;/h2&gt;

&lt;p&gt;Pipecat put out v1.16.0 on 12 November 2026, about two weeks after v1.15.0, and commits were still landing days later. Daily, the company behind the Daily video platform, maintains it with outside contributors, and new carrier serializers and services keep showing up in each release.&lt;/p&gt;

&lt;p&gt;Vocode's last commit is dated 15 November 2024, a client update for websockets and Cartesia. The last stable release on PyPI is 0.1.113 from June 2024. The README still asks for community maintainers. The repo isn't archived, but the hosted dashboard link in that README no longer loads, and vocode.dev now forwards to the GitHub organization.&lt;/p&gt;

&lt;p&gt;That gap hurts more in voice than in most corners of Python. Model providers change their APIs and retire models every few months. Vocode pins clients from 2024, including an OpenAI client from the 1.30 line and an early langchain-openai release. The first time a provider retires a model you depend on, the fix is yours to write and maintain. Pipecat isn't free of upkeep either. Releases come fast, so pin a version and rerun your call tests after every upgrade.&lt;/p&gt;

&lt;h2&gt;
  
  
  The phone call muddies the picture a bit
&lt;/h2&gt;

&lt;p&gt;Here's the part that cuts the other way. On transfers, the quiet project ships more out of the box. Vocode has a TransferCall action for Twilio and Vonage. On Twilio it redirects the live call to a new number through Twilio's API, which makes it a blind transfer with no check that anyone picks up.&lt;/p&gt;

&lt;p&gt;Pipecat reaches far more carriers, with serializers for Twilio, Telnyx, Plivo, Exotel, Vonage, Genesys and Jambonz, plus SIP and Daily's phone service. Its telephony guide is upfront that the WebSocket routes for Twilio, Telnyx, Plivo and Exotel carry no advanced call center features like transfers or reconnects. On those routes your team writes the handoff against the carrier's API, or moves the call onto SIP or Daily's phone service, where transfers are supported.&lt;/p&gt;

&lt;p&gt;So a working Vocode app on Twilio with a blind transfer that does its job is no emergency. Pin the versions and keep a plan ready for the day a provider retires a model.&lt;/p&gt;

&lt;h2&gt;
  
  
  Moving between them means rewriting the agent
&lt;/h2&gt;

&lt;p&gt;The two frameworks model a call in different shapes. In Pipecat a call is a pipeline of processors passing frames of audio and text along, so adding a filter or a tool call means dropping another processor into the line. In Vocode a call is a conversation object that ties a transcriber and a synthesizer to an agent, with actions hanging off the agent.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftbenq8ypoz66kyywey79.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftbenq8ypoz66kyywey79.webp" alt="Two workshops side by side. In the Pipecat one, frames of audio and text ride a belt past a line of processors while a new filter step is lowered into the line. In the Vocode one, a single conversation object holds a transcriber, an agent and a synthesizer, with actions on the agent. A line from either workshop leads to developers rewriting the agent code." width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;There's no adapter between those shapes. Porting a Vocode app to Pipecat is a rewrite of the agent code, so budget it like a rebuild, with its own round of real phone calls before cutover.&lt;/p&gt;

&lt;h2&gt;
  
  
  The framework is the small part of a phone agent
&lt;/h2&gt;

&lt;p&gt;Pick either and you get a loop that talks. A production phone agent also needs an editor that non-developers can use, outbound lists with retries, call history with recordings, QA on finished calls and a deployment that scales. Pipecat at least has a hosted runtime in Pipecat Cloud, run by Daily. Vocode has none that loads today, so you host it yourself.&lt;/p&gt;

&lt;p&gt;Our standing view is that Pipecat is an excellent base, and production deployment still needs significant plumbing on top. That plumbing is what Dograh, the open-source AI voice agent platform, adds around a fork of Pipecat it keeps in step with upstream releases. Campaigns there dial outbound lists with retries and calling hours, and every call keeps its transcript and recording alongside a per-turn trace. Its Transfer Call works on Twilio, Telnyx, Plivo, Cloudonix and Asterisk ARI, and it calls the destination first, connecting the caller only when someone answers.&lt;/p&gt;

&lt;p&gt;If you're starting fresh, start on Pipecat. Then run the bump-one-client test anyway, and try a transfer over a real phone call before anything ships, whichever framework you end up on.&lt;/p&gt;

&lt;p&gt;Anyone here still running Vocode in production? What broke first when a provider changed its API?&lt;/p&gt;

&lt;p&gt;Release dates and carrier support for both sit in one table in our &lt;a href="https://www.dograh.com/hub/blogs/pipecat-vs-vocode" rel="noopener noreferrer"&gt;rundown of Pipecat and Vocode maintenance and phone support&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>voiceai</category>
      <category>opensource</category>
      <category>python</category>
      <category>discuss</category>
    </item>
    <item>
      <title>Choose Synthflow or LiveKit by Who Fixes the Agent Next Year</title>
      <dc:creator>Pritesh Kumar</dc:creator>
      <pubDate>Tue, 17 Nov 2026 06:33:32 +0000</pubDate>
      <link>https://dev.to/dograh/choose-synthflow-or-livekit-by-who-fixes-the-agent-next-year-2ohh</link>
      <guid>https://dev.to/dograh/choose-synthflow-or-livekit-by-who-fixes-the-agent-next-year-2ohh</guid>
      <description>&lt;p&gt;Here's a test we'd run before signing for any voice agent stack. Pull up the last five changes your phone flows needed, say a renamed CRM field that broke a lookup, or a model your agent relied on getting retired. Then ask, for each option on your shortlist, who actually makes that change.&lt;/p&gt;

&lt;p&gt;Run that on Synthflow and LiveKit and you get two very different answers. That tells you more than a feature grid will, because launch day is the easy part. The agent spends years after it being changed.&lt;/p&gt;

&lt;h2&gt;
  
  
  On Synthflow, whoever owns the builder makes the fix
&lt;/h2&gt;

&lt;p&gt;Synthflow describes its product as a visual flow builder plus APIs. Where the agreement includes launch support, its forward-deployed engineers implement, test and launch the agents with your team. After that, an operations lead opens the flow and edits a prompt or a routing rule. Anything the builder can't express goes through Synthflow's APIs or a support request under the terms of your agreement.&lt;/p&gt;

&lt;p&gt;The model question is where it gets interesting. Model usage is part of Synthflow's agreement, so when the model behind your agent is retired, the swap is Synthflow's call. For a contact center without developers, that's a relief. For a team with strong opinions about models, it's a constraint to know about before signing.&lt;/p&gt;

&lt;p&gt;The commercial shape follows the same logic. Synthflow sells one annual enterprise agreement priced against the call volume you expect, with no per-minute rate and no free trial. Transcription, voices, CRM connections and SMS sit inside it alongside the models. Your flows and prompts live in Synthflow's platform and the code is closed, so the natural moment to change course is the renewal.&lt;/p&gt;

&lt;p&gt;It also plugs into a lot without custom work. Synthflow lists built-in connections to Zoom, Five9, RingCentral, 8x8, Twilio, Telnyx, Vonage and Freshcaller, with Genesys Cloud through an Enterprise setup.&lt;/p&gt;

&lt;h2&gt;
  
  
  On LiveKit, every fix is a pull request
&lt;/h2&gt;

&lt;p&gt;LiveKit Agents is Apache-2.0, and it gives engineers full control over turn-taking, tools and models. Nothing about the agent is out of reach. The flip side is that every change is a code change. A new transfer rule goes through review and tests, then ships through LiveKit Cloud or your own servers.&lt;/p&gt;

&lt;p&gt;LiveKit does have a browser Agent Builder, and LiveKit is upfront that it's meant for prototypes. It doesn't support workflows with handoffs or tasks, model plugins or tests. When an agent outgrows it, "Download code" turns it into a Python project, and from that point the agent belongs to your engineers.&lt;/p&gt;

&lt;p&gt;So back to the five changes. On LiveKit every one of them lands on an engineer's desk, next to the dependency upgrades any codebase needs anyway. So does the product layer around the agent, from calling lists to QA on live calls, which nobody ships for you.&lt;/p&gt;

&lt;p&gt;The bill reflects that split. LiveKit Cloud starts Build at $0 with 1,000 agent minutes, Ship at $50 a month with 5,000 and Scale at $500 with 50,000, then $0.01 per agent minute. Models and phone minutes come on top. The line no plan lists is engineering time, and on a code framework it's usually the biggest one.&lt;/p&gt;

&lt;p&gt;One licensing detail matters for anyone with a strict open-source policy. The turn detector ships under a separate LiveKit Model License, so read it before it goes into production.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the calls run
&lt;/h2&gt;

&lt;p&gt;Synthflow runs only in its own cloud. You pick a US or EU workspace at setup, and Synthflow notes that connected providers can process some requests elsewhere. Its Trust Center lists HIPAA as self-attested, which a healthcare buyer should read closely.&lt;/p&gt;

&lt;p&gt;LiveKit gives you more places to run. A LiveKit Cloud project has a data region, with an EU option chosen at creation, and LiveKit lists a signed BAA from its Scale plan upward. The open framework and media server run in any data center you like. Running them yourself keeps call audio inside your network only when the models run there too, since every provider on your keys still receives the audio it works on.&lt;/p&gt;

&lt;h2&gt;
  
  
  The gap in the middle
&lt;/h2&gt;

&lt;p&gt;Some teams want LiveKit's open code without turning every prompt tweak into an engineering ticket. That's the gap we built Dograh, the open-source AI voice agent platform, to sit in. Later changes are typed in plain words in the editor's Builder tab. Edits save as a draft, and the published version keeps taking calls until someone publishes the new one, while engineers can still read every line under the BSD 2-Clause license.&lt;/p&gt;

&lt;p&gt;Self-hosted, it has no per-minute platform fee. Servers, model keys and phone minutes still cost money. Dograh Cloud charges a platform fee of 1 cent a minute.&lt;/p&gt;

&lt;p&gt;For the maintenance years specifically, the QA node scores every step of test and live calls at a sample rate you set, and View Trace shows the speech-to-text, AI and voice time on each turn, which is usually where a "the agent feels slow" complaint gets settled.&lt;/p&gt;

&lt;p&gt;Whatever you pick, write down who owns each kind of change before you sign, and test the first version over a real phone call. A browser demo won't show you what callers hear.&lt;/p&gt;

&lt;p&gt;Which of your last five changes would have been hardest to make on the stack you run today?&lt;/p&gt;

&lt;p&gt;Billing, data location and what each option ties you to are set out side by side in our &lt;a href="https://www.dograh.com/hub/blogs/synthflow-vs-livekit" rel="noopener noreferrer"&gt;Synthflow and LiveKit comparison for teams planning year two&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>voiceai</category>
      <category>opensource</category>
      <category>ai</category>
      <category>discuss</category>
    </item>
    <item>
      <title>Put a Small Endpoint Between Your Voice Agent and Salesforce</title>
      <dc:creator>Pritesh Kumar</dc:creator>
      <pubDate>Mon, 16 Nov 2026 05:36:22 +0000</pubDate>
      <link>https://dev.to/dograh/put-a-small-endpoint-between-your-voice-agent-and-salesforce-5db5</link>
      <guid>https://dev.to/dograh/put-a-small-endpoint-between-your-voice-agent-and-salesforce-5db5</guid>
      <description>&lt;p&gt;There's exactly one signal we trust that a call made it into the CRM, and that's the CRM saying so. A success reply from Salesforce means the record exists. Any other reply means it doesn't, and something has to try again.&lt;/p&gt;

&lt;p&gt;That rule ends up shaping the whole Salesforce setup for a voice agent. If Salesforce's reply is the receipt, you want something in the middle that can read that reply and act on it, and that also holds the credentials Salesforce cares about. In practice that's a small HTTPS endpoint you own, and every request from the agent goes through it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The agent can't renew its own token
&lt;/h2&gt;

&lt;p&gt;The two auth models don't line up. Salesforce's server-to-server option, the client credentials flow, hands out short-lived access tokens and no refresh token. When a token stops working, you ask again with the client ID and secret. Voice platforms tend to store a credential as a fixed value. In Dograh, the open-source AI voice agent platform, a credential is an API Key, Bearer Token, Basic Auth or Custom Header, a fixed value you set once.&lt;/p&gt;

&lt;p&gt;So the endpoint keeps the Salesforce secret and handles tokens, and the agent only ever sends it a fixed key of yours, say in an &lt;code&gt;X-Bridge-Key&lt;/code&gt; header. The endpoint checks that header before it does anything else.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fg6xmi3mit62ybho269q1.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fg6xmi3mit62ybho269q1.webp" alt="The agent's requests go to your own endpoint, which holds a Salesforce token. It gets the token once with the client ID and secret, sends it with every request, and swaps it for a fresh one when Salesforce stops accepting it." width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The renewal logic is short. Fetch a token, reuse it, and when Salesforce answers &lt;code&gt;401&lt;/code&gt;, fetch a fresh one and try once more:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;sf_request&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;method&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="o"&gt;**&lt;/span&gt;&lt;span class="n"&gt;kwargs&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;httpx&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Response&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;attempt&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;token&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;sf_token&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;force&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;attempt&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="n"&gt;httpx&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;AsyncClient&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;timeout&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;reply&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;request&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
                &lt;span class="n"&gt;method&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"{SF}/services/data/v68.0{path}"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"Authorization"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"Bearer {token}"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="o"&gt;**&lt;/span&gt;&lt;span class="n"&gt;kwargs&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;reply&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;status_code&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="mi"&gt;401&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="k"&gt;break&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;reply&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;sf_token&lt;/code&gt; caches the access token and only posts to &lt;code&gt;/services/oauth2/token&lt;/code&gt; with &lt;code&gt;grant_type=client_credentials&lt;/code&gt; when it has nothing cached or gets forced. After that, nothing downstream has to think about expiry.&lt;/p&gt;

&lt;h2&gt;
  
  
  Setting up the Salesforce side
&lt;/h2&gt;

&lt;p&gt;New integrations start as an External Client App. Creating new connected apps has been restricted since Spring '26, and Salesforce recommends External Client Apps instead, though connected apps you already have keep working. Enable OAuth and switch on the client credentials flow in the app's OAuth policies. Then pick the run-as user.&lt;/p&gt;

&lt;p&gt;That run-as user matters more than it looks. Every action through this flow runs as that user, so give it to a dedicated integration user and keep people's own logins out of it. Enterprise, Unlimited and Performance Edition orgs include five Salesforce Integration user licenses, and the integration user takes the "Minimum Access - API Only Integrations" profile. Add a permission set that can read Contacts and Leads and create Tasks, and stop there. The consumer key and secret go into the endpoint's environment variables, where only your server can read them.&lt;/p&gt;

&lt;h2&gt;
  
  
  Finding the caller before hello
&lt;/h2&gt;

&lt;p&gt;For inbound calls, the endpoint can look the caller up before the agent speaks. Pre-Call Data Fetch, at the bottom of the Start Call node, POSTs the caller's number in &lt;code&gt;call_inbound.from_number&lt;/code&gt;, waits up to 10 seconds, and turns whatever you return under &lt;code&gt;initial_context&lt;/code&gt; into variables the prompt can use, like &lt;code&gt;{{first_name}}&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Salesforce stores phone numbers however people typed them, so matching one exact string misses plenty. A &lt;code&gt;parameterizedSearch&lt;/code&gt; call with &lt;code&gt;in=PHONE&lt;/code&gt; across Contact and Lead, using the last 10 digits of a US number, gets past the formatting mess in a single request. Return the first match's ID and first name, or &lt;code&gt;known_caller: no&lt;/code&gt; when there's nothing.&lt;/p&gt;

&lt;p&gt;Two cautions here. The caller is listening to ringing while this runs, so keep it quick. And a matching number only gets you a record, so the agent should confirm identity with an approved check, such as date of birth, before it mentions anything it learned from Salesforce.&lt;/p&gt;

&lt;p&gt;Outbound calls can skip the search entirely by carrying the Salesforce ID in the campaign CSV or the API Trigger's &lt;code&gt;initial_context&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Writing the call back, receipt in hand
&lt;/h2&gt;

&lt;p&gt;This is where the opening rule pays off. When the call ends, a Webhook node posts the result to the endpoint, which files a Task on the matched Contact or Lead. One field catches people out: &lt;code&gt;TaskSubtype&lt;/code&gt; has to be &lt;code&gt;Call&lt;/code&gt; on the create request, because Salesforce won't let you change it afterwards. Leave it off and that call sits in the record as a plain task for good.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"Subject"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Voice agent call"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"Status"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Completed"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"TaskSubtype"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Call"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"CallType"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Outbound"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"CallDurationInSeconds"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;184&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"CallDisposition"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"callback_requested"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"WhoId"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"003XXXXXXXXXXXXXXX"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"Description"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Transcript: &amp;lt;transcript_url from the webhook&amp;gt;"&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;WhoId&lt;/code&gt; takes the Contact or Lead ID you found before the greeting, and the call length goes into &lt;code&gt;CallDurationInSeconds&lt;/code&gt; as it arrives.&lt;/p&gt;

&lt;p&gt;Then hand Salesforce's answer straight back. If Salesforce returns an error, the endpoint returns an error too, and the Webhook node retries temporary failures up to 5 attempts. If Salesforce returns success, the Task exists and you're done. Retries bring their own risk, which is filing the same call twice, so keep the &lt;code&gt;run_id&lt;/code&gt; of every Task you've filed and skip any you've already seen.&lt;/p&gt;

&lt;p&gt;Self-hosting the platform keeps the client secret and every Salesforce request inside your own network, with caller data moving only between your servers and Salesforce.&lt;/p&gt;

&lt;p&gt;Before trusting any of it, place a test call from a real phone and open its View Trace, which shows what the pre-call request and the webhook sent and what your endpoint answered. Then call once from an unknown number and make sure the agent still greets well when there's no match.&lt;/p&gt;

&lt;p&gt;How are you handling CRM writes from your voice agents? Do you treat the CRM's reply as the record of truth, or reconcile the logs on a schedule?&lt;/p&gt;

&lt;p&gt;The per-step checks and the full phone lookup handler are in our &lt;a href="https://www.dograh.com/hub/blogs/connect-voice-agent-salesforce" rel="noopener noreferrer"&gt;Salesforce voice agent integration walkthrough&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>voiceai</category>
      <category>salesforce</category>
      <category>python</category>
      <category>ai</category>
    </item>
    <item>
      <title>Pick your phone route before you pick a voice AI framework</title>
      <dc:creator>Pritesh Kumar</dc:creator>
      <pubDate>Wed, 11 Nov 2026 06:46:51 +0000</pubDate>
      <link>https://dev.to/dograh/pick-your-phone-route-before-you-pick-a-voice-ai-framework-2c79</link>
      <guid>https://dev.to/dograh/pick-your-phone-route-before-you-pick-a-voice-ai-framework-2c79</guid>
      <description>&lt;p&gt;Here's a view we hold firmly: work out how calls will reach your agent before you choose the framework. SIP trunking is the reliable path for production phone traffic, and WebRTC belongs to calls that start in a browser. That one choice also decides, quietly, whether a caller who asks for a human can ever get one.&lt;/p&gt;

&lt;p&gt;Pipelines and models matter, of course. But what bites teams a month in is usually the phone side, so that's the lens here.&lt;/p&gt;

&lt;h2&gt;
  
  
  The transfer that isn't there
&lt;/h2&gt;

&lt;p&gt;Pipecat is a lovely piece of engineering. A call is a pipeline of processors passing frames along, and the quickstart chains transport input, Deepgram speech-to-text, Silero voice activity detection, an OpenAI model, Cartesia text-to-speech and transport output. The transport at each end is swappable, so the same agent logic can answer a browser over WebRTC or a phone call over a carrier WebSocket. If it's Twilio, set the input and output sample rates to 8000, since Twilio streams 8 kHz mono audio and you don't want to resample.&lt;/p&gt;

&lt;p&gt;Here's the catch. &lt;a href="https://docs.pipecat.ai/guides/telephony/overview" rel="noopener noreferrer"&gt;Pipecat's telephony guide&lt;/a&gt; lists its WebSocket integrations for Twilio, Telnyx, Plivo and Exotel with "No advanced call center features like transfers or reconnects". The carrier WebSocket is the fastest way to get a bot on a phone number, and it's also a route where "let me put you through to someone" has nowhere to go.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fn7i8xzkrq68ad5wuy3nw.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fn7i8xzkrq68ad5wuy3nw.webp" alt="Two callers ask a Pipecat bot for a person. On Daily PSTN or SIP the bot hands the caller to a person whose phone rings, while on a carrier audio stream over a WebSocket the hand-off stops with no transfer." width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Transfers in Pipecat come from Daily PSTN or a SIP connection, which Pipecat lists for transfers, forwarding and multi-party calls. None of that is hard to set up. It's just much nicer to choose it on day one than to discover it after the demo, when someone in support asks how a caller reaches them.&lt;/p&gt;

&lt;h2&gt;
  
  
  LiveKit starts from SIP
&lt;/h2&gt;

&lt;p&gt;LiveKit Agents comes at it from the other end. Your agent is a participant in a room on the LiveKit media server, and phone callers join that room over SIP. An inbound trunk takes calls from your carrier and a dispatch rule sends each caller, and your agent, into a room. Dialling out is an outbound trunk plus a SIP participant.&lt;/p&gt;

&lt;p&gt;Transfers are native here: cold transfers over SIP REFER, plus agent-assisted transfers. LiveKit Cloud also sells US local and toll-free numbers, so you can skip a separate carrier if all your callers are in the US.&lt;/p&gt;

&lt;p&gt;Self-hosting is where the phone side gets heavier. LiveKit says plainly that "the SIP service needs to be deployed separately", and its SIP signalling port and media port range have to be open to the internet. Budget a bit of ops time for that.&lt;/p&gt;

&lt;p&gt;LiveKit deserves real credit on testing, too. The Python starter ships simulations that play whole conversations against your agent, plus a debugger that steps through one text turn at a time.&lt;/p&gt;

&lt;h2&gt;
  
  
  TEN and Vocode, quickly
&lt;/h2&gt;

&lt;p&gt;TEN Framework builds an agent as a graph of extensions, and its default real-time transport runs on Agora, so the voice assistant example wants an Agora App ID and App Certificate next to your model keys. There's a WebSocket example and a SIP call example in the repo. The part to read slowly is the &lt;a href="https://github.com/TEN-framework/ten-framework/blob/main/LICENSE" rel="noopener noreferrer"&gt;licence file&lt;/a&gt;: Apache 2.0 with added conditions from Agora. You can't host the framework on end-user devices like mobile phones, and you can't deploy it in a way that competes with Agora's offerings. For an on-device product or a voice platform, those two lines can settle the decision before any code is written.&lt;/p&gt;

&lt;p&gt;Vocode is an MIT Python library and one of the earliest open voice agent projects, with inbound and outbound phone calls and integrations for lots of speech and voice providers. If you have a Vocode codebase and you're weighing a move, Pipecat is the shortest hop, since both are Python pipelines.&lt;/p&gt;

&lt;h2&gt;
  
  
  Your browser demo is too kind
&lt;/h2&gt;

&lt;p&gt;One more phone-side trap. Most phone calls still reach the agent as 8 kHz audio, while a browser demo runs at 16 kHz. An agent that sounds sharp in a web test can mishear names and numbers on a real line, and how much depends on the speech-to-text model and the phone path. Place actual calls from a mobile and a landline before you commit to anything.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's still on your plate
&lt;/h2&gt;

&lt;p&gt;Even with the right route, a framework gives you the real-time loop as code and stops there. Pipecat is an excellent base, and production deployment still needs significant plumbing around it. There's no screen where a support lead edits the greeting without a pull request, and no outbound dialler with calling hours. Reviewing finished calls is yours to build as well.&lt;/p&gt;

&lt;p&gt;That gap is where Dograh, the open-source AI voice agent platform we build, sits. It runs its call pipeline on our own fork of Pipecat, and you can self-host it or run it on our cloud.&lt;/p&gt;

&lt;p&gt;Transfer Call in our case works on Twilio, Telnyx, Plivo, Cloudonix and Asterisk ARI, so the hand-off question from earlier has an answer on each of those carriers.&lt;/p&gt;

&lt;p&gt;After each call, a QA node scores every step separately with tags, a 1-10 score, sentiment and a summary, so call review isn't a side project.&lt;/p&gt;

&lt;p&gt;Our rough rule for the frameworks themselves: if your developers want Python control and transport freedom, start with Pipecat and plan a Daily PSTN or SIP route for transfers before launch. If you'd rather have native SIP and a media server you can also use for video, LiveKit Agents fits better, and LiveKit Cloud saves you running the SIP service.&lt;/p&gt;

&lt;p&gt;If you've shipped a phone agent on Pipecat or LiveKit, which route did you end up on for transfers, and did you find out before launch or after?&lt;/p&gt;

&lt;p&gt;The licence terms, transports and remaining build work for all five projects sit side by side in our &lt;a href="https://www.dograh.com/hub/blogs/open-source-voice-ai-frameworks" rel="noopener noreferrer"&gt;comparison of open-source voice agent frameworks for phone calls&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>opensource</category>
      <category>python</category>
      <category>webdev</category>
    </item>
    <item>
      <title>LiveKit vs Twilio is the wrong question for a phone agent</title>
      <dc:creator>Pritesh Kumar</dc:creator>
      <pubDate>Sat, 07 Nov 2026 08:07:26 +0000</pubDate>
      <link>https://dev.to/dograh/livekit-vs-twilio-is-the-wrong-question-for-a-phone-agent-4m8n</link>
      <guid>https://dev.to/dograh/livekit-vs-twilio-is-the-wrong-question-for-a-phone-agent-4m8n</guid>
      <description>&lt;p&gt;Here's a view we hold firmly. SIP trunking is the most reliable way to bring production phone traffic into a voice agent, and WebRTC belongs to calls that start in a browser or an app. Work out which one your callers will use before you pick anything else.&lt;/p&gt;

&lt;p&gt;Put that next to the LiveKit vs Twilio question and the question mostly falls apart. The two products do different jobs inside the same call, and plenty of phone agents run on both.&lt;/p&gt;

&lt;h2&gt;
  
  
  Follow one call from the handset
&lt;/h2&gt;

&lt;p&gt;Someone dials your number from their mobile. The phone network has to hand that call to whoever owns the number, and that's the carrier's job. Twilio is a carrier. It rents numbers in more than 100 countries and connects them to the public phone network.&lt;/p&gt;

&lt;p&gt;Then the audio has to reach your agent, and the agent's voice has to come back fast enough to feel like a conversation. That's the media layer, which is where LiveKit lives. It moves live audio between participants over WebRTC, and your agent joins the room as one of those participants.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9fxp98534dlz4xp0036k.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9fxp98534dlz4xp0036k.webp" alt="A caller's phone call crosses the phone network to a Twilio number, then a SIP trunk carries it into a LiveKit room, where the call and the AI agent talk over WebRTC." width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So a LiveKit agent that answers real phone calls usually has a SIP trunk feeding the room. Inbound calls show up as SIP participants that dispatch rules route into rooms, and outbound calls leave through an outbound trunk. LiveKit lists Twilio, Telnyx and Plivo among the trunk providers it has tested.&lt;/p&gt;

&lt;h2&gt;
  
  
  When you can skip the carrier
&lt;/h2&gt;

&lt;p&gt;LiveKit Cloud does sell phone numbers, local and toll-free, in the United States only. If every caller is in the US and you're on LiveKit Cloud, those numbers can carry the whole thing and Twilio drops out.&lt;/p&gt;

&lt;p&gt;Anything outside that brings a carrier back. Numbers in other countries need a trunk, and so do numbers you already own. Self-hosting LiveKit needs one too, plus LiveKit's SIP service running as its own deployment next to the media server. That's one more service to keep alive.&lt;/p&gt;

&lt;p&gt;So for most teams the real decision is which carrier sits under LiveKit. Twilio is a common pick partly because LiveKit documents that exact route. You create a Twilio Elastic SIP trunk, point its origination at LiveKit's SIP endpoint, and the trunk domain ends in pstn.twilio.com. For inbound calls only, TwiML on Programmable Voice works as well.&lt;/p&gt;

&lt;h2&gt;
  
  
  Twilio has two doors, and they bill differently
&lt;/h2&gt;

&lt;p&gt;Programmable Voice is the first door. A call hits your number, Twilio asks your server what to do, and Media Streams pushes the raw audio to your agent over a WebSocket. Receiving a call on a US local number costs $0.0085 a minute, and the stream adds $0.0044 a minute.&lt;/p&gt;

&lt;p&gt;Elastic SIP Trunking is the second. It connects your Twilio numbers to anything that speaks SIP, LiveKit included. The audio travels over SIP, so there's no stream fee, and origination to a US local number is $0.0034 a minute.&lt;/p&gt;

&lt;p&gt;Twilio also sells a speech layer of its own called ConversationRelay. If your agent already runs its own speech models, you can leave it out.&lt;/p&gt;

&lt;h2&gt;
  
  
  Price one call and look at the shape
&lt;/h2&gt;

&lt;p&gt;Take a 5-minute inbound call to a US local number on LiveKit Cloud's Ship plan with a Twilio trunk, past the plan's 5,000 included agent session minutes and 5,000 SIP minutes, with the speech and language models left out.&lt;/p&gt;

&lt;p&gt;Twilio origination comes to 5 x $0.0034 = $0.0170. LiveKit SIP minutes are 5 x $0.004 = $0.0200. Agent session minutes are 5 x $0.01 = $0.0500. That's $0.0870 for the call before models, plus the $50 Ship plan and $1.15 a month for the Twilio number. Inside the included minutes, the plan fee covers the LiveKit lines instead.&lt;/p&gt;

&lt;p&gt;The total isn't the interesting bit. Two companies bill you for one call, the carrier for the line and the platform for the agent, and that split holds on every stack we've priced. Budget for both from the first day.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the framework leaves on your plate
&lt;/h2&gt;

&lt;p&gt;LiveKit gives you the media server and an agent framework, LiveKit Agents, which is open source under Apache-2.0. Your team writes the agent in code and builds the product around it, such as call lists and a way to review what happened on each call.&lt;/p&gt;

&lt;p&gt;That's the gap a ready agent platform fills while keeping the carrier underneath. Dograh, the open-source AI voice agent platform we build, works that way, and you can self-host it or run it on our cloud. It runs on Pipecat through our own fork, not on LiveKit, and connects to Twilio with an Account SID and Auth Token. Your numbers stay on your Twilio account and your bill.&lt;/p&gt;

&lt;p&gt;Full call traces and QA that scores each step of a call come built in, so reviewing calls isn't a side project.&lt;/p&gt;

&lt;p&gt;On our cloud, a Twilio trunk can also point at the organisation's Managed SIP domain, which swaps the receive and stream lines for the trunk rate.&lt;/p&gt;

&lt;p&gt;Handing a caller to a person works on Twilio too. Transfer Call rings the destination first and connects the caller once someone answers, with an optional short spoken introduction on Twilio.&lt;/p&gt;

&lt;p&gt;If you're running LiveKit for phone calls outside the US, which carrier did you put underneath it, and what made you pick it?&lt;/p&gt;

&lt;p&gt;The side-by-side table and the same call priced on a ready agent platform are in our &lt;a href="https://www.dograh.com/hub/blogs/livekit-vs-twilio" rel="noopener noreferrer"&gt;breakdown of how a media framework and a phone carrier split one voice agent call&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>opensource</category>
      <category>webdev</category>
      <category>programming</category>
    </item>
    <item>
      <title>One clean test call proves nothing about your voice agent</title>
      <dc:creator>Pritesh Kumar</dc:creator>
      <pubDate>Thu, 05 Nov 2026 09:51:09 +0000</pubDate>
      <link>https://dev.to/dograh/one-clean-test-call-proves-nothing-about-your-voice-agent-3i1l</link>
      <guid>https://dev.to/dograh/one-clean-test-call-proves-nothing-about-your-voice-agent-3i1l</guid>
      <description>&lt;p&gt;Language models aren't deterministic, so every leg of a voice agent conversation has to run several times before you trust it. One good call tells you the agent can work. It tells you nothing about whether it will.&lt;/p&gt;

&lt;p&gt;That single idea changes how I'd approach a phone agent as a developer. Stop treating it as a prompt you tweak until the demo sounds right, and treat it like any other service you ship, with small integration points and versions you can test and roll back.&lt;/p&gt;

&lt;h2&gt;
  
  
  The spread is real, even at temperature 0
&lt;/h2&gt;

&lt;p&gt;Thinking Machines Lab sent 1,000 identical requests to a model and got &lt;a href="https://thinkingmachines.ai/blog/defeating-nondeterminism-in-llm-inference/" rel="noopener noreferrer"&gt;80 distinct completions&lt;/a&gt; back. A voice stack piles more variance on top, because the speech-to-text model can mishear a name and callers interrupt whenever they like. The &lt;a href="https://arxiv.org/abs/2605.13841" rel="noopener noreferrer"&gt;EVA-Bench study&lt;/a&gt; tested 12 voice agent systems, and none scored above 0.5 on both task accuracy and caller experience.&lt;/p&gt;

&lt;p&gt;So "I called it and it worked" is a sample size of one.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keep your own code at the edges
&lt;/h2&gt;

&lt;p&gt;The hard real-time work, like streaming audio and deciding when the caller has finished talking, belongs to the orchestration layer. Your code only shows up at the edges of a call.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flx2vr290cjd78npvgj5x.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flx2vr290cjd78npvgj5x.webp" alt="One phone call between the agent and a caller, with your code underneath it. First, your code sends a start request with the number to call and what the agent should know. Second, while the call runs, the agent asks your endpoint to check a slot and gets an answer. Third, after the caller says goodbye, a results card with extracted variables, QA results and recording and transcript links reaches your endpoint." width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Before the call, your system starts it. In Dograh, the open-source AI voice agent platform we build, that's a POST to an API Trigger with the number to dial and an &lt;code&gt;initial_context&lt;/code&gt; object the prompts can read. You can self-host it or run it on our cloud.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-X&lt;/span&gt; POST https://your-dograh-instance/api/v1/public/agent/&lt;span class="o"&gt;{&lt;/span&gt;uuid&lt;span class="o"&gt;}&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s2"&gt;"Content-Type: application/json"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s2"&gt;"X-API-Key: dgr_your_key"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-d&lt;/span&gt; &lt;span class="s1"&gt;'{
    "phone_number": "+1415555XXXX",
    "initial_context": { "customer_name": "Jane", "order_id": "A-1042" }
  }'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The reply carries a &lt;code&gt;workflow_run_id&lt;/code&gt;. Store it against your own record, so a retry on your side never dials Jane twice.&lt;/p&gt;

&lt;p&gt;While the call runs, the agent calls you. An HTTP API tool hits your endpoint to check a slot or write a record. Those tools time out after 5 seconds by default and don't retry, so the prompt has to say what the agent tells the caller when a request fails. A tool can also play a typed line or a recorded clip as it starts, which keeps a slow lookup from turning into dead air.&lt;/p&gt;

&lt;p&gt;When the call ends, a Webhook node posts the results to you, with the extracted variables and QA results, plus links to the recording and transcript. Timeouts and 5xx replies get retried automatically, up to 5 attempts. A wrong URL or credential doesn't, so that's the failure to watch for in your logs.&lt;/p&gt;

&lt;p&gt;That's the whole integration surface. Everything after it is testing and release.&lt;/p&gt;

&lt;h2&gt;
  
  
  Write the scenarios before you trust anything
&lt;/h2&gt;

&lt;p&gt;Pick a fixed set of scenarios, including the awkward ones, like the caller who gives a wrong date of birth or asks for a person halfway through. Run each leg several times and count the passes. A pass rate per leg is far more honest than a feeling about one recording.&lt;/p&gt;

&lt;p&gt;Test Chat in the editor lets you rerun a single agent turn, or edit it and rerun, without dialling again. Test values go in the Variables tab, and setting &lt;code&gt;direction&lt;/code&gt; to &lt;code&gt;outbound&lt;/code&gt; exercises the outbound path. QA scores each step of the call separately, with its own 1-10 score and tags, so you can compare versions node by node instead of guessing which change helped.&lt;/p&gt;

&lt;p&gt;Finish with a real phone call on the line you'll actually use, since a browser test runs at 16 kHz while most phone calls still arrive at 8 kHz.&lt;/p&gt;

&lt;h2&gt;
  
  
  Ship versions, never live edits
&lt;/h2&gt;

&lt;p&gt;This is the step teams skip. Every edit should land in a draft, and live callers should only ever reach a published version. In our case that's built in: edits save as drafts, Publish runs validation and records a new entry in Version History, and the API Trigger has a production URL for the published version plus a test URL that runs the latest draft.&lt;/p&gt;

&lt;p&gt;Rollback gets boring, which is exactly what you want. Pause the campaign, publish the previous settings again, and you're back. A campaign can also point at one specific saved version, so a half-finished edit never reaches a caller.&lt;/p&gt;

&lt;p&gt;One catch if a coding assistant helps you build. An agent created through the MCP server is published as version 1 straight away, so review it before it takes real calls. Edits to an existing agent save as drafts like everything else.&lt;/p&gt;

&lt;p&gt;If I had to boil it down, keep your integration code at the edges and let pass rates, not demos, decide when a version ships.&lt;/p&gt;

&lt;p&gt;How many runs per leg do you make before you call a voice agent ready? I'm curious where other teams land.&lt;/p&gt;

&lt;p&gt;The security threats and the go-live checklist that didn't fit here are in our &lt;a href="https://www.dograh.com/hub/blogs/voice-ai-for-developers" rel="noopener noreferrer"&gt;developer's map of a phone agent, from first API call to release&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>opensource</category>
      <category>webdev</category>
      <category>programming</category>
    </item>
    <item>
      <title>Your Own Cartesia Key Doesn't Make Your Voice Agent Self-Hosted</title>
      <dc:creator>Pritesh Kumar</dc:creator>
      <pubDate>Wed, 04 Nov 2026 09:02:50 +0000</pubDate>
      <link>https://dev.to/dograh/your-own-cartesia-key-doesnt-make-your-voice-agent-self-hosted-14nm</link>
      <guid>https://dev.to/dograh/your-own-cartesia-key-doesnt-make-your-voice-agent-self-hosted-14nm</guid>
      <description>&lt;p&gt;Putting your own Cartesia key into a voice agent feels like taking control. What it changes is whose name sits on the contract. Every line the agent speaks is still voiced on Cartesia's servers, and every word the caller says is still transcribed there.&lt;/p&gt;

&lt;p&gt;That gap is about to matter to a lot of teams. Cartesia stops hosting Line SDK agents on December 1, 2026. Line code you run yourself keeps working, so plenty of people will move their agents onto their own machines and call the job done. A self-run Line agent still connects to Cartesia through a self-hosted deployment URL, though. Your code moved. The call didn't.&lt;/p&gt;

&lt;p&gt;So before anyone types "self-hosted" into a security questionnaire, it's worth being exact about what Cartesia opens up and which pieces you'd have to replace yourself.&lt;/p&gt;

&lt;h2&gt;
  
  
  Cartesia is more open than people think, in the wrong places
&lt;/h2&gt;

&lt;p&gt;Credit where it's due. The Python and JavaScript SDKs are Apache-2.0, and so is the &lt;a href="https://github.com/cartesia-ai/line" rel="noopener noreferrer"&gt;Line SDK&lt;/a&gt; for code-first agents. That's real open code you can fork and read.&lt;/p&gt;

&lt;p&gt;The parts that actually answer the phone are closed. Managed Agents is Cartesia's product running in Cartesia's cloud, and the Sonic and Ink model weights aren't published. On Enterprise, the sales team can arrange an on-premise or private-cloud deployment of the models. That's a licensed private deployment under a contract: it runs on your hardware, and you still can't read or change the code.&lt;/p&gt;

&lt;p&gt;I find it easiest to treat this as a question of layers, because "open-source alternative to Cartesia" means something different depending on which layer you want to own.&lt;/p&gt;

&lt;p&gt;Owning the agent code is the easy one. Keep running Line on your own servers, or move to LiveKit Agents or Pipecat. The catch is everything around the agent. Telephony, call history, QA and a dashboard all turn into things your developers build and maintain.&lt;/p&gt;

&lt;p&gt;Owning the whole platform means replacing Managed Agents as a product, with the builder and the phone side included. That's the layer we work on. Dograh, the open-source AI voice agent platform we build, is BSD-2-Clause and covers it, and you can self-host it or run it on Dograh Cloud.&lt;/p&gt;

&lt;p&gt;Owning the voice is the hard one, so it gets its own section.&lt;/p&gt;

&lt;h2&gt;
  
  
  Open voices are usable, and they're behind
&lt;/h2&gt;

&lt;p&gt;Be honest with your stakeholders here. On the &lt;a href="https://artificialanalysis.ai/text-to-speech/leaderboard" rel="noopener noreferrer"&gt;Artificial Analysis Speech Arena&lt;/a&gt;, where listeners vote blind, Sonic 3.6 sits in fourth place. Kokoro 82M is 62nd and Chatterbox is 80th. Swapping Sonic for an open model is a real quality trade, and you only learn how big it is for your callers by testing on actual phone calls.&lt;/p&gt;

&lt;p&gt;If you still want to go open, Kokoro 82M (Apache-2.0) is the quick start. It's small and fast, with fixed voices and no cloning from a reference clip. Kokoro is also the default model in our Local Models option, which runs through Speaches, so there's no extra wiring.&lt;/p&gt;

&lt;p&gt;Chatterbox (MIT) is the one to test if you need cloning, since it copies a voice from a short clip. Every output carries Resemble AI's audio watermark. One practical snag: the common Chatterbox servers return WAV or MP3 files, while our local voice slot expects raw 24 kHz audio, so plan for a server that returns that format.&lt;/p&gt;

&lt;p&gt;On the speech-to-text side, Whisper models run through the same Speaches connection, with faster-distil-whisper-small.en as the default.&lt;/p&gt;

&lt;p&gt;Read licences carefully past those two. Fish Speech ships under the Fish Audio Community License, which isn't OSI-approved and needs a separate commercial licence for public services. F5-TTS and XTTS-v2 are licensed for non-commercial use only. Downloadable weights don't automatically mean you can put them in a product.&lt;/p&gt;

&lt;h2&gt;
  
  
  You don't have to drop Sonic to own the platform
&lt;/h2&gt;

&lt;p&gt;Here's the middle path a lot of teams miss. Cartesia is a built-in provider in our platform, so you can keep the voice your callers already know. You pick Sonic 3.6, 3.5 or 3, paste any Cartesia voice ID (cloned voices included) and add your own key. For speech-to-text, Ink 2 covers English and ink-whisper handles other languages.&lt;/p&gt;

&lt;p&gt;That gets you an open platform with a closed voice. It's a perfectly good place to be, as long as everyone understands the audio still goes to Cartesia under your key.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4tktvjf9c3v8ys6uchh5.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4tktvjf9c3v8ys6uchh5.webp" alt="A call reaches the agent on the team's own servers. Its reply is voiced either by Cartesia's cloud on the team's own key, so the audio leaves the servers, or by Kokoro on the team's own GPU, so the audio stays inside." width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If calls must never leave your servers, the models have to live there too. Point speech-to-text and the voice at Speaches, add an open-weight language model, and turn off the anonymous usage telemetry a self-hosted install sends by default by setting ENABLE_TELEMETRY=false and removing POSTHOG_API_KEY. A self-hosted install runs 10 calls at once out of the box, and your servers and phone carrier set the real ceiling.&lt;/p&gt;

&lt;p&gt;That's the actual trade. The vendor invoice shrinks, and the GPUs and upgrades become your team's job. For a small team at low volume, a hosted platform can honestly be the better use of time.&lt;/p&gt;

&lt;p&gt;If you've already moved your Line agents off Cartesia's hosting, did the call path change as much as you expected, or is Cartesia still in every call?&lt;/p&gt;

&lt;p&gt;The layer-by-layer table and the full self-hosting setup are in our &lt;a href="https://www.dograh.com/hub/blogs/open-source-alternative-to-cartesia" rel="noopener noreferrer"&gt;breakdown of open-source replacements for Cartesia's platform and voices&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>opensource</category>
      <category>voiceai</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Keep n8n Out of Your Voice Agent's Audio Loop</title>
      <dc:creator>Pritesh Kumar</dc:creator>
      <pubDate>Fri, 30 Oct 2026 08:17:44 +0000</pubDate>
      <link>https://dev.to/dograh/keep-n8n-out-of-your-voice-agents-audio-loop-1od5</link>
      <guid>https://dev.to/dograh/keep-n8n-out-of-your-voice-agents-audio-loop-1od5</guid>
      <description>&lt;p&gt;Every phone call runs on a turn budget. The speech pipeline has to finish its turn before the caller notices a pause, and n8n is an engine built for steps that are allowed to take seconds. Put those two in the same loop and the caller hears every network hop.&lt;/p&gt;

&lt;p&gt;So the design rule we work from is simple: the voice agent owns the audio and n8n owns the business logic, with HTTP as the only thing passing between them. Here's how that split looks when you wire it up, and the one place where it gets tight.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1du2umj7nqu34q853vqr.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1du2umj7nqu34q853vqr.webp" alt="Two lanes, the voice agent for the live call and n8n for the business logic, connected only by HTTP calls: starting the call, a mid-call tool call and the post-call result." width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  No connector, just HTTP in and out
&lt;/h2&gt;

&lt;p&gt;You don't need a named n8n node for your voice platform. A vendor connector ties your workflows to one platform's event format, and you end up writing a Code node to reshape its fixed payload into what your CRM expects.&lt;/p&gt;

&lt;p&gt;Plain webhooks avoid that. In Dograh, an open-source, self-hostable AI voice agent platform, the post-call Webhook node posts a JSON template you write yourself, so you pick every field name and which call detail fills it. n8n receives fields already named the way your CRM names them. If you swap the voice side later, you change a URL and a template and leave the workflow alone. The same wiring works with Zapier or your own backend, since n8n is just a good HTTP citizen here.&lt;/p&gt;

&lt;h2&gt;
  
  
  Calls going out: one HTTP Request node
&lt;/h2&gt;

&lt;p&gt;On the voice side you add an API Trigger node to the agent. It gets a UUID plus a test URL and a production URL. The production URL only runs a published workflow, so publish first. Create an API key and copy it right away, because the full key is shown only once.&lt;/p&gt;

&lt;p&gt;The request n8n sends looks like this (swap in your own instance address):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-X&lt;/span&gt; POST https://your-dograh-instance/api/v1/public/agent/&lt;span class="o"&gt;{&lt;/span&gt;uuid&lt;span class="o"&gt;}&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s2"&gt;"Content-Type: application/json"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s2"&gt;"X-API-Key: dgr_your_api_key"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-d&lt;/span&gt; &lt;span class="s1"&gt;'{
    "phone_number": "+1415555XXXX",
    "initial_context": {
      "customer_name": "Jane",
      "appointment_date": "March 15"
    }
  }'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In the HTTP Request node, use Import cURL on the Parameters tab and paste that in. It fills the URL and body for you. Then move the key into a Header auth credential named &lt;code&gt;X-API-Key&lt;/code&gt; so it sits in n8n's credential store and not in the node, and map the phone number and context from whatever step fired the workflow.&lt;/p&gt;

&lt;p&gt;Anything in &lt;code&gt;initial_context&lt;/code&gt; becomes a template variable in the agent's prompts, so &lt;code&gt;{{customer_name}}&lt;/code&gt; lets it greet Jane by name. A good response comes back with &lt;code&gt;"status": "initiated"&lt;/code&gt; and a &lt;code&gt;workflow_run_id&lt;/code&gt;. Keep that ID. It's the join key for everything that happens later. A &lt;code&gt;401&lt;/code&gt; means a wrong key, and a &lt;code&gt;404&lt;/code&gt; means the trigger wasn't found, isn't active or hasn't been published.&lt;/p&gt;

&lt;h2&gt;
  
  
  Results coming back: answer first, work later
&lt;/h2&gt;

&lt;p&gt;When the call ends, the agent's Webhook node posts to your n8n Webhook node. Set the n8n side to POST and set Respond to Immediately. The voice side expects a success reply within 30 seconds, and responding immediately means the CRM update and anything else slow runs after the reply instead of holding it up.&lt;/p&gt;

&lt;p&gt;A payload template might look like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"call_id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"{{workflow_run_id}}"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"first_name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"{{initial_context.first_name}}"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"rsvp"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"{{gathered_context.rsvp}}"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"disposition"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"{{gathered_context.call_disposition}}"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"duration"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"{{cost_info.call_duration_seconds}}"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"recording_url"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"{{recording_url}}"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"transcript_url"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"{{transcript_url}}"&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;gathered_context&lt;/code&gt; is whatever the agent extracted during the call. Variable names have to match your context fields exactly, or they show up as empty strings with no error.&lt;/p&gt;

&lt;p&gt;The n8n gotcha that gets almost everyone: the Test URL listens for 120 seconds after you click Listen for Test Event and shows data in the editor, while the Production URL only registers once you publish, and its data lands in the Executions list. Since n8n 2.0, Save and Publish are separate buttons, so hitting Save leaves the live webhook exactly as it was.&lt;/p&gt;

&lt;p&gt;Also assume some deliveries go wrong. Failed deliveries with a temporary cause are retried up to five attempts, but a long n8n outage can outlast that, and a wrong URL or credential isn't retried at all. Since you stored the &lt;code&gt;workflow_run_id&lt;/code&gt; from the trigger, you can flag any run that never reported back. And the same payload can arrive twice, so dedupe on that ID before writing to the CRM.&lt;/p&gt;

&lt;h2&gt;
  
  
  The tight spot: n8n as a mid-call tool
&lt;/h2&gt;

&lt;p&gt;This is where the clean split bends a little. The agent can call n8n during the conversation through an HTTP API tool pointed at an n8n production webhook. On the n8n side, set the Webhook node's Respond option to Using 'Respond to Webhook' Node and end the branch with a Respond to Webhook node returning JSON. Write the tool description carefully, because the LLM reads it to decide when to call the tool, and add a preset &lt;code&gt;workflow_run_id&lt;/code&gt; parameter so n8n knows which call is asking.&lt;/p&gt;

&lt;p&gt;The agent gets back the status code and the data. Anything 400 or above, or no reply in time, is reported to the agent as a failed request, so it won't treat a broken lookup as a real answer.&lt;/p&gt;

&lt;p&gt;Here's the cost. In one team's field report, a calendar check through n8n took over a second, and caching it brought repeat checks under 50 ms. The lesson travels: a third-party API call rarely fits inside a conversational turn.&lt;/p&gt;

&lt;p&gt;So keep that branch to one fast lookup between the Webhook node and Respond to Webhook. Cache what repeats. Push note-writing and emails to the post-call webhook, where nobody is waiting on the line. If a lookup still runs long, set the tool's Custom Message, a short line the agent says while the lookup runs, so the caller isn't sitting in dead air.&lt;/p&gt;

&lt;h2&gt;
  
  
  Build order
&lt;/h2&gt;

&lt;p&gt;Wire the post-call webhook first. It's the lowest-risk connection and it shows you real call data straight away. Add the trigger after that. Build the mid-call tool last and time it on a real phone call, since it's the only connection the caller can actually hear.&lt;/p&gt;

&lt;p&gt;Both sides can also run on your own servers. Our side is open source under BSD-2, and n8n is fair-code under its Sustainable Use License, which allows use only for your own internal business purposes, or for non-commercial or personal use, so read those terms before building a product on it.&lt;/p&gt;

&lt;p&gt;How are you handling the mid-call side? Do you let n8n answer live tool calls, or keep it strictly to events before and after the call?&lt;/p&gt;

&lt;p&gt;Self-hosting the model side and the full webhook setup are in our &lt;a href="https://www.dograh.com/hub/blogs/n8n-voice-agent-workflows-webhooks" rel="noopener noreferrer"&gt;guide to n8n voice agent workflows and webhooks&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>voiceai</category>
      <category>opensource</category>
      <category>ai</category>
      <category>discuss</category>
    </item>
    <item>
      <title>Your voice agent passed the browser test. The phone line is a different exam.</title>
      <dc:creator>Pritesh Kumar</dc:creator>
      <pubDate>Wed, 07 Oct 2026 13:08:31 +0000</pubDate>
      <link>https://dev.to/dograh/your-voice-agent-passed-the-browser-test-the-phone-line-is-a-different-exam-340c</link>
      <guid>https://dev.to/dograh/your-voice-agent-passed-the-browser-test-the-phone-line-is-a-different-exam-340c</guid>
      <description>&lt;p&gt;Here's a pattern I keep running into. Someone builds a voice agent, talks to it from their laptop for an afternoon, and it's great. It catches every date and reads back every order number in a warm, friendly voice. Then it goes live on a phone number and the first week of calls is full of misheard digits and an agent that suddenly sounds tired.&lt;/p&gt;

&lt;p&gt;What changed was the audio reaching the model.&lt;/p&gt;

&lt;h2&gt;
  
  
  The browser hears a cleaner world
&lt;/h2&gt;

&lt;p&gt;When you test from the browser, your voice reaches the speech-to-text model through a decent microphone at 16 kHz. A traditional phone call is narrowband: 8 kHz, and then squeezed by the phone network's codec on top of that. Which one your agent gets also depends on the telephony provider. In Dograh, for example, Twilio, Telnyx, Plivo and Asterisk calls arrive at 8 kHz, while Vonage calls arrive at 16 kHz.&lt;/p&gt;

&lt;p&gt;So the "same agent" can be listening to two very different signals depending on how the caller dialled in.&lt;/p&gt;

&lt;p&gt;The codec is often the bigger problem than the sample rate. A &lt;a href="https://arxiv.org/abs/2606.09335" rel="noopener noreferrer"&gt;June 2026 study from the Indian Institute of Science&lt;/a&gt; found that, on Hindi speech, plain narrowband audio kept accuracy close to the original, while older compressed codecs like GSM hurt it consistently.&lt;/p&gt;

&lt;h2&gt;
  
  
  How bad it gets depends on the model
&lt;/h2&gt;

&lt;p&gt;This is the part that surprises people. On &lt;a href="https://arxiv.org/abs/2603.25727" rel="noopener noreferrer"&gt;WildASR's March 2026 telephony tests&lt;/a&gt;, six of seven modern models barely moved on English read speech. Whisper Large V3 went from 4.2% word error rate to 4.8% on a standard phone codec. One model, Qwen2-Audio, went from 5.8% to 48.3%.&lt;/p&gt;

&lt;p&gt;Real phone paths can be rougher than one clean codec. &lt;a href="https://caller.digital/blog/8khz-narrowband-telephony-asr-tts-benchmark-india-2026" rel="noopener noreferrer"&gt;Caller Digital ran a vendor benchmark&lt;/a&gt; across five Indian languages in September 2026: 7.4% word error rate on 16 kHz audio, 11.8% on a normal 8 kHz line, and 19.7% when a landline call ended on a mobile. Long digit strings came out fully right 92.8% of the time on 16 kHz and 81.4% on the phone line.&lt;/p&gt;

&lt;p&gt;In our own work we've seen phone-call transcription errors run up to 3x higher than web calls. That number swings a lot with the speech model and the route the call takes, which is exactly why you have to measure your own.&lt;/p&gt;

&lt;p&gt;The words that break first are the ones your flow leans on hardest, like account numbers and dates. And the failure is quiet. A misheard digit sends the agent to the wrong customer record, and it reads that record back with total confidence.&lt;/p&gt;

&lt;h2&gt;
  
  
  The voice suffers too
&lt;/h2&gt;

&lt;p&gt;Narrowband audio strips the high frequencies that make a synthetic voice sound natural. In the same Caller Digital benchmark, a Hindi listening panel gave a premium neural voice 4.4 out of 5 on wideband audio and 3.6 on a normal phone line. The gap between premium and mid-tier voices shrank too, so the voice you paid extra for may not earn it over a phone.&lt;/p&gt;

&lt;p&gt;My rule now is simple. Pick the voice by listening on an actual handset, never through headphones.&lt;/p&gt;

&lt;h2&gt;
  
  
  Mobile calls help, until they don't
&lt;/h2&gt;

&lt;p&gt;Plenty of mobile calls today run at 16 kHz or better, thanks to VoLTE and 5G calling when both callers are on compatible carriers. The catch is that the codec behind it is designed to fall back. When the signal drops, or the call crosses into a landline, you're back on narrowband in the middle of a sentence.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to actually test
&lt;/h2&gt;

&lt;p&gt;Test the worst path, because that's the one your callers will find. Call the agent from a landline. Call it from a mobile standing somewhere with one bar. Read out a long account number and a date with an awkward month, and check the transcript against what you said. Then listen to the agent's voice on the handset, not on your laptop.&lt;/p&gt;

&lt;p&gt;If you're on Dograh, an open-source, self-hostable voice agent platform, the run's trace shows exactly what speech-to-text heard on each turn, so a misheard digit is easy to tell apart from a confused model. We also wrote up the full order we test and scale agents in, from simulated callers to a slow ramp under load, with the data behind each step. &lt;a href="https://www.dograh.com/hub/blogs/testing-monitoring-scaling-ai-voice-agents" rel="noopener noreferrer"&gt;Read the full guide on Dograh&lt;/a&gt; if you want the rest.&lt;/p&gt;

&lt;p&gt;A real phone test is the cheapest check in the whole process, and in my experience it's the one teams skip most.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>webdev</category>
      <category>programming</category>
      <category>opensource</category>
    </item>
    <item>
      <title>Your local voice agent is probably fast enough. Your encoder might not be.</title>
      <dc:creator>Pritesh Kumar</dc:creator>
      <pubDate>Fri, 25 Sep 2026 07:41:11 +0000</pubDate>
      <link>https://dev.to/dograh/your-local-voice-agent-is-probably-fast-enough-your-encoder-might-not-be-4akk</link>
      <guid>https://dev.to/dograh/your-local-voice-agent-is-probably-fast-enough-your-encoder-might-not-be-4akk</guid>
      <description>&lt;p&gt;For a long time the honest objection to running a voice agent on your own hardware was speed. Open models were slower, a single GPU could not keep up, and anyone who wanted a call to feel like a conversation ended up on a hosted API.&lt;/p&gt;

&lt;p&gt;That objection has quietly expired, and most of the discussion hasn't caught up. The number people now quote is real. The way they quote it usually isn't.&lt;/p&gt;

&lt;h2&gt;
  
  
  The 508ms figure, and what's missing from it
&lt;/h2&gt;

&lt;p&gt;Daily built a voice agent on NVIDIA's open models and ran it on one RTX 5090. Server-side voice-to-voice came in at 508ms P50 and 544ms P90. They broke it down by stage: 19ms for speech to text, 171ms for the language model, 108ms for text to speech.&lt;/p&gt;

&lt;p&gt;That's a great result. It's also only the part of the call that happens on your server.&lt;/p&gt;

&lt;p&gt;On a real phone call the telephony leg typically adds another 300 to 600ms, and it comes out of the same budget. The usual bar for a conversation that feels natural is about 800ms end to end. Do the subtraction and your actual server-side budget lands somewhere between 200 and 500ms, depending on the carrier and the route. So 508ms is a strong signal that local inference is no longer the bottleneck. It isn't proof you're done.&lt;/p&gt;

&lt;h2&gt;
  
  
  Quote the hardware every single time
&lt;/h2&gt;

&lt;p&gt;Here's the detail that should make everyone more careful with benchmark screenshots. Daily ran the identical stack on a DGX Spark, same software, same measurement. It came back at 1,180ms P50.&lt;/p&gt;

&lt;p&gt;Same code, more than double the latency, and well past the point where a caller notices. A latency number with no hardware attached to it tells you very little. If someone sends you a figure for their local voice pipeline, the first question is what box it ran on.&lt;/p&gt;

&lt;h2&gt;
  
  
  Architecture beats a bigger card
&lt;/h2&gt;

&lt;p&gt;The more interesting finding sits one layer down, in the speech-to-text stage.&lt;/p&gt;

&lt;p&gt;The Open ASR Leaderboard paper evaluated 86 systems on identical A100 hardware, in a snapshot dated 27 March 2026. They report throughput as RTFx, which is seconds of audio processed per second of compute, so higher means more concurrent calls per GPU.&lt;/p&gt;

&lt;p&gt;Conformer-based encoders averaged 758 RTFx. Whisper-based decoders averaged 201. The fastest single entry hit 6,400.&lt;/p&gt;

&lt;p&gt;That's close to four times the throughput between two model families running on exactly the same silicon, and more than thirty times between the fastest entry and the Whisper average. When a self-hosted deployment feels sluggish, the reflex is to buy a bigger GPU. Most of the time the better fix is a different encoder.&lt;/p&gt;

&lt;h2&gt;
  
  
  Colocation is the part hosted setups can't copy
&lt;/h2&gt;

&lt;p&gt;There's a structural reason local wins on latency once the models are good enough, and it has nothing to do with raw inference speed.&lt;/p&gt;

&lt;p&gt;A typical hosted voice pipeline spreads its stages across providers. Speech to text runs on one company's servers, the language model on another's, the voice on a third. Every hand-off is a network round trip carrying audio out and waiting for it to come back.&lt;/p&gt;

&lt;p&gt;Put every stage on one machine you own and those hand-offs disappear entirely. The hop doesn't get shorter. There's nothing left to hop between. This only works with open weights, because closed providers don't ship models you can place next to each other. The best a hosted setup can do is pick a region close to the provider's, which shortens the trip without removing it.&lt;/p&gt;

&lt;h2&gt;
  
  
  A stack that actually fits on one 24GB card
&lt;/h2&gt;

&lt;p&gt;If you want to try this, the sizing is where builds go wrong, so here's a combination that fits.&lt;/p&gt;

&lt;p&gt;For the language model, Qwen3.8-27B quantized to 4-bit comes down to 15.93 GiB of weights and peaks around 20,266 MiB with a 64K context. At 16-bit it would need roughly 54GB, which is why quantization is the thing that makes this possible at all. Voice work tolerates the small accuracy cost well, since the job is narrow: follow a workflow and call a tool correctly.&lt;/p&gt;

&lt;p&gt;That leaves about 4.2 GiB on a 24GB card. Parakeet TDT 0.6B v2 loads in roughly 2GB and fits, and it's the most accurate of the options at 6.05 percent average WER on the Open ASR Leaderboard, English only. Voxtral Mini 3B is a good model too, but it needs around 9.5GB and simply won't share the card.&lt;/p&gt;

&lt;p&gt;For the voice, Magpie TTS multilingual is 357M parameters and covers twelve languages, small enough that synthesis stops being a latency concern. Read its model card before shipping, though. It's open weights under an agreement rather than an open source licence, and it can't clone a voice.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where this leaves the decision
&lt;/h2&gt;

&lt;p&gt;Once latency is off the table, the reason to go local is control over where the audio goes. Cost is a weak argument on its own, since cloud token prices keep falling and the real expense of self-hosting is the engineer who keeps the stack running.&lt;/p&gt;

&lt;p&gt;We build Dograh, an open-source voice agent orchestrator, and the design choice we'd push hardest is keeping that orchestration layer separate from inference. The same workflow, turn-taking, telephony and tool calls should run whether the models underneath are rented from a provider or running as open weights on your own GPU. Plenty of teams start hosted and move inference local once compliance catches up with the pilot. If the orchestrator is locked to a vendor, that move is a rewrite.&lt;/p&gt;

&lt;p&gt;The longer guide covers the benchmark caveats and the licence traps we only touched on here. &lt;a href="https://www.dograh.com/hub/blogs/voice-ai-local-self-hosted-models" rel="noopener noreferrer"&gt;Read it on Dograh&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>opensource</category>
      <category>machinelearning</category>
      <category>webdev</category>
    </item>
    <item>
      <title>The sentence your voice agent is not allowed to paraphrase</title>
      <dc:creator>Pritesh Kumar</dc:creator>
      <pubDate>Wed, 16 Sep 2026 17:38:19 +0000</pubDate>
      <link>https://dev.to/dograh/the-sentence-your-voice-agent-is-not-allowed-to-paraphrase-1n5c</link>
      <guid>https://dev.to/dograh/the-sentence-your-voice-agent-is-not-allowed-to-paraphrase-1n5c</guid>
      <description>&lt;p&gt;We build an open-source voice agent platform, and one call comes up in customer conversations more than any other: the one that goes out when a buy-now-pay-later instalment gets missed. It looks like a plain outbound reminder. The wrinkle is that roughly ten words at the start of it decide which body of law governs the rest of the conversation.&lt;/p&gt;

&lt;p&gt;Here is the mechanic. The Fair Debt Collection Practices Act defines a debt collector as someone who regularly collects debts "owed or due or asserted to be owed or due another." The operative word is another. A BNPL provider chasing an instalment on a plan it issued itself is not collecting for somebody else, so in most cases it sits outside that definition. That is a question of scope rather than an exemption. No clause in the statute carves creditors out. They simply are not what the definition describes.&lt;/p&gt;

&lt;p&gt;Now the part that matters if you are the one writing the call flow. The same section pulls a creditor back in when it "uses any name other than his own which would indicate that a third person is collecting or attempting to collect such debts." Read that with a synthesised voice in mind.&lt;/p&gt;

&lt;p&gt;"Hi, this is a call from Acme Pay about your instalment plan." Outside the definition.&lt;/p&gt;

&lt;p&gt;"Hi, this is Premier Recovery Solutions calling on behalf of Acme Pay." Inside it.&lt;/p&gt;

&lt;p&gt;Same debt, same borrower, same amount. The difference is the name the agent says first. I am writing this as a practitioner rather than a lawyer, and every lender's footing differs, so check yours with counsel before you ship a script.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this breaks an LLM-first design
&lt;/h2&gt;

&lt;p&gt;Most voice agent tutorials will tell you to put the introduction in the system prompt and let the model handle it. That works fine until the sentence starts doing legal work.&lt;/p&gt;

&lt;p&gt;A language model asked to introduce itself politely will paraphrase. That is the whole point of it. On most calls the paraphrase is harmless and slightly better than what you wrote. On some fraction of calls it reaches for a phrase that sounds more official, because official-sounding language is well represented in whatever it learned from, and a firmer name is exactly the instinct a human scriptwriter has too. You now have an agent that occasionally describes itself as a third party collecting on someone's behalf.&lt;/p&gt;

&lt;p&gt;The awkward bit is that you cannot prove it will not. Nobody can prove a negative about a sampled generative system. You can raise the probability, evaluate it, temperature it down, and add a guardrail prompt, and you still cannot hand a regulator a statement stronger than "it is very unlikely."&lt;/p&gt;

&lt;p&gt;So we stopped trying to prove the negative. In Dograh the greeting is a fixed utterance node, meaning stored text the agent reads verbatim as it traverses the flow. The identity check works the same way. Everything conversational happens around those anchors, where a model is genuinely useful: handling objections, understanding a half-mumbled card number, catching that someone is asking about a fee waiver. The claim you can then make is a different shape. Instead of asserting what the agent would never say, you produce the path the call took and the exact stored wording it read at each step.&lt;/p&gt;

&lt;p&gt;That shifts the requirement from behaviour to evidence, which in turn means you need to own the recording and the transcript rather than requesting them from a vendor dashboard.&lt;/p&gt;

&lt;h2&gt;
  
  
  The borrower on the other end is not who the script assumes
&lt;/h2&gt;

&lt;p&gt;Recovery scripts tend to be built for someone avoiding payment. The BNPL data does not describe that person.&lt;/p&gt;

&lt;p&gt;LendingTree's 2026 tracker, which surveyed 2,060 US consumers in March 2026, found 47 percent of BNPL users had paid late at least once in the past year, up from 41 percent the year before. Of those who paid late, about 72 percent were no more than roughly a week behind. And 89 percent of people who asked for a late fee to be waived got it reduced or dropped.&lt;/p&gt;

&lt;p&gt;Read together, that is a timing failure, not a refusal to pay. An expired card, a date that slipped past someone. Pressure is the wrong instrument for it. The agent's job is to state the amount and the date, offer a way to settle it right there, and get out of the way.&lt;/p&gt;

&lt;p&gt;It also means your flow will meet the fee waiver question constantly, since nine out of ten people who raise it get somewhere. A script with no graceful path for that request sounds broken within about four seconds, and anything drifting towards a dispute or a hardship claim should reach a human quickly.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the recordings live matters more here than usual
&lt;/h2&gt;

&lt;p&gt;A single BNPL instalment record carries the merchant, the item, the amount, and the schedule. Pull someone's full history and you have a purchase-level picture of what they bought and roughly when their finances got tight. Payment stacking sharpens it, since a borrower running plans across several providers gives no single company the full obligation while each one holds a revealing slice of it.&lt;/p&gt;

&lt;p&gt;Our position on this has not moved. These systems should be compliant by design, because the data is sensitive from the first call, which is why we recommend self-hosting and running open-source speech and language models so call audio never crosses a boundary you do not control. New York's proposed BNPL framework names consumer data protection directly, so this looks like it is drifting from good practice towards expectation.&lt;/p&gt;

&lt;p&gt;We get into the regulatory movement, including the CFPB's two separate steps in May 2025, in the fuller write-up. &lt;a href="https://www.dograh.com/hub/blogs/ai-voice-agents-bnpl-missed-payment-recovery" rel="noopener noreferrer"&gt;Read it on Dograh&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Dograh is open source, and the code enforcing a guardrail is code you can read. &lt;a href="https://github.com/dograh-hq/dograh" rel="noopener noreferrer"&gt;github.com/dograh-hq/dograh&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>opensource</category>
      <category>programming</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
