Dograh

How to Migrate From Thoughtly to Open-Source Voice AI

How to Migrate From Thoughtly to Open-Source Voice AI
TutorialDecember 4, 2026·12 min read

How to Migrate From Thoughtly to Open-Source Voice AI

Vemu Sandeep
Vemu Sandeep·GTM Engineer, Dograh AI

GTM engineer at Dograh working across voice AI and enterprise AI. IIT (BHU) and IIM Visakhapatnam alumnus.

To migrate from Thoughtly, copy each agent by hand, since Thoughtly documents no agent export, and pull past calls through its History export or call API. Then rebuild the flow, lookups and follow-ups in Dograh, the open-source AI voice agent platform, and move one number at a time. You can self-host it or use Dograh Cloud.

Key Takeaways

  • Thoughtly documents no agent export, so copy each agent by hand first.
  • In Dograh, a Webhook node posts each call's outcome to your email tool.
  • Move one number at a time, with Thoughtly answering the rest.

Here we move a Thoughtly agent to Dograh, step by step. We start with what Thoughtly lets you take out, then rebuild the flow, the CRM lookups and the email follow-ups, and finish by testing the agent on a real phone and moving one phone number at a time.

What you need before you start

You need admin access to your Thoughtly workspace with an API key from its developer settings, plus a Dograh account and a spare phone number for testing. For email follow-ups, you also need an email provider with a send API, or an automation tool your team already uses. These steps follow the published Dograh and Thoughtly docs. Run them on a trial server before production.

Dograh runs two ways. Dograh Cloud is the managed version, and a self-hosted install needs a server with at least 8 GB of RAM and 4 vCPUs.

Thoughtly still fits some teams better, above all those that want voice, text and email from one hosted product with ready-made CRM connectors. Our post on when staying on Thoughtly makes sense covers that case before you start the work.

Step 1: Copy each agent and pull your call data

Write down every agent's flow by hand, then take the call records out through Thoughtly's export or its API. Thoughtly documents no agent export, so there is no file to download and no importer on either side.

Copy each agent. Open each live agent and copy its building blocks in order. That means the Start node, each Speak node and whether it is a Message or a Prompt, every Transfer and End node, the Advanced prompt and the Main settings. Note any Speak node (Message) with the Verbatim setting, since those lines must be spoken word for word. Then copy the Presence tab settings, the Voicemail setting, the files in the Genius tab and every action with its URL, fields and the node that runs it.

Export call history. In History, filter the calls you want and click Export, then download the CSV or use the emailed link for a large export. Thoughtly does not list the CSV's columns, so open the file and check what it holds before you rely on it.

Read single calls by API. For transcripts and recordings, Thoughtly's Get Call API returns one call by its ID. The request below sends your key in x-api-token and your team in team_id:

curl https://api.thoughtly.com/v1/call/CALL_ID \
  -H "x-api-token: YOUR_THOUGHTLY_API_KEY" \
  -H "team_id: YOUR_TEAM_ID"

What this does: It returns that call's transcript as a list of speaker turns, plus summary, recording_url, status, voicemail and end_reason. Use the transcripts as test scripts in Step 6.

Contacts come out through Thoughtly's API too, since its bulk CSV upload works only for importing. Keep each agent's notes in one document per agent, because they become the description for the rebuild.

Check: you have one written spec per live agent, a list of its actions, its Genius files, a call history file and a contact list.

Step 2: Map Thoughtly's pieces to Dograh

Match each Thoughtly node, tab and action to its Dograh counterpart before you build anything. Most map one to one, and two need a design change.

ThoughtlyDograh
Start node and greetingStart Call node, with the opening line in Greeting Text
Speak node (Prompt)An Agent node with that prompt
Speak node (Message) with the Verbatim settingGreeting Text, or Transition Speech on the pathway out of a step
Transfer nodeThe Transfer Call tool on the Agent node
End nodeEnd Call node
Genius tab filesKnowledge Base files, attached to the node
Voicemail settingSettings, then "Enable voicemail and screening handling"
CRM or webhook lookup at call startPre-Call Data Fetch on the Start Call node
Create Contact, Scheduler and other mid-call actionsHTTP API tools
Send Email and post-call Webhook actionsA Webhook node after the call

The first design change is fixed wording. Transition Speech plays fixed text or a recorded clip and cannot carry per-caller variables, so a Verbatim line that read out a name moves into the next Agent node's prompt, where the AI phrases it. The second is time zones. Thoughtly's quiet hours can follow each contact's time zone, while each Dograh campaign runs its Call Schedule in one Timezone, so an outbound list that spans several zones gets split by zone before you upload it. Our guide to Thoughtly alternatives gives the short version of this mapping.

Check: every node, tab and action in your Step 1 notes has a row in your own copy of this table.

Step 3: Rebuild the agent in Dograh

Create the agent from your Step 1 notes, then check every node it lays out. You describe the agent in plain language to the Agent Builder, and it builds the flow once you approve the requirements. The builder runs on Dograh's models, so a self-hosted install connects to a free Dograh account to use it.

Start the agent. Under Voice Agents, click Create Agent and choose Use Agent Builder. Paste one agent's notes as the description. The builder may ask a few questions, then shows "Your agent requirements" with the information to collect, the business rules and the successful outcome. Click Approve & build, or Request changes if a rule is wrong.

Check the canvas. The builder lays the agent out on the visual workflow builder, a canvas of nodes joined by pathways. Open each node and compare it with your notes, and put each Verbatim line into Greeting Text or Transition Speech as mapped in Step 2. Edits on the canvas save as a draft. On a server with no internet access, choose Blank Canvas instead and build the nodes by hand.

Add the knowledge. Upload the Genius files under Files, then select them on each node under Knowledge Base Documents. Dograh takes PDF, DOCX, DOC, TXT, JSON and Markdown files of up to 5 MB each.

Check: the canvas shows a Start Call node with your greeting, one Agent node for each Prompt node, a pathway for each branch, and an End Call node.

Dograh

Open Source Alternative to Vapi / Retell

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

dograh-hq/dograh

Star on GitHub

Step 4: Reconnect lookups and actions

Point the agent at the same systems Thoughtly called, through Dograh's API connections. These are not built-in connectors. Each one is an HTTP API tool, Pre-Call Data Fetch or a Webhook node aimed at an endpoint you choose.

Look the caller up at call start. Thoughtly's CRM or webhook lookup at the start of a call becomes Pre-Call Data Fetch, at the bottom of the Start Call node. It starts Disabled, so pick a mode (Always, Inbound calls only or Outbound calls only), then enter the Endpoint URL and an optional credential. Pre-Call Data Fetch sends a POST with the caller's details to an endpoint you run, which looks the caller up and returns only the fields the agent needs. The caller hears ringing while it runs.

Rebuild each mid-call action. Under Tools, click Create Tool, choose External HTTP API, and enter the endpoint, method, headers and parameters from your Step 1 notes. Then attach the tool to the Agent nodes that need it. HTTP API tools wait 5 seconds by default and do not retry, so add a prompt line that tells the agent what to say when a tool fails, such as offering a callback.

Cover the wait. A line set in the tool's Messages plays while the lookup runs. Add one under "When the tool starts", and an update under "While the tool is running" for a slow system.

Check: a browser test call that needs each tool shows the tool call and its reply in the transcript.

Step 5: Send follow-up emails from a Webhook node

Thoughtly's Send Email action becomes a Webhook node that hands the call's outcome to your own email tool. Dograh sends no email itself. The Webhook node runs after the call and posts a JSON body built from its Payload Template, with an API key, a Bearer token, Basic auth or a custom header as the credential.

A finished call between the agent and a caller leads to a Webhook node, which posts the outcome as an envelope to your own email tool. Envelopes marked no-answer and busy reach the tool as well. The tool picks the template, and one email arrives in the customer's inbox, only for outcomes that need one.
Your email tool owns the follow-up, from the template it picks to the choice to send at all. Unanswered calls reach it as well, so give it a rule for which outcomes earn an email.

That gives you two routes. The node can post straight to your email provider's send API, since the template renders nested JSON, or it can post to an automation tool that picks the template and sends the email. Either way, the caller's email address must already be in the call data, from a column in your campaign CSV, from Pre-Call Data Fetch, or captured by the agent during the call. The template below sends the run ID in workflow_run_id, the address the agent captured in gathered_context.email and the outcome in call_disposition:

{
  "run_id": "{{workflow_run_id}}",
  "to": "{{gathered_context.email}}",
  "customer_name": "{{initial_context.customer_name}}",
  "outcome": "{{gathered_context.call_disposition}}",
  "recording_url": "{{recording_url}}",
  "transcript_url": "{{transcript_url}}"
}

What this does: After each call, it posts the address, the customer's name and the outcome to your email tool, which chooses the email to send. The run ID lets the tool skip an email it has already sent.

The node retries temporary failures, up to five attempts in all, and any 2xx reply counts as delivered, so your tool should ignore a second delivery with the same run_id. Dograh also adds a top-level call_disposition key to any payload that does not set one. Calls that are not answered still reach your Webhook node on every try, marked no-answer or busy, so have your tool send email only for the outcomes that need one, and only after the final try.

Check: a test receiver shows one POST after a test call, with the address and outcome filled, and your email tool sends one email.

Step 6: Test in the browser, then on a real phone

Prove the agent in the browser first, then on a real phone line, before any caller reaches it. Use the Thoughtly transcripts from Step 1 as scripts and talk through each kind of call in a browser test call.

Browser test calls cannot run telephony tools, so test every hand-off on a phone. Transfer Call works on Twilio, Telnyx, Plivo, Cloudonix and Asterisk ARI. Dograh calls the destination first and connects the caller only when someone answers. If nobody answers, the caller stays with the agent, so give the prompt a callback line for that case.

Publish the agent, set it as the Inbound workflow on your spare number under Telephony, and call it from a real phone. Most phone calls still reach the agent as 8 kHz audio, while a browser call runs at 16 kHz, so listen for misheard names and numbers. Open each run under Agent Runs to read the transcript, and add a QA node to score each step of every test call. Our guide to testing voice agents before you go live lists the full order of checks.

Check: the phone test shows as a run under Agent Runs, with an answered and an unanswered transfer in their transcripts and the Webhook node delivered.

Join the Dograh Community

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

Step 7: Move one number at a time

Keep Thoughtly answering while you move your quietest number first, with a written way back. Numbers you imported from Twilio or Telnyx stay in your carrier account when you disconnect that carrier in Thoughtly, as our Thoughtly review explains. For numbers bought from Thoughtly, ask Thoughtly about porting them to a carrier Dograh supports, such as Twilio, Telnyx, Plivo or Vonage.

Save the old settings. For a Twilio number, copy its current voice settings from the Twilio console into your runbook first.

Switch the number. Under Telephony, set your agent as the number's Inbound workflow and save. On a Twilio number, saving switches the calls to Dograh at once, and removing the workflow later leaves the number blank, so roll back by pasting the saved settings in Twilio.

Move outbound lists. Upload each list as a campaign CSV with a phone_number column, and any other columns, such as email or customer_name, become call data the agent and the Webhook node can use. Set Max Retries, Retry Delay and Retry On yourself. 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.

Check: a call to the moved number shows as a new run in Dograh, and Thoughtly's History shows no new calls on it.

Before you ship it

Run this list for each number before you call its move finished.

ItemWhereDone when
Agent copiedYour notesEvery node, tab and action is written down
Calls savedYour filesThe History CSV and the transcripts you need are stored outside Thoughtly
Flow rebuiltCanvasEach Verbatim line sits in Greeting Text or Transition Speech
Lookups and toolsBrowser testEach tool returns, and a failure gets a sensible reply
Email follow-upYour email toolOne email per call, and a repeat delivery sends nothing
TransferReal phone callAnswered and unanswered transfers both end well
RollbackYour runbookThe number's old Twilio settings, or its porting plan, are saved

Once the quietest number has run cleanly for a week, move the next one the same way. The platform you end up on is open source under BSD 2-Clause, so you can read the code that handles each call and run it on your own servers.

Self-hosting has no per-minute platform fee, but servers, model keys and phone minutes still cost money, and your team looks after the database and upgrades. Support comes from the open-source community, or from custom SLAs on Enterprise. Dograh Cloud runs the same platform for a 1¢-a-minute platform fee.

Glossary

Verbatim setting
A setting on a Thoughtly Speak node (Message) that plays the line exactly as written. In Dograh, Greeting Text and Transition Speech do the same job.
Genius tab
The Thoughtly tab that holds the reference files an agent answers from. In Dograh those files go under Files and attach to a node as Knowledge Base Documents.
Payload Template
The JSON body a Dograh Webhook node sends after a call, filled with values such as the run ID, extracted answers and recording links.
Inbound workflow
The Dograh agent a phone number answers with. On a Twilio number, saving it switches that number's calls to Dograh at once.

Frequently Asked Questions

Get started with Dograh

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