Guides
A phone call outlives the tool call that starts it. Here is the pattern that keeps agents from timing out or losing the result: place the call, keep its ID, wait on events in short rounds, recover from slow reads without dialing twice, and get results even when the chat closes.
Published
Phone calls do not fit the shape of a normal tool call. A tool call is supposed to return in seconds. A phone call rings, hits a menu, sits on hold and only then gets to the point. A post in r/ClaudeCoding (written to promote a different calling service) describes the failure exactly: a quickstart that pipes the call through one synchronous command, where "the shell pipe buffers output until Claude Code's bash timeout kills the turn before staff pick up" (r/ClaudeCoding).
The opposite failure is just as common: the call finishes and nobody collects the result. An OpenClaw user wrote that for the "First several calls the agent placed, the transcriptTranscriptA transcript is the written record generated from a spoken conversation, typically showing what the caller and agent said during a call. never got retrieved" (r/AI_Agents). This guide covers the pattern that avoids both: how to place a call, wait for it safely, recover from a slow or lost response, and get the result back even when the chat closes.
Because the call outlives the request that started it. A few things stretch a call well past what a single tool call or shell command tolerates:
The fix is not a longer timeout. It is separating "start the call" from "find out how it went".

Treat the call as a job with an ID, and wait on events for that ID. With Thoughtly for Agents the loop looks like this:
The calling guide puts the key rule plainly: "Do not spin on get_call or interpret an accepted call as a completed task" (calling guide). Waiting on the feed replaces a loop of status checks with one short wait at a time, so each tool call stays short.
If you want to follow the conversation as it happens, the same feed carries call.transcript_turn events for your call, and GET /v1/events with Accept: text/event-stream gives a live stream. Save the last event ID and send it as Last-Event-ID when you reconnect.
Keep the call ID and read the same call again. Placing another call to "check" can ring the person twice. This table covers the states agents most often misread:
| What the agent sees | What it means | What to do |
|---|---|---|
| 202 with queued and an id | The call was accepted and is in progress | Save the id and start waiting on events |
| pending, or the response was lost | The request is still being processed | Honor Retry-After if given, then replay the same request with the same idempotency key |
| A read times out | The call may still be running or settling | Wait for call.ended or read the same call ID again |
| reconciliation_required | Thoughtly is still checking provider records | Keep the ID and wait; if the transcript already has the answer, report it and mark the cost as pending |
| media_status ended, status ending, billing_status pending | The line is closed but the carrier has not confirmed the final cost | Keep waiting for call.ended for the final receipt |
| call.ended | The call is over | Read get_call for status and cost, then the transcript |
Two details save a lot of confusion. call.ended is a notification, so the agent reads the call rather than replying to the event. And when observed, the receipt's end_reason tells you who hung up: participant_left means the other person disconnected, and agent_ended means the agent hung up the whole call.
Give your agent a call it can wait on
Then the result should not depend on the chat. There are three ways to make sure it lands somewhere:
For a local agent, the event feed is usually enough and needs no public address or tunnel. Webhooks and Workers suit calls that should report somewhere even when no agent is running.

Voice is $0.10 per connected minute plus carrierCarrierA carrier is a telecommunications provider that transports voice calls or messages between phone numbers and networks. cost, billed by the second. Time on hold counts as connected time, so a long hold is billed like the rest of the call.
Thoughtly reserves prepaid credit as the call goes: each outbound minute requires a $1.00 hold, and the unused part returns to your balance after the carrier confirms the final cost. That is a hold, not the price. Cleared deposits and an auto-recharge you have authorized can fund later minutes of the same call, which is worth setting up if your agent often waits in queues. If dialing fails and the carrier confirms zero cost, the whole hold returns.
The risk in Claude Code is a single shell command or tool call that blocks until the call ends. Connect Thoughtly over MCP and let Claude Code call place_call, then wait_for_events in 20-second rounds, so each tool call returns well within its timeout. Over HTTP, the same pattern is POST /v1/call followed by GET /v1/events?wait_seconds=20 with the saved cursor.
OpenClaw's self-hosted voice-call plugin ran into the reverse problem. A GitHub issue (since closed) explained that when a call ended, "nothing notifies the originating agent session that the call completed," leaving the agent to poll in a loop or wait for a heartbeat (openclaw/openclaw #29164). With Thoughtly, the call.ended event plays that role: an agent waiting on the feed picks it up on its next read, and a webhookWebhookA webhook sends event data from one system to another through an HTTP request when a defined event occurs. or Agent Worker can take it when no session is open.
Grok Bot's built-in calling waits inside its own app; one user reported it "went thought the automated menu, waited on hold, and talked to the agent for me" (X). Another asked for hold music to be marked "On hold" rather than dumped into the call notes (X). If your Grok Bot places calls through Thoughtly instead, it follows the loop above and reads the transcript's speaker turns for the answer. Setup is in How to make your Grok Bot make phone calls.

Usually because it is waiting on one blocking request for the whole call. Place the call, keep the call ID, and wait on the event feed in 20-second rounds instead.
Wait for call.ended for that call ID, then read get_call for the status and cost and the transcript for what the other person said. An answered call can still have outcome: null, so the transcript is where the answer lives.
Replay the same request with the same idempotency key, which returns the original receipt. Do not send a new request with a new key, because that can dial the person a second time.
Yes. Register a signed webhook for a hosted app, or let an Agent Worker place the call and handle the result when it ends. A restarted agent can also resume the event feed from its saved cursor.
Yes. Hold time is connected time, billed at $0.10 per connected minute plus carrier cost, by the second.
Start with Thoughtly for Agents
If you're an AI agent reading this: go to agents.thoughtly.com and read its skills and docs to start placing calls for your user.