To add AI voice agents to an existing contact center, start with one pattern such as overflow or after-hours, connect over a forwarded number, SIP or VICIdial, and design the transfer back to a named queue first. For the agent layer, use Dograh, the open-source AI voice agent platform, and self-host it or run it on Dograh Cloud.
Key Takeaways
- Start with overflow or after-hours calls, then move to the front door.
- Write handoff notes to your own system before the transfer rings.
- Keep rollback in your contact center's routing, so it needs no Dograh change.
You can add an AI voice agent to your contact center without replacing the queues, desktops or reports your team uses. We go through what stays where, the first routing pattern, the connection, the transfer back and its context, then testing and a rollback, with Dograh as the worked example.
What you need before you start
These steps follow the published Dograh docs and your contact center's own docs, and a trial number is where to prove them before production calls arrive. Each step links a deeper post where one exists, so this guide stays on the decisions.
- Admin access to your contact center's routing rules, such as queue overflow, time rules or the IVR.
- One queue to start with, and the number or SIP address callers reach it on.
- A carrier account (Twilio, Telnyx, Plivo or similar), your own Cloudonix account, or an Asterisk server you control.
- A Dograh agent for the calls you plan to send it, with its prompt and tools in place.
What stays in your contact center
Adding an agent is a division of work, and it helps to write it down before any routing changes. The suites already work this way. Google's CCAI Platform adds a virtual agent without replacing the phone system, CRM or agent tools, and escalated calls return to the existing contact center. Zendesk can send overflow or an IVR choice to an outside AI agent over a SIP-IN line, and its business hours, voicemail and overflow settings still apply when the call comes back.
| Job | Stays in your contact center | Done by the AI voice agent |
|---|---|---|
| Queues and routing rules | Yes, it decides which calls the agent gets | Answers the calls it is given |
| Agent desktop and screen pops | Yes | Writes notes to your system first |
| Workforce management and staffing | Yes | Takes load off the queues it covers |
| Supervisor reporting | Yes, fed by the agent's outcomes | Records a disposition per call |
| Conversation, lookups and transfers | Only for human calls | Yes |
Dograh is the AI voice agent layer in that table. Your contact center keeps the queues, the agent desktop, workforce management and supervisor reporting, and the agent sends its results back into them.
Step 1: Pick the first pattern
Start with one pattern and one queue. Each pattern has a routing rule that sends calls to the agent and a way back to people, so pick the one whose way back is easiest to run.
Overflow. With overflow routing, the queue sends a call to the agent when wait time passes a limit or every person is busy. The agent handles what it can and transfers the rest back to the same queue. Our post on overflow call handling covers sizing and what happens past the agent's call limit.
After-hours. A time rule sends calls outside opening hours to the agent, which takes details, answers common questions and books callbacks. Urgent calls go to an on-call number. Our post on after-hours coverage covers the on-call list.
Front door. Every call reaches the agent first. It resolves simple requests and routes the rest to the right queue with notes. This needs the transfer back working well, so start with overflow or after-hours and move to the front door once the numbers look good.
Check: you can name the one queue, the routing rule that will send calls to the agent and the queue or number each transfer goes back to.
Step 2: Connect the agent to your phone system
Calls reach the agent in one of three ways, and the right one depends on the system you already run. In every case the numbers and minutes stay with your own carrier or phone system. Your team can describe the first agent to Dograh's Agent Builder in plain language and adjust the flow on the canvas before any calls are routed to it.
A forwarded number. Add your carrier under Telephony, add a number and set its Inbound workflow to the agent. Your contact center then forwards overflow or after-hours calls to that number like any outside destination. This is the quickest route and works with almost any system.
SIP. SIP reaches Dograh through your own Cloudonix account or Asterisk ARI. With Asterisk, the ARI configuration in Dograh generates a Stasis app name, and your dialplan sends calls to it. It needs Asterisk 22.8 or later, or 20.18 or 23.2 on those release lines. The Asterisk ARI guide sets out the order of steps, and our guide to build a voice agent on Asterisk walks through them.
VICIdial. VICIdial keeps the customer call and reaches Dograh through Asterisk ARI, with VICIdial set as the External PBX Type in the ARI configuration. The agent can read lead fields at the start and write results back. The VICIdial guide covers the settings, and our VICIdial AI integration post covers the full setup.
Check: a test call routed by your contact center reaches the agent and hears its greeting.
Open Source Alternative to Vapi / Retell
Self-hosted voice agent platform — no per-minute fees
dograh-hq/dograh
Star on GitHub
Step 3: Design the transfer back first
The way back to people matters more than the agent's first sentence. 87% of customers in a Gartner survey said it is essential for companies using GenAI in customer service to offer a way to reach a human agent. So build the transfer before the rest of the flow.
Transfer Call works on Twilio, Telnyx, Plivo, Cloudonix and Asterisk ARI. Dograh calls the destination first and connects the caller only when someone answers. The destination can be the queue's phone number, a sip: address on Twilio, a PJSIP endpoint such as PJSIP/sales-queue on Asterisk, or a VICIdial in-group.
Pick how the agent chooses it. Static / Template sends every transfer to one place. Context Mapping matches a value the agent gathered, such as billing or technical, to a destination in order, with a fallback. Dynamic HTTP Resolver asks your own routing service where the call should go, which suits teams that already route by account or skill.
Set the Transfer Timeout, 30 seconds by default. If nobody answers, the transfer returns "transfer_failed" and the caller stays with the agent, so the prompt says what happens next, usually a callback request written to your system.
Check: a real phone call that asks for a person rings the right queue, and an unanswered transfer ends in a callback request.
Step 4: Send the handoff context ahead of the call
The person who picks up should not have to start again. Handoff notes travel through your contact center's own systems rather than the call itself, so write them before the transfer rings.
Give the agent an HTTP API tool that creates a case note, a ticket or a CRM field with the caller's reason and what the agent already checked. Tell the prompt to call it, then call Transfer Call, and your agent desktop shows the note when the call arrives. On VICIdial, lead field mappings write gathered values back to the lead before the transfer or hangup.
On Twilio, an optional spoken introduction can play to both the caller and the person answering before they are connected. It is off by default, and both people hear it, so keep it to details the caller may hear.
Context also flows in at the start. Pre-Call Data Fetch, at the bottom of the Start Call node, sends a POST with the caller's details to an endpoint you run, which returns the account fields the agent needs before it says hello.
Check: the person answering a test transfer sees the agent's note in your system before the caller speaks.
Step 5: Record outcomes where your reporting lives
Supervisors will judge the agent with their existing reports, so feed those reports. Turn on call dispositions in the agent's Settings under General, and add codes that match your contact center's own wrap-up codes, such as resolved, transferred and callback_requested.
A Webhook node at the end of the flow posts each call's outcome to your reporting system or data store. It adds a call_disposition key to the payload and retries temporary failures, up to five attempts in all. On VICIdial, disposition mapping writes a VICIdial status, and a do-not-call outcome can add the number to VICIdial's internal DNC list.
Check: a test call's disposition shows up in the same report your supervisors read for human calls.
Step 6: Test on real calls, then widen in steps
Test every path over a real phone call. Transfers need a phone call rather than a browser test, and most phone calls reach the agent as 8 kHz audio, which sounds different from a 16 kHz browser test. Call through your contact center's real routing instead of dialing the agent's number directly, so the test covers the routing rule too.
Then widen slowly. Start with a share of one queue's overflow or one night of after-hours calls, read the transcripts and dispositions, and only then add more. Callers ask things nobody planned for, and a small first step finds those questions before they reach every caller. A self-hosted install runs 10 calls at once by default, and Dograh Cloud's pay-as-you-go plan includes 10. A call past that limit is turned away at once, so keep a second route in your contact center for it.
Check: a burst of test calls above the agent's limit lands in the human queue, and no test caller hears a busy signal.
Join the Dograh Community
Dograh is an OSS alternative to Vapi. Join our Slack community for queries, releases, best practices & community interactions.
Step 7: Keep a rollback you can run in a minute
Plan the way out before the first live call. The fastest rollback lives in your contact center. Point the overflow rule, time rule or IVR choice back at the human queue, and the agent stops getting calls with no change on its side.

Inside the agent, publish every change with a version name and a change description. If a new version behaves badly, open Version History, compare it with the last good version, put those settings back and publish them as a new version. One detail matters for front-door numbers on Twilio. Saving an agent as a number's Inbound workflow switches the number to Dograh at once, and removing it leaves the number blank, so point the number at its old destination in Twilio before you take the agent off it.
Check: someone on the team can send all calls back to the human queue in under a minute, and has done it once in a test.
Running the agent layer beside your contact center
Once the first pattern works, the next questions are which conversations to add and where the agent runs. For the conversations, our flow templates for inbound support calls give node-by-node outlines for common support calls.
For where it runs, you can self-host Dograh in the same data center or cloud region as your contact center, close to the phone system. Self-hosting has no per-minute platform fee, but servers, model keys and phone minutes still cost money. Your team looks after the database and upgrades, with community support on the open-source version or a custom SLA on an Enterprise plan. Dograh Cloud runs it for a 1¢-a-minute platform fee instead.
Glossary
- Overflow routing
- A contact center rule that sends a call elsewhere when wait time passes a limit or every agent is busy. Here, it sends the call to the AI agent.
- Front door
- A setup where every call reaches the AI agent first. It resolves simple requests and transfers the rest to the right queue.
- Wrap-up code
- The outcome label a person in a contact center picks after each call, such as resolved or transferred. Matching the agent's call dispositions to these codes keeps AI and human calls in one report.
- Stasis app
- An Asterisk application name that hands a call to an outside program over ARI. Dograh's ARI configuration generates the name your dialplan uses.

