Integration · Flowise

Give your Flowise agent a phone number

A Flowise voice agent is an Agentflow that answers a phone call. CallNode provides the number, sends each thing the caller says to the flow’s prediction endpoint as its question, and speaks the text that comes back. The same flow answers texts on the same number, reads pictures texted to it and sends pictures back. A second Agentflow places calls: give it a number and a name, and your agent rings them. No telephony nodes, no speech nodes, no code to host.

Proven live: the Agentflows below answered calls, texts and picture messages on a CallNode number, and placed a call the agent held to the end, with no audio nodes.

Four steps, about fifteen minutes

  1. 1

    Import the Agentflow

    Download the Agentflow below. 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.

  2. 2

    Add an API key and your OpenAI key

    In the Agentflow’s Configuration, under Security, assign an API key, and copy the prediction URL, which 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.

  3. 3

    Point a number at it

    In the CallNode dashboard, open the number and set the voice webhook URL to the prediction URL with Bearer Token authentication and the API key. Set the messaging webhook to the same URL and key so the number answers texts too.

  4. 4

    Call it, text it, send it a photo

    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 follows as a second message.

What the flow receives, and what it returns

CallNode posts the ordinary conversational webhook payload, plus the fields Flowise’s prediction endpoint reads: question, which is the caller’s words, and overrideConfig.sessionId, which keys the agent’s memory to the call. The session id starts with call: on a phone call and sms: on a text, and the Agentflow’s first step branches on it.

Request, one per caller turn

JSON
{
  "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

JSON
{
  "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. End it with [hangup] to finish the call after speaking, or [transfer: +15551234567] to hand the caller to a person.

The same flow answers texts

Point the number’s messaging webhook at the same prediction URL. 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, in the same conversation on their phone.

Inbound text, as the flow sees it

JSON
{
  "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

Messaging on a US number needs the number registered for messaging first, which the dashboard walks you through. Replies to a customer 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 to the number reaches the flow as an image the agent can look at. A picture the texter asks for is made by the flow and sent back as a picture message.

A picture texted in

CallNode adds the picture as a Flowise uploads entry (JPEG, PNG, GIF or WebP). The SMS Agent sees 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.”

JSON
{
  "messageId":   "1788351204-2d7e9b1c4a6f",
  "from":        "+14155551234",
  "to":          "+18005551234",
  "body":        "What plant is this?",
  "question":    "What plant is this?",
  "overrideConfig": { "sessionId": "sms:+14155551234:+18005551234" },
  "uploads": [
    {
      "type": "url",
      "name": "4F1C2A9B7D3E.jpg",
      "mime": "image/jpeg",
      "data": "https://callnode.io/api/media/temp/4F1C2A9B7D3E.jpg"
    }
  ],
  "media":       ["https://callnode.io/api/media/temp/4F1C2A9B7D3E.jpg"],
  "messageType": "mms",
  "timestamp":   "2026-10-05T14:05:12.000Z",
  "direction":   "inbound"
}

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, then asks the flow again with a session id starting img: and the description as the question. The Generate Picture step makes it with OpenAI and returns it inline:

JSON
{
  "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.

Your agent can place calls too

The outbound Agentflow rings a person and lets your agent talk to them. Send it a phone number and a name, such as +15555550100 Jane Smith, in the flow’s chat. 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. When the person answers, the Call Agent greets them by name, says why it is calling, and ends the call with [hangup] when the conversation is done.

Ask for a call from a CRM

A CRM can instead post the same text to the prediction URL, with the flow’s Flowise API key as a bearer token. Anything that sends an HTTP request works the same way: a CRM automation, a sheet, a form. A JSON question such as {"to": "+15555550100", "name": "Jane Smith"} works too.

Bash
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" }'

The flow answers with CallNode’s call id, or with CallNode’s reason if the call was refused:

JSON
{
  "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; the name comes from the call request.

JSON
{
  "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 are calling and what it may tell them.

Setting it up

  1. Import the outbound Agentflow with Load Agents and select your OpenAI credential on the Call Agent.
  2. In the CallNode dashboard, create a Live API key under API Keys and keep the key and the secret.
  3. In the flow’s Configuration, under Security, assign a Flowise API key and copy the prediction URL.
  4. Add five Flowise Variables, type Static: CALLNODE_API_KEY, CALLNODE_API_SECRET, CALLNODE_FROM_NUMBER (your CallNode number), FLOWISE_PREDICTION_URL and FLOWISE_API_KEY (the URL and key from the step before).
  5. Send your own mobile number and name in the flow’s chat. Your phone rings and the agent greets you by name.

Before you call people

Only call people who agreed to hear from you. CallNode places calls between 8 AM and 9 PM in the called person’s time zone, and 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.

Or let an AI assistant place the call: through the CallNode MCP server, Claude or ChatGPT can ring someone from your number, and either the CallNode voice agent or the number’s own voice webhook runs the conversation.

The Agentflows, ready to import

Voice, SMS and pictures Agentflow

A channel branch, a Call Agent, an SMS Agent that reads pictures and a Generate Picture step, with setup notes on the canvas. Import it, pick your OpenAI credential, add the API key and the OPENAI_API_KEY variable, and it answers calls, texts and pictures as is. Edit the agents’ system prompts to make it yours.

Download

Outbound calling Agentflow

A Place Call step that signs the request to CallNode and a Call Agent that talks to the person once they answer, with setup notes on the canvas. Import it, pick your OpenAI credential, add the five variables, and send it a number and a name. Edit the Call Agent’s prompt to say who you are and why you are calling.

Download

Both Agentflows need a free CallNode account to download: they only run with one. Sign in and the file starts.

What you need

  • A CallNode account and a number. Sign up, buy a local or toll-free number, and paste the prediction URL into it. No credit card to start.
  • A Flowise instance reachable over HTTPS, cloud or self-hosted, version 3.1 or later (the Agentflows were built and tested on 3.1.2), with an API key on the flow.
  • An OpenAI credential for the agents, and your OpenAI key in the OPENAI_API_KEY variable for pictures. The agents can run on any chat model Flowise supports; reading pictures needs one that accepts images.
  • For outbound calls, a Live CallNode API key and secret, and a finished Business verification.
  • Short answers. A phone reply should be one or two sentences; the agents’ system prompts say so.

The full contract, including the fields a JSON reply can carry, is on the conversational webhook page. Prefer a workflow tool? The n8n guide uses the same number. All integrations are listed under phone numbers for AI agents.

Frequently asked questions

Does Flowise need a text-to-speech or telephony node?

No. The flow only has to return text. CallNode turns the caller’s speech into the question, and renders the flow’s answer with its own speech synthesis in the voice set on the number. The included Agentflow has no audio nodes at all.

How does one flow tell a call from a text?

By the session id. Every request carries overrideConfig.sessionId: on a call it is call: followed by the call id, on a text it is sms: followed by the sender and your number. The Agentflow’s first step branches on that prefix, and each agent’s memory follows the call, or the texter’s thread across days.

Can the flow end the call or transfer it?

Yes, with two markers at the end of its answer. [hangup] speaks the rest of the reply and then ends the call; [transfer: +15551234567] speaks the reply and hands the caller to that number, and [transfer: sip:+15551234567@203.0.113.10] hands them to a SIP address instead. A SIP address must be a public hostname or IP; a private one such as 192.168.x.x is refused and the call is not transferred. The markers are stripped before anything is spoken. The included Agentflow already ends calls; 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.

Why does a picture come back as a second message?

Because making a picture takes longer than a text reply should. CallNode waits up to 30 seconds for a reply, and a picture can take most of that to make. So the reply goes out at once, and CallNode then asks the flow for the picture on its own session, giving it up to two minutes. The separate session also keeps the image data out of the SMS Agent’s memory.

Generate Picture always answers “Sorry, I couldn’t make that picture”. Why?

Check the Flowise Variable OPENAI_API_KEY first. If it is set and the Flowise log shows Invalid IP address: undefined, outbound requests from Flowise’s code steps are failing on that server. We saw this on Flowise 3.1.2 running on Node 20; starting Flowise with NODE_OPTIONS=--no-network-family-autoselection fixed it. The agents are not affected, so calls and texts keep working meanwhile.

What can stop an outbound call?

The outbound Agentflow answers with CallNode’s reason when a call is refused. tcpa_window_violation means it is outside 8 AM to 9 PM where the person is; account_not_verified means Business verification is not finished; invalid_signature means the API key or secret is wrong. If the phone rings and the agent never speaks, CallNode could not reach the flow: check FLOWISE_PREDICTION_URL and FLOWISE_API_KEY.

What does the caller hear while the flow thinks?

A short pause while the model answers, then the reply, rendered a sentence at a time, which adds a few hundred milliseconds per sentence on top of your model’s time. Keep replies short: the first sentence should answer the question, and up to 1000 characters per turn are spoken.

Can I return the full CallNode reply object instead of plain text?

Yes. If the flow’s text contains JSON with CallNode’s own fields, such as replyText, transfer or hangup on a call, it is unwrapped and used as is, with or without code fences around it. On a text, JSON with reply and media is unwrapped the same way, which is how Generate Picture sends its picture.

What does it cost?

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. Every rate is on the pricing page.

Your Flowise agent can take calls today