Dograh

How to Build a Bland AI-Like Voice Agent With Open Source Tools

How to Build a Bland AI-Like Voice Agent With Open Source Tools
TutorialDecember 4, 2026·13 min read

How to Build a Bland AI-Like Voice Agent With Open Source Tools

Abhishek Kumar
Abhishek Kumar·Co-founder, Dograh AI

Co-founder of Dograh, building the future of open-source voice AI agents. Own your voice AI stack.

To build a Bland AI-like voice agent with open-source tools, pick who runs the models, then build the flow, tools, transfers and call records for both call directions. For teams that want open code and their own models, Dograh, the open-source AI voice agent platform, covers each part. You can self-host it or run it on Dograh Cloud.

Key Takeaways

  • Your own keys make you the provider's customer, but audio still reaches them.
  • Dograh runs one agent for both directions, inbound by number and outbound by campaign.
  • Bland's memory becomes a write to your CRM, read back before the next call.

Bland sells one bundle for inbound and outbound phone calls, and says it owns the models and the agent runtime. Here we build one in Dograh, our open-source AI voice agent platform, with the model layer left to you, and finish by testing calls in both directions.

What you need before you start

These steps follow the Dograh and Bland docs. Build on a trial server with a test number, and keep real contacts out of the campaign until the last step.

You need a server of your own or a Dograh Cloud account, a number on Twilio, Telnyx, Plivo, Cloudonix or Asterisk ARI for transfers, the API endpoints your agent will call, and a CSV of contacts who agreed to hear from you. Our example is Brightside Solar, a fictional installer whose agent answers quote inquiries and calls back people who asked for a quote on its website. If you already run agents on Bland, our guide on how to migrate from Bland AI covers the export and the number moves, while this post builds from scratch.

How Bland's parts map to Dograh

Bland says it "owns its models and the agent runtime", which gives a buyer one vendor for the whole call. Dograh splits those two layers. It runs the agent, and you choose who runs the models, so the same agent can sit on Dograh's models today and on your own servers later.

Bland now builds agents as Bland Agents, which replaced Conversational Pathways in September 2026. An agent holds a system prompt, pathways with an authentication zone, tools tagged in the prompt, knowledge, memory and guardrails. The table maps each part by what it does, and the steps below follow it.

Bland partDograh featureWhere you set it
Bland's own modelsDograh's models, your own keys, or open-weight models you hostProviders, Models, Model tab
System promptGlobal node, shared by every node with Add Global Prompt onCanvas
Pathways and their promptsAgent nodes joined by pathways with plain-language conditionsCanvas
Authentication zoneA verify node that runs before any personal detailCanvas
Tools tagged in the promptExternal HTTP API and MCP Server tools attached to a nodeTools, then the node
KnowledgeKnowledge Base Files picked on each nodeFiles, then the node
MemoryAn HTTP API tool that writes to your CRM, read back by Pre-Call Data FetchTools, Start Call node
Variables to extractEnable Variable ExtractionAgent node
DispositionsExtract call disposition at the end of the callSettings
GuardrailsFixed lines in the Greeting Text, plus a QA node that reviews callsStart Call node, Canvas
TransfersTransfer Call toolTools
Post-call webhookWebhook nodeCanvas
Batch callsCampaignsCampaigns
Send call APIAPI Trigger nodeCanvas
Dispatch for numbersTelephony, with each number's Inbound workflowTelephony

Step 1: Run Dograh on servers you control

The Docker Compose setup brings Dograh, open source under BSD 2-Clause, up on one server with 8 GB of RAM and 4 vCPUs or more, and setup fetches a trusted HTTPS certificate when the server has a public IP. Enterprise plans add on-prem deployment, and Dograh Cloud runs the same product for you.

On a self-hosted install there is no per-minute platform fee. Servers, model keys and phone minutes still cost money, and your team looks after the database and upgrades. Help on the open-source version comes from its community, and Enterprise plans add custom SLAs. Dograh Cloud runs everything for a 1¢-a-minute platform fee. A self-hosted install runs 10 calls at once by default, and the DEFAULT_ORG_CONCURRENCY_LIMIT setting raises it.

Check: You can sign in, and the sidebar shows Providers, Models, Telephony and Campaigns.

Step 2: Choose who runs the models

Think of the agent in two layers. Dograh runs the call flow, tools and telephony, while the speech and language models sit in a separate layer that you pick, and that layer can be filled three ways. Dograh's own models need no keys and are where new accounts start. Your own keys put a provider such as Deepgram, OpenAI or ElevenLabs on your contract. Open-weight models on your own servers keep the audio in-house.

The second and third ways differ more than they look. With your own keys the contract is yours, yet the audio still travels to the provider's servers. Only open-weight models on your own servers, beside a self-hosted Dograh, keep the call audio on your machines. Our guide to running voice AI on local, self-hosted models covers which models fit one GPU.

Three comic frames of the same call between a caller at a solar-panelled house and an AI agent. In the first the call audio goes up to Dograh's models, in the second it goes up to a model provider's servers while a signed contract sits beside the agent, and in the third the agent, a self-hosted server rack and a GPU running open-weight models sit inside your own servers, so the audio stays there.
Bringing your own keys changes who you sign with, not where the caller's voice goes. Keeping that audio inside your network takes both the platform and the models on hardware you run.

To set it up, add your keys on the Providers page with Add Provider. For local models, the Local Models (Speaches) provider points the agent at an OpenAI-compatible server you run. Then open Models, select Add Configuration, pick the Dograh, BYOK or Realtime mode, and select Make org default or pick it in an agent's Model tab, as the model providers page shows. Models are chosen per agent, so one agent can stay on Dograh's models while another runs on yours.

Check: The agent's Model tab names the configuration you chose, and a browser test speaks in its voice.

Dograh

Open Source Alternative to Vapi / Retell

Self-hosted voice agent platform — no per-minute fees

dograh-hq/dograh

Star on GitHub

Step 3: Build the flow with a verify step first

The flow carries Bland's prompts, pathways and authentication zone. Start it in the Agent Builder, or on a blank canvas if you would rather draw it yourself. The builder always runs on Dograh's models, even for an agent whose calls run on yours, so a self-hosted install connects to a free Dograh account to use it.

In the builder, describe the agent in plain language, for example "Build me an agent that answers quote inquiries for Brightside Solar, calls back people who asked for a quote, confirms their address and books a site survey." It shows Your agent requirements, with the information to collect, the business rules, the successful outcome and assumptions to confirm. Select Approve & build, or Request changes. Once it is built, edits save as drafts, and the canvas lets you fine-tune each pathway.

Bland's system prompt goes into the Global node. Its authentication zone becomes a verify node near the start, so the call runs greet, verify, then disclose. A phone number finds a record but does not prove who is calling, so the node asks for a check you approve, such as the ZIP code and the surname on the quote, before any detail is shared.

Bland's guardrails include disclosure lines. In Dograh, lines that must be said word for word go in the Greeting Text on the Start Call node. If you want to tell callers they're speaking with an automated assistant, or your location requires it by law, write it there along with the business's name.

Check: The canvas runs Start Call, a verify node, then the quote and booking nodes, with a pathway out of each.

Step 4: Add tools, memory and knowledge

Bland's tools tagged in a prompt become tools attached to a node. Open Tools, select Create Tool and pick External HTTP API, with a name, a description written as a rule, your endpoint's URL and method, Authentication and the parameters the AI fills. Attach it under the node's HTTP & Tools tab. A tool waits 5 seconds by default and does not retry, and for a slower lookup, lines in the tool's Messages play under When the tool starts and While the tool is running.

Bland's memory writes facts about a person to their contact record. In Dograh, the same job is two pieces you own. During the call, an HTTP API tool writes the facts to your CRM, such as "roof faces south, wants a battery quote". On the next call, 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 those facts before the greeting. The memory lives in your CRM, where your team can read and correct it.

Knowledge comes from files. Upload PDF, DOCX, DOC, TXT, JSON or Markdown files of up to 5 MB on the Files page, then pick them on the node under Knowledge Base Documents.

Check: A browser test that mentions a battery writes a note to your CRM, and the next test call's greeting uses it.

Step 5: Hand calls to a person

Some callers want a person, such as a homeowner with a question about financing. Create a Transfer Call tool with your sales team's number or SIP address, attach it to the right nodes, and write the rule in the Global node.

Transfer Call works on Twilio, Telnyx, Plivo, Cloudonix and Asterisk ARI. Dograh calls the destination first and connects the caller only when someone answers. It rings for 30 seconds by default, a time you can change, and if nobody answers the agent gets "transfer_failed" and the call goes on, so it can take a callback request through an HTTP API tool. On Twilio an optional spoken introduction, off by default, plays to both the caller and the person answering, so keep it to details both may hear.

Check: On a real phone call, asking for a person writes a note to your CRM, then rings the sales line.

Join the Dograh Community

Dograh is an OSS alternative to Vapi. Join our Slack community for queries, releases, best practices & community interactions.

Step 6: Record what happened on each call

Bland's variables to extract and dispositions both have Dograh settings. In an Agent node, switch on Enable Variable Extraction and list each value with a type and a hint, such as survey_booked as a boolean. Extraction is an AI step, so it records what the caller said, and the transcript and recording stay the exact record. In Settings, "Extract call disposition at the end of the call" sorts each call into an outcome from your list. A QA node scores each node of a call with tags, a 1 to 10 score, sentiment and a summary.

Bland's post-call webhook becomes a Webhook node, which retries temporary failures, up to five attempts in all, and also fires on every unanswered try. The Payload Template below sends the run ID, the quote ID from the campaign row and whether a survey was booked.

{
  "run_id": "{{workflow_run_id}}",
  "quote_id": "{{initial_context.quote_id}}",
  "survey_booked": "{{gathered_context.survey_booked}}"
}

What this does: Each call updates the right quote in your CRM, matched by quote_id. Dograh also adds a call_disposition key with the outcome when the template does not set one, so an unanswered call still updates the quote.

Check: A finished test call creates one record at your endpoint with the quote ID and an outcome.

Step 7: Answer inbound calls

Bland attaches numbers on its Dispatch page, and Dograh does it under Telephony. Connect your carrier, then set each number's Inbound workflow to this agent. Several numbers can point at the same agent, and Pre-Call Data Fetch receives the number that was dialed, so one agent can greet each line in its own way.

Voicemail matters more on the outbound side. Switch on "Enable voicemail and screening handling" in Settings and choose what happens when voicemail is detected.

Check: Calling the number reaches the agent, and the greeting uses the caller's details from your CRM.

Step 8: Place outbound calls with Campaigns

Bland's batch calls become Dograh Campaigns, and the Campaigns page covers every setting. Upload a CSV with a phone_number column, each number with a plus and country code. Other columns, such as quote_id or first_name, reach the agent as template variables, and greeting_override_type with greeting_override_text can change the opening line per row.

Each campaign runs its Call Schedule in one Timezone. It starts on your browser's time zone, or your last scheduled campaign's, so set it to your callers' zone. Set Max Retries, Retry Delay and Retry On yourself, since the form copies earlier values. The Circuit Breaker pauses a campaign when too many calls fail, and Agents & traffic split can send part of the list to a second version of the agent. Our outbound campaigns pre-launch guide covers list scrubbing, voicemail and the circuit breaker.

Calling hours and consent come before the first dial. Our post on calling hours and retries turns a retry policy into settings, and Are AI Phone Calls Legal? explains the consent rules for AI voices in the US, UK and EU. Confirm your own calling rules with counsel before a campaign goes out. For one-off calls, such as a callback the moment a web form arrives, the API Trigger node starts a call from your own system.

Check: A two-row test campaign dials both numbers inside the schedule, and each call sends a webhook record.

Step 9: Test both directions

Add sample values in the Variables tab, then choose Test Agent and speak to the agent in Test Audio. Browser test calls count as inbound, so set the variable direction to outbound to test the outbound path. Transfers only run on a phone call, and most phone calls reach the agent as 8 kHz audio, while a browser test runs at 16 kHz, so test speech on a real line too.

Check: A real inbound call and a real campaign call both finish with the right outcome in your CRM.

Before you ship it

Start with a small campaign and one inbound number, and keep a person on the main line for the first weeks. Our teams find that reviewing a random 5 to 10% of campaign calls catches most problems early. Read the outcomes after each campaign, and change the list or the agent before the next one.

Glossary

BYOK
Bring your own key. The agent uses a model provider on your own account, so the contract is between you and that provider, while the audio still reaches its servers.
Open-weight model
A model whose weights you can download and run on your own servers, so call audio and text never go to an outside model provider.
Call disposition
The result tag a finished call gets, picked from your own list of outcomes, such as survey_booked or callback_requested.
Circuit breaker
A campaign setting that pauses dialing when too many calls fail within a window, so a broken model or key does not burn through the list.

Frequently Asked Questions

Get started with Dograh

Build, deploy, and scale AI agents with Dograh. Join the community of developers building the future.