Give your Flowise Agentflow a phone number
Build a Flowise voice agent that answers phone calls, replies to texts and reads pictures, from one Agentflow. CallNode is the phone layer: it owns the number, sends each thing the caller says to your flow as its question, and speaks the text that comes back.
What you'll build
- An inbound voice agent: someone calls your number and your Agentflow answers.
- Two-way SMS on the same number, from the same flow.
- Pictures in and out: the flow reads a photo texted to it and can text a picture back.
- Optionally, a second Agentflow that places calls.
You don't add telephony nodes, speech nodes or code to host. From callnode.io: "The flow only has to return text." Flowise stays the agent, and CallNode handles the number, the carrier and the speech.
What you'll need
- A CallNode account and a number. A local number is $2.99 a month (callnode.io/pricing: "Local numbers $2.99 a month, toll-free $4.99 a month").
- A Flowise instance reachable over HTTPS, cloud or self-hosted, version 3.1 or later. callnode.io says the Agentflows "were built and tested on 3.1.2".
- An OpenAI credential for the agents, and your OpenAI key in a Flowise variable for pictures. The agents can run on any chat model Flowise supports, but reading pictures needs one that accepts images.
Step 1: Get a number and import the Agentflow
- Create a CallNode account. You don't need a credit card to sign up. Usage is prepaid, so you add funds when you're ready to buy a number.
- In the dashboard, buy a local or toll-free number.
- Download the Voice, SMS and pictures Agentflow (
flowise-voice-sms-mms.agentflow.json) from callnode.io/integrations/flowise. The Agentflows need a free CallNode account to download, so sign in first and the file starts. - In Flowise, open Agentflows, choose Add New, then Load Agents in the canvas settings, and pick the file.
- Select your OpenAI credential on the Call Agent and the SMS Agent.
The flow has a channel branch, a Call Agent, an SMS Agent that reads pictures and a Generate Picture step, with setup notes on the canvas.
Step 2: Add an API key and your OpenAI key
- In the Agentflow's Configuration, under Security, assign an API key.
- Copy the prediction URL. It ends in
/api/v1/prediction/followed by the flow id. - For pictures, add a Flowise Variable named
OPENAI_API_KEY, type Static, holding your OpenAI key.
Step 3: Point the number at your flow
- In the CallNode dashboard, open the number. Set the voice webhook URL to the prediction URL, with Bearer Token authentication and the API key from Step 2.
- Set the messaging webhook to the same URL and key, so the number answers texts too.
Step 4: Call it, text it, send it a photo
Ring the number from your own phone and talk to your agent. Then text it. Calls reach the Call Agent and texts reach the SMS Agent, chosen by the session id CallNode sends.
Text it a photo and it tells you what it sees. Ask it to draw something and the picture arrives as a second message.
That's a working Flowise voice agent. The rest of this guide explains what's going on, then adds outbound calls.
What your flow receives, and what it returns
CallNode posts its ordinary conversational webhook payload, plus the fields Flowise's prediction endpoint reads:
question: the caller's words;overrideConfig.sessionId: keys the agent's memory to the call. It starts withcall:on a phone call andsms:on a text, and the Agentflow's first step branches on it.
Request, one per caller turn (from callnode.io/integrations/flowise):
{
"callId": "cn-ob-7f3a18a2-9b40-4e1e-9c4e-1b8b9b8e6b3a",
"event": { "type": "user_speech" },
"transcript": "I'd like to book a demo for next Wednesday at 10 AM.",
"question": "I'd like to book a demo for next Wednesday at 10 AM.",
"overrideConfig": { "sessionId": "call:cn-ob-7f3a18a2-9b40-4e1e-9c4e-1b8b9b8e6b3a" },
"conversationHistory": [
{ "role": "assistant", "content": "Hi, this is Hal from CallNode...", "timestamp": 1780173386556 },
{ "role": "user", "content": "Yes, I'm interested.", "timestamp": 1780173401200 }
],
"meta": {
"from": "+15145550199",
"to": "+16135551234",
"callId": "cn-ob-7f3a18a2-9b40-4e1e-9c4e-1b8b9b8e6b3a"
}
}
Flowise's answer, spoken to the caller:
{
"text": "Wednesday at 10 works. I've noted the demo; you'll get a calendar invite shortly. Anything else? [hangup]",
"question": "I'd like to book a demo for next Wednesday at 10 AM.",
"chatId": "e0a4d2c1-5b7f-4e3a-9c2d-1f8b7a6e5d4c",
"sessionId": "call:cn-ob-7f3a18a2-9b40-4e1e-9c4e-1b8b9b8e6b3a"
}
Only text matters. Two markers at the end of the answer control the call. The markers are stripped before anything is spoken.
[hangup]speaks the rest of the reply, then ends the call. The included Agentflow already ends calls this way.[transfer: +15551234567]speaks the reply, then hands the caller to that number. Asip:address works too, but it must be a public hostname or IP. A private one such as 192.168.x.x is refused, and the call isn't transferred.
To turn on transfers, add a line to the Call Agent's system prompt, such as "If the caller asks for a person, say you'll connect them and end with [transfer: +1XXXXXXXXXX]", using a real number.
Keep replies short. A phone reply should be one or two sentences, and up to 1000 characters per turn are spoken. The caller hears a short pause while the model answers, then the reply, spoken a sentence at a time. On a voice call, the conversational webhook docs say: "The bridge waits up to 30 seconds, but the caller hears nothing while it waits." For calls to your number, the number's voice.webhookTimeout setting sets that wait instead (1 to 120 seconds, default 30).
The same flow answers texts
With the messaging webhook pointed at the same prediction URL, an inbound SMS arrives with the message body as the question and a session id per sender, so every customer has their own thread. The flow's text goes back as the reply.
{
"messageId": "1788350712-8f2c1a9e4b7d",
"from": "+14155551234",
"to": "+18005551234",
"body": "What are your hours?",
"question": "What are your hours?",
"overrideConfig": { "sessionId": "sms:+14155551234:+18005551234" },
"media": [],
"messageType": "sms",
"timestamp": "2026-09-02T14:05:12.000Z",
"direction": "inbound"
}
Before texts flow: the number must be registered for messaging first, and the dashboard walks you through it. That means 10DLC for a local number (otherwise sends return 403 campaign_not_registered) and toll-free verification for a toll-free number (tollfree_not_verified). Replies go out from your number and honour STOP automatically. Outbound texts you start yourself go through the messaging API.
Pictures in, pictures out
- A picture texted in. CallNode adds it as a Flowise
uploadsentry (JPEG, PNG, GIF or WebP). The SMS Agent can see it because its model has Allow Image Uploads on, as it is in the included Agentflow. A picture sent with no words arrives with the question "The texter sent a picture." - A picture sent back. When the texter asks for a picture, the SMS Agent ends its reply with
[image: a description of the picture]. CallNode texts the reply at once, without the marker. It then asks the flow again, with a session id startingimg:and the description as the question. The Generate Picture step makes the picture with OpenAI and returns it:
{
"reply": "Here's your picture.",
"media": ["data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD..."]
}
CallNode stores the picture and texts it as a second message. It can be JPEG, PNG, GIF or WebP, up to 5 MB, and the flow has up to two minutes to answer.
Why a second message? From callnode.io: "CallNode waits up to 30 seconds for a reply, and a picture can take most of that to make." So the text reply goes out at once, and the picture follows on its own session.
Optional: let your agent place calls
The second download, the Outbound calling Agentflow (flowise-outbound.agentflow.json), rings a person and lets your agent talk to them. Send it a phone number and a name in the flow's chat, such as +15555550100 Jane Smith. Its Place Call step signs a request to CallNode's outbound calls API with your API key and secret, and points the call back at the same flow.
Set it up:
- Import the outbound Agentflow with Load Agents and select your OpenAI credential on the Call Agent.
- In the CallNode dashboard, create a Live API key under API Keys. Keep the key and the secret.
- In the flow's Configuration, under Security, assign a Flowise API key and copy the prediction URL.
- Add five Flowise Variables, type Static:
CALLNODE_API_KEY,CALLNODE_API_SECRET,CALLNODE_FROM_NUMBER(your CallNode number),FLOWISE_PREDICTION_URLandFLOWISE_API_KEY(the URL and key from the step before). - Verify
CALLNODE_FROM_NUMBERas a caller ID: Numbers, open the number, Caller ID card. Verification is automatic and takes about a minute. Until it's verified, calls from it are refused with403 caller_id_not_verified. - Send your own mobile number and name in the flow's chat. Your phone rings, and the agent greets you by name.
From a CRM, a sheet or a form. Anything that sends an HTTP request can post the same text to the prediction URL, with the flow's Flowise API key as a bearer token:
curl -X POST https://your-flowise.example.com/api/v1/prediction/<flow-id> \
-H "Authorization: Bearer <your Flowise API key>" \
-H "Content-Type: application/json" \
-d '{ "question": "+15555550100 Jane Smith" }'
A JSON question such as {"to": "+15555550100", "name": "Jane Smith"} works too. The flow answers with CallNode's call id, or with CallNode's reason if the call was refused:
{
"text": "Calling Jane Smith at +15555550100 now. Call ID: cn-ob-2c9e41d7-8a3f-4b6e-9d1c-5f7a0e3b8c24 (originating).",
"question": "+15555550100 Jane Smith",
"chatId": "8d1f6b2a-3c4e-4f7a-9b0d-2e5c8a1f7b36"
}
When the person answers, CallNode posts the call to the same prediction URL with a session id starting call:, so it reaches the Call Agent. The first request tells the agent whom it rang:
{
"callId": "cn-ob-2c9e41d7-8a3f-4b6e-9d1c-5f7a0e3b8c24",
"event": { "type": "call_started" },
"question": "The person you called has just answered the phone. You are calling Jane Smith. Greet them, say who you are and why you are calling.",
"overrideConfig": { "sessionId": "call:cn-ob-2c9e41d7-8a3f-4b6e-9d1c-5f7a0e3b8c24" }
}
After that, each thing the person says arrives as the question, exactly as on an incoming call. Edit the Call Agent's prompt to say who you are, why you're calling and what it may tell them.
Before you call people. From callnode.io: "Only call people who agreed to hear from you."
- CallNode places calls only between 8 AM and 9 PM in the called person's time zone.
- Calls go out only once your Business verification is finished.
- Test API keys never ring a phone.
- Keep the flow's chat and API key private: anyone who can send it a message can place a call.
What it costs
From the callnode.io Flowise guide:
"The number is $2.99 a month and inbound calls bill at $0.02 a minute on pay as you go. Because the flow answers in text, CallNode renders the speech for it, which is billed at $0.02 per started minute on calls where a reply was spoken. Calls the outbound Agentflow places bill per minute like any outbound call, and their spoken replies bill the same way. Texts bill per message at the plan rate ($0.01 for SMS, $0.04 for MMS on pay as you go), and a picture sent back is one MMS. Pictures are made on your own OpenAI account."
On a toll-free number, pay-as-you-go MMS is $0.05 (callnode.io/pricing). Every rate is on the pricing page.
Troubleshooting
- Calls connect but the agent never speaks. Check the voice webhook URL and the Bearer Token on the number. For outbound calls, check
FLOWISE_PREDICTION_URLandFLOWISE_API_KEY. - Texts get no reply. Check the messaging webhook on the number, and that the number is registered for messaging (10DLC for local, toll-free verification for toll-free).
- An outbound call is refused. The outbound Agentflow answers with CallNode's reason:
tcpa_window_violation: it's outside 8 AM to 9 PM where the person is;account_not_verified: Business verification isn't finished;invalid_signature: the API key or secret is wrong;caller_id_not_verified: verify your from number on its Caller ID card.
- Generate Picture always answers "Sorry, I couldn't make that picture". Check the
OPENAI_API_KEYFlowise Variable first. If it's set and the Flowise log showsInvalid IP address: undefined, outbound requests from Flowise's code steps are failing on that server. callnode.io: "We saw this on Flowise 3.1.2 running on Node 20; starting Flowise with NODE_OPTIONS=--no-network-family-autoselection fixed it." Calls and texts keep working meanwhile.
Where to go next
- The full contract, including the fields a JSON reply can carry, is in the conversational webhook docs.
- Prefer a workflow tool? The n8n tutorial uses the same number.
- Building in code? The webhook and WebSocket quick-start uses the same contract.
- Want Claude or ChatGPT to place the call? See the MCP tutorial.
- Every phone-layer option: a phone number for your AI agent.