Make phone calls with Claude Code
Connect Claude Code to Bland AI, call your own phone, and get your spoken answer back in the terminal.
Help me set up a reusable phone-calling skill using Bland AI. Read my Bland API key from the BLAND_API_KEY environment variable. For the first test, ask for my own phone number and have the call ask me what time I want dinner. Once the call finishes, fetch the call details and show me what I said. Save the working flow as a Claude Code skill I can run again. Before placing the test call, show me the destination and what the call will ask.
Before you paste it: you need a Bland API key set on your computer. That takes two minutes and is covered in steps 1 and 2 below.
How it works
- 01
You ask Claude Code
In plain words: who to call and what to ask.
- 02
Bland AI places the call
A voice agent rings the number and has the conversation.
- 03
The answer comes back
Claude Code reads the transcript and carries on with it.
Setup guide
Step 1: Create a Bland account and copy your API key
Sign up at app.bland.ai. Your API key is in the dashboard under Settings. Calls are billed to your Bland account, so check the pricing and your credits there before you start.
Step 2: Set the API key on your computer
Store the key in an environment variable named
BLAND_API_KEY. The prompt tells Claude Code to read it from there, so you never paste the key into the chat. Run the line for your system, with your real key between the quotes.macOS or Linux (Terminal)
export BLAND_API_KEY="paste-your-key-here"
Windows (PowerShell)
$env:BLAND_API_KEY = "paste-your-key-here"
Then start Claude Code from the same terminal window, inside any project folder:
claude
This sets the key for the current terminal session only. Close the window and you set it again, which is a safe default while you try this out. Treat the key like a password: do not commit it or share it.
Step 3: Paste the prompt and run the test call
Copy the prompt from the top of this page and paste it into Claude Code. It will ask for your phone number. Give it with the country code and no spaces, like
+14155550123.Claude Code then shows you the number it is about to call and what the call will ask. Check both, approve, and your phone rings. Answer it and say when you want dinner.
When you hang up, Claude Code fetches the call details from Bland and prints what you said in the terminal.
What Claude Code is doing behind the scenes
- Placing the call. It sends a
POSTrequest tohttps://api.bland.ai/v1/callswith your key in theauthorizationheader. The two fields that matter arephone_number(the number to call) andtask(plain-language instructions for the voice agent). - Waiting. The call runs on Bland's side, not in your terminal. Claude Code keeps the call's ID and checks back until the call's status is
completed. - Reading the answer. It sends a
GETrequest tohttps://api.bland.ai/v1/calls/{call_id}. The response includesconcatenated_transcript, the whole conversation as text, andtranscripts, the same thing line by line with who said what.
The exact code Claude Code writes will vary. These are the two official endpoints it should end up using: Send Call and Call Details.
- Placing the call. It sends a
Step 4: Reuse the skill
The last part of the prompt asks Claude Code to save the working flow as a skill: a folder with a
SKILL.mdfile that tells Claude Code how to do this again. Personal skills live in~/.claude/skills/<skill-name>/SKILL.mdand work in every project.From then on you do not repeat the setup. Either ask in plain words (
call me and ask which color I want) and Claude Code picks the skill up on its own, or run it directly by typing/followed by the skill's name. Claude Code tells you the name when it saves it.The key still has to be set in the terminal you start Claude Code from (step 2).
Optional: a dedicated number
By default your calls come from a number in Bland's shared pool, which can change. If you want every call to come from the same number, you can buy one from Bland. Their docs list it as a $15 per month subscription, charged to your stored payment method, with US and Canadian numbers available.
You can do it from the Bland dashboard, or have Claude Code do it with this prompt. It asks for your confirmation before spending anything.
I want a dedicated Bland phone number for my phone-calling skill. Tell me the monthly cost and which area code you will request, and wait for me to confirm before buying anything. After I confirm, purchase the number through the Bland API and update my phone-calling skill to place calls from that number.
Once you own the number, calls use it through the from field of the Send Call request. See Purchase Phone Number in the Bland docs.
Two things to try
Replace the parts in square brackets before you send either one.
1. Ask a restaurant for a table
Use my phone-calling skill to call [restaurant name] at [their number, with country code]. Say at the start that you are an AI assistant calling on behalf of [your name]. Ask if they have a table for two at seven tonight. Before placing the call, show me the destination and what the call will ask. When the call finishes, fetch the call details and tell me what they said.
2. Have Claude Code call you for a decision
While you work on this project, if you reach a decision you can't make on your own, use my phone-calling skill to call me at [your number, with country code]. Ask the question in one sentence and give me the options. When the call finishes, fetch the call details, read what I said, and continue the task using my answer. Call at most once per decision.
Why the second one is useful. Claude Code gets your answer after the call, as text. It is not listening live. Once the call ends it fetches the transcript, reads what you said, and uses it to continue the task. So you can leave a long job running, take a 20-second call when it needs you, and come back to finished work.
Good to know
- Start with your own phone. Run the dinner test first so you hear what the voice agent sounds like before it calls anyone else.
- Be upfront with other people. When calling a business or a person, have the agent say it is an AI calling on your behalf. Rules on automated and recorded calls differ by country and state, so check what applies to you.
- Calls cost money. Every call is billed by Bland. Their docs also say international calls need at least $5 of credits on your account.
- Keep the confirmation step. Every prompt here makes Claude Code show the number and the question before dialing. It is the cheap way to catch a wrong number.
- Number format matters. Bland expects numbers in E.164 format: a plus sign, the country code, then the number, with no spaces or brackets.
Official docs
Unscripted Tech
Making complex tech simple.
More from me
AI Stickman Videos
One prompt that installs Stickman Video Director and renders your first video.
Read more →Free guideThe Context Kit
Four markdown files that stop your AI coding agent from getting lost.
Read more →Free guideML Model That Can Smell
Set up OpenPOM and predict what any molecule smells like.
Read more →