Phone
Space MCP tools in the Phone scope (phone). Reach these with a wks_live_ key over space-mcp or space-api.
Tools in the phone scope, callable over space-mcp (tools/call) or space-api (REST) with a wks_live_* key that grants phone.
build_texting_signup_pages
Scope: phone:write
Build (or refresh) in this space the three public pages the carriers open: a SIGN-UP page with a real form (an unticked box with how often, rates, STOP/HELP; sign-ups become contacts here with their agreement recorded), a PRIVACY POLICY and SMS TERMS. On the space's own domain when one is ready, else Wakato's pages address. Every page names the business (legal name, address, phone, email), which carriers check. With make_website it also builds the business's one-page website for someone with none. Returns signup_url, privacy_url, terms_url (and home_url) for start_us_texting. Building again updates the same pages.
| Parameter | Type | Required | Description |
|---|---|---|---|
brand_name | string | yes | The name people know the business by (the DBA). |
website | string | ||
plan | low | high | me | ||
messages_about | string | Plain words for what people get, matching the kinds, e.g. 'booking reminders and replies to your questions'. | |
frequency | string | e.g. 'Up to 4 messages a month' (default 'Message frequency varies') | |
support_email | string | ||
make_website | boolean | The business has no website: also build its one-page website (name, what it does, address, phone, email, links to the three pages). Pass the home_url it returns as website. | |
legal_name | string | Legal name as on the IRS letter; shown on every page beside the brand name. | |
business_description | string | One or two plain sentences: what the business does and for whom (the website's text). | |
street | string | ||
city | string | ||
state | string | ||
postal_code | string | ||
business_phone | string | The business's public phone, shown on the pages. | |
hours | string | e.g. 'Mon–Fri 9am–6pm' |
check_texting_signup_page
Scope: phone:read
Open a sign-up page, wherever it lives (a Wakato page or the business's own website, e.g. https://theirsite.com/texts), and check it the way the carriers' reviewers do: a phone field, an UNTICKED box to agree, how often, 'Message and data rates may apply', STOP/HELP, links to the privacy policy and SMS terms. Answers ok + exactly what is missing and how to fix it. Use it before passing a page of theirs as signup_url (start_us_texting runs the same check and refuses a page that fails, nothing charged).
| Parameter | Type | Required | Description |
|---|---|---|---|
url | string | yes | The page's public https address. |
control_call_campaign
Scope: phone:run
Pause, resume, or cancel a running/scheduled call campaign.
| Parameter | Type | Required | Description |
|---|---|---|---|
campaign_id | string | yes | |
action | pause | resume | cancel | yes |
create_call_campaign
Scope: phone:write
Create a DRAFT outbound call campaign: an agent's Reach (its phone platform) dials each contact in an audience. Requires (before it can start) a voice-enabled reach_id, an audience_id, and an active from_phone_number_id — none are required to draft. call_script_id is optional. Use list_agent_reach / list_audiences / list_phone_numbers / list_call_scripts to discover ids.
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | yes | |
reach_id | string | The agent whose Reach places the calls (reach_id from list_agent_reach; voice must be enabled on it). | |
audience_id | string | Contact audience to dial. | |
from_phone_number_id | string | Active space number to dial from. | |
call_script_id | string | Optional call script to override opening line + goals per call. | |
max_concurrent | number | Simultaneous calls in flight (1–50, default 3). | |
retry_policy | object | { max_retries, retry_delay_minutes, retry_on: ['no_answer','busy','failed'] } | |
time_window | object | Optional { start_hour, end_hour, days:[0-6] } — dials are parked outside these hours (UTC). |
create_call_script
Scope: phone:write
Create a reusable call script an agent's Reach follows on a voice call. opening_line is what the agent says first; instructions set tone/guardrails; goals are ordered objectives; end_action is what happens when the call wraps up. Supports {{merge_tags}} like {{contact.first_name}} and {{space.name}}. A call script is OPTIONAL for a call — the agent's own persona drives the call; a script layers a specific opening + goals + end action on top.
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | yes | |
description | string | When/why this script is used (internal note). | |
opening_line | string | What the agent says first when the call connects. | |
instructions | string | Tone, persona, guardrails for the call. | |
goals | object[] | Ordered objectives the agent should work through. | |
end_action | hang_up | transfer | send_sms | book_meeting | none | What to do once the call wraps up. | |
end_action_config | object | Action-specific config: transfer { phone_number }, send_sms { template_id | body }, book_meeting { calendar_event_type }. | |
default_agent_id | string | Optional agent (its Reach id, from list_agent_reach) this script defaults to. | |
variables | object[] |
create_sms_campaign
Scope: phone:write
Create a DRAFT SMS campaign (broadcast or drip). A connected SMS-capable number is NOT required to draft — only to send. Defaults the sender to the space's first eligible number when one exists.
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | yes | |
campaign_type | broadcast | drip | ||
body | string | Broadcast message body. Supports {{merge_tags}}. | |
from_phone_number_id | string | Optional — defaults to the first SMS-capable space number. | |
audience_id | string | ||
enrollment_mode | one_shot | continuous | ||
trigger_audience_id | string | ||
opt_out_footer | boolean | ||
steps | object[] | Drip steps in order. |
create_sms_template
Scope: phone:write
Create a reusable SMS template. Supports {{merge_tags}} like {{first_name}}.
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | yes | |
body | string | yes | |
variables | object[] |
delete_call_script
Scope: phone:write
Delete a call script. Call campaigns referencing it keep running but lose the script override.
| Parameter | Type | Required | Description |
|---|---|---|---|
script_id | string | yes |
fix_texting_company
Scope: phone:write
The owner's company (or Just me) the carriers didn't confirm: change what the reason names (legal_name exactly as on the IRS letter, the address, the website, the DBA, the contacts) and send it again — no new charge; its texts still wait and go by themselves when it passes. Asks the owner first. A wrong EIN is re-typed by the owner (on the number's texting setup or their assistant's card), never by you.
| Parameter | Type | Required | Description |
|---|---|---|---|
company_id | string | yes | From get_texting_status |
legal_name | string | ||
dba_name | string | ||
website | string | ||
street | string | ||
city | string | ||
state | string | ||
postal_code | string | ||
contact_email | string | ||
contact_phone | string | ||
first_name | string | ||
last_name | string |
get_call_campaign
Scope: phone:read
Get one call campaign plus a sample of its per-contact dial runs (dispositions, durations).
| Parameter | Type | Required | Description |
|---|---|---|---|
campaign_id | string | yes |
get_call_recording
Scope: phone:read
Fetch a recorded call's playback URL (freshly signed, 1h) and its transcript when one exists. Pass the call id from list_call_history. Returns recorded:false when the call wasn't recorded.
| Parameter | Type | Required | Description |
|---|---|---|---|
call_room_id | string | yes | Call id from list_call_history. |
get_call_script
Scope: phone:read
Get one call script including its opening line, instructions, goals, and end-of-call action.
| Parameter | Type | Required | Description |
|---|---|---|---|
script_id | string | yes |
get_sms_campaign
Scope: phone:read
Get one SMS campaign, including its drip steps if it's a drip.
| Parameter | Type | Required | Description |
|---|---|---|---|
campaign_id | string | yes |
get_texting_guide
Scope: phone:read
Read this before setting up texting from US numbers (10DLC), or when someone asks what it needs or costs: what the carriers require for a company or for Just me, the 2 to 5 kinds of texts and how to write the examples, the sign-up page rules, the exact prices and when each is charged (read live from Telnyx), what happens after sending, and the most common reasons for a no and how to avoid them.
get_texting_status
Scope: phone:read
Where US texting stands for this space's numbers: which can text, the owner's company behind them (EIN as last 4 digits), the texts (plan, kinds, examples, status, the carriers' reason when turned down) and what happens next. sync=true asks the registry first. The owner is told when the carriers answer, so don't poll in a loop.
| Parameter | Type | Required | Description |
|---|---|---|---|
sync | boolean |
get_whatsapp_calls
Scope: phone:read
How the space's WhatsApp numbers take calls: whether calls ring in Wakato, and the steps a call goes through until someone answers (ring someone in the Wakato app, ring a phone number, an agent answers, take a voicemail), plus who and what can be picked for each step (people, agents, Wakato numbers to call from). Give no number for all of them. Calls also need Meta: a payment card, business verification, an approved name.
| Parameter | Type | Required | Description |
|---|---|---|---|
social_account_id | string | The WhatsApp number's account id (from this answer, or the social accounts list). |
list_call_campaigns
Scope: phone:read
List outbound call campaigns in the space, optionally filtered by status.
| Parameter | Type | Required | Description |
|---|---|---|---|
status | string | ||
limit | number |
list_call_history
Scope: phone:read
List recent calls in the space.
| Parameter | Type | Required | Description |
|---|---|---|---|
limit | number |
list_call_scripts
Scope: phone:read
List reusable call scripts (voice scripts an agent's Reach follows on a call) in the space.
| Parameter | Type | Required | Description |
|---|---|---|---|
limit | number |
list_phone_numbers
Scope: phone:read
List active phone numbers in the space.
list_sms_campaigns
Scope: phone:read
List SMS campaigns (broadcasts + drip sequences) in the space.
| Parameter | Type | Required | Description |
|---|---|---|---|
status | string | ||
limit | number |
list_sms_templates
Scope: phone:read
List reusable SMS templates in the space.
| Parameter | Type | Required | Description |
|---|---|---|---|
limit | number |
make_call
Scope: phone:run
Call someone on the phone and have a live conversation with a GOAL — book them into a meeting, offer something, tell them something, follow up — handled by an agent's Reach (voice on) from its own number (consequential, billable: voice minutes charge the space wallet). Any country the carrier reaches can be called: the phone line is charged per started minute at that country's price (the approval card says it; the US and Canada cost the flat price), on top of the AI voice. A special-rate or toll-free number abroad, or a destination over the per-minute ceiling, is refused in words before anything is asked. The voice stays on the goal until it is reached or the person says no, can book on the space's booking page and hand the call to a person (its transfer setup), and leaves a voicemail if nobody picks up — its own short message, your exact words (voicemail_message) or audio played as it is (voicemail_from_chat = the voice note someone just recorded in this chat, voicemail_audio_asset_id = a file in Assets); leave_voicemail:false to hang up instead. The result says which. Requires to (E.164). Put EVERYTHING the voice needs in purpose: who you are calling for, what you want them to do, the facts to tell them, what counts as done, and when to hand over to a person — the voice knows nothing else about this call. To call at a later time, set an alarm (schedule_task) and call then. You do not wait on the call: when it ends you get ONE message in this chat with how it went (answered or not, goal reached or not, what happened, the next step). reach_id is optional: without it the call goes from the agent that owns from, else from your own line, else from the space's only line.
| Parameter | Type | Required | Description |
|---|---|---|---|
to | string | yes | Destination phone number (E.164, e.g. +15551234567). |
reach_id | string | The Reach that makes the call (reach_id from list_agent_reach). Optional when only one agent owns a number. | |
purpose | string | The goal and everything the voice needs: who you are calling for, what you want them to do (book a meeting, say yes to an offer…), the facts to tell them, what counts as done, when to hand them to a person. | |
callee_name | string | Name of the person being called (the voice confirms it is them before sharing anything). | |
leave_voicemail | boolean | Leave a short message when voicemail answers (default true). | |
call_script_id | string | A call script of this space to follow (list_call_scripts): opening line, goals in order, what to do at the end. | |
voicemail_message | string | Exact words to say on voicemail (under 600 characters). Leave out to let the voice say its own short message. | |
voicemail_audio_asset_id | string | An audio file of the space's Assets (list_document_assets) to play on voicemail as it is. Make one in your own voice with generate_speech; mp3, wav, m4a…, up to 15 MB. | |
voicemail_from_chat | boolean | Drop the newest voice note a person recorded in this chat (the microphone in the message box) on voicemail, as it is — e.g. "if he doesn't pick up, leave him my voice note". | |
voicemail_audio_url | string | Or an audio link stored in Wakato (a voice note or audio file sent in a chat) to play on voicemail. | |
from | string | Specific owned number to call from (optional; defaults to the agent's number). |
request_phone_number
Scope: phone:read
Ask the space's owner to buy a phone number for an agent: a card appears in this chat with the number, its place and its monthly price (billed to the owner's own wallet); they buy it with one tap, or give one they already have. Once they say yes it is ALREADY set up on the agent — calls try the agent first, then the owner's phone, then voicemail, and texts come to the agent. Use a number from search_phone_numbers that the person picked. You get a message when they answer.
| Parameter | Type | Required | Description |
|---|---|---|---|
phone_number | string | yes | E.164 number from search_phone_numbers. |
country_code | string | Its country, default US. | |
agent_id | string | The agent the number is for (from list_agents). Default: you. | |
purpose | string | One sentence on the card: what the number is for. |
resend_texting_campaign
Scope: phone:write
Texts the carriers turned down, sent again as a NEW campaign (a turned-down one can't be edited). Fix what the reason names first (the sign-up page with build_texting_signup_pages, the examples, the kinds), then this. Costs the review + 3 months again from the owner's wallet: the owner's card says how much.
| Parameter | Type | Required | Description |
|---|---|---|---|
texts_id | string | yes | From get_texting_status |
examples | string[] | ||
kinds | string[] | ||
signup_url | string |
search_phone_numbers
Scope: phone:read
Phone numbers for sale (local numbers in the US, Canada and the few other countries Wakato sells in), each with its place and monthly price. Use when the space has no number for an agent to answer (get_agent_reach_setup says so): ask the person which city or area code they want, offer two or three, then request_phone_number.
| Parameter | Type | Required | Description |
|---|---|---|---|
country_code | string | ISO country code, default US. | |
area_code | string | Preferred area code, e.g. 305. | |
city | string | A city, e.g. Miami (US/CA) — give state too. | |
state | string | Two-letter US state or Canadian province, e.g. FL. | |
contains | string | Digits the number should contain. | |
limit | number | How many (default 8, at most 20). |
send_sms
Scope: phone:run
Send an SMS from a space number (consequential, billable). Requires to (E.164) and message.
| Parameter | Type | Required | Description |
|---|---|---|---|
to | string | yes | |
message | string | yes | |
from | string | Specific space number to send from (optional). |
send_sms_campaign
Scope: phone:run
Consequential + billable: schedule a broadcast SMS send (scheduled_at defaults to now) or start a drip. Requires a sender number, an audience, and message content.
| Parameter | Type | Required | Description |
|---|---|---|---|
campaign_id | string | yes | |
scheduled_at | string | ISO timestamp; omit to send ASAP. |
set_whatsapp_call_steps
Scope: phone:write
Set who a WhatsApp number's calls ring, in order (at most six steps). Each step is one of: {type:"app", ring_user_id, timeout} rings that person in the Wakato app for timeout seconds (10–60); {type:"forward", to:"+1…", from_phone_number_id, timeout} rings a phone number, the call coming from one of the space's Wakato numbers; {type:"agent", bot_id} an agent answers; {type:"voicemail", max_seconds} takes a message (20–180 s). An agent or a voicemail ends the list (one of them, last). Ids come from get_whatsapp_calls.
| Parameter | Type | Required | Description |
|---|---|---|---|
social_account_id | string | yes | |
steps | object[] | yes | The steps, in the order they run. |
start_call_campaign
Scope: phone:run
Consequential + billable: launch a call campaign. Validates it has a voice-enabled agent, an audience, and an active sender number, then schedules it — the runner enrolls the audience and starts dialing on its next tick.
| Parameter | Type | Required | Description |
|---|---|---|---|
campaign_id | string | yes | |
scheduled_at | string | ISO timestamp; omit to start ASAP. |
start_us_texting
Scope: phone:write
Set up texting from this space's US numbers in ONE go, for the space owner and on their wallet: the company (or Just me), the plan, the kinds of texts, one example per kind, the sign-up page, the numbers. Checks everything the carriers check first and answers the problem in a sentence; then the owner approves on a card that shows the full price schedule. Never pass an EIN: for a company it must already be saved on the owner's Business (business_profile_id) or an earlier company (existing_brand_id); if it isn't, you are told what to say to the person. After the yes the company goes to the carriers; the texts go by themselves the moment it passes. Read get_texting_guide first.
| Parameter | Type | Required | Description |
|---|---|---|---|
who | company | me | company = a business with a 9-digit EIN (any number of numbers); me = the owner texting as themselves, no EIN (one number). | |
business_profile_id | string | One of the owner's Businesses whose tax ID is saved: it is used (you never see it). | |
existing_brand_id | string | A company already confirmed or with the carriers (get_texting_status): its details are used and its check is not paid again. | |
legal_name | string | Company: the legal name EXACTLY as on the IRS letter (CP 575 / 147C). | |
dba_name | string | The name customers know, if different. Every example must name it. | |
company_type | private_profit | public_profit | non_profit | government | ||
industry | string | e.g. PROFESSIONAL, RETAIL, HEALTHCARE, REAL_ESTATE, TECHNOLOGY, HOSPITALITY | |
website | string | Opens and names the business (https). | |
street | string | No PO box. | |
city | string | ||
state | string | 2 letters | |
postal_code | string | ||
contact_email | string | ||
contact_phone | string | ||
stock_exchange | string | public_profit only | |
stock_symbol | string | public_profit only | |
first_name | string | Just me: as on the owner's ID | |
last_name | string | Just me: as on the owner's ID | |
mobile_phone | string | Just me: the owner's own US mobile (not a Wakato number); a 6-digit code is texted to it. | |
plan | low | high | me | low = under ~2,000 texts a day; high = more; me = Just me. | |
kinds | string[] | Company: 2 to 5 kinds of texts. | |
examples | string[] | One example text per kind (at least 2): names the sender, ends with "Reply STOP to opt out", no short links. | |
signup_url | string | The https sign-up page (build_texting_signup_pages makes one). | |
privacy_url | string | ||
terms_url | string | ||
numbers | string[] | This space's US local numbers to text from (ids from list_phone_numbers, or the numbers). | |
test | boolean | Test mode, only on Wakato's dev project: nothing reaches the carriers. |
switch_whatsapp_calls
Scope: phone:write
Switch a WhatsApp number's calls off (on: false) or back on (on: true). Calls come on by themselves once Meta allows them on a connected number (ringing the owner in the Wakato app, then voicemail); switched off here they stay off until someone switches them on. Refused in words while Meta doesn't allow calls on the number yet.
| Parameter | Type | Required | Description |
|---|---|---|---|
social_account_id | string | yes | |
on | boolean | yes |
update_call_campaign
Scope: phone:write
Edit a draft/paused/scheduled call campaign (agent, audience, sender, script, throttling, retry, time window).
| Parameter | Type | Required | Description |
|---|---|---|---|
campaign_id | string | yes | |
name | string | ||
reach_id | string | ||
audience_id | string | ||
from_phone_number_id | string | ||
call_script_id | string | ||
max_concurrent | number | ||
retry_policy | object | ||
time_window | object |
update_call_script
Scope: phone:write
Edit a call script. Passing goals REPLACES the full goal list.
| Parameter | Type | Required | Description |
|---|---|---|---|
script_id | string | yes | |
name | string | ||
description | string | ||
opening_line | string | ||
instructions | string | ||
goals | object[] | ||
end_action | hang_up | transfer | send_sms | book_meeting | none | ||
end_action_config | object | ||
default_agent_id | string | ||
variables | object[] |
update_sms_campaign
Scope: phone:write
Edit a draft/paused/scheduled SMS campaign. Passing steps REPLACES all drip steps.
| Parameter | Type | Required | Description |
|---|---|---|---|
campaign_id | string | yes | |
name | string | ||
body | string | ||
from_phone_number_id | string | ||
audience_id | string | ||
enrollment_mode | one_shot | continuous | ||
trigger_audience_id | string | ||
opt_out_footer | boolean | ||
steps | object[] |
update_sms_template
Scope: phone:write
Edit an SMS template (name, body, variables).
| Parameter | Type | Required | Description |
|---|---|---|---|
template_id | string | yes | |
name | string | ||
body | string | ||
variables | object[] |