Calling External APIs From a Flow
Define and test an HTTP API, map the response, call it from a flow and build the failure path. Plus Google Sheet Data Fetch as the no-code alternative.
What you'll do: let a flow look something up in another system (an order, a booking, a stock level) and use the answer in its reply.
Time: 30β60 minutes, most of it testing the API.
The work splits in two. You define the API once in Chatbot Manager, where you can test it on its own, then drop an HTTP API block into as many flows as you like. Almost every integration problem is in the first half.
Before you start
β Your API provider's instructions: the endpoint URL, the method, and the header and body format
β For a simple lookup in a sheet a colleague maintains by hand, you may not need an API at all. See Google Sheet Data Fetch under Reference.
1. Open HTTP API and start a new one
Go to Chatbot Manager β Integrations β HTTP API. The screen is headed HTTP API: "Connect and manage outbound HTTP APIs for flows and automations."
Click Create.
You should now see the Add HTTP API wizard ("Connect and manage your WhatsApp HTTP APIs") as a full page with four numbered steps:
API Details: "Basic connection info"
Request Data: "Headers, body & more"
Test & Verify: "Test your API request"
Response Mapping: "Map response fields"

Tip: the AI API Builder panel can fill the fields in for you. See Reference.
2. Fill in API Details
API Name (placeholder
e.g. Get Package Info): name it for what it returns, not for the system it hits. You will pick it from a dropdown later.Method: a dropdown, defaulting to
POST. Use the method the endpoint expects rather than the preselected one.API Endpoint URL (placeholder
https://api.example.com/v1/package).
3. Fill in Request Data
"Add headers, body, option data or cookies for your API request." There are four tabs: Body, Headers, Option Data and Cookies, with + Add for new rows.
Copy the header and body format from your API provider's instructions.
If a field has to change per customer (an order number, a phone number), set it as a dynamic field, so the same saved API works for everybody.
The technical detail for developers is under Reference.
4. Test and verify
"Enter test values for dynamic fields, then send a request to see the response."
Under Test Mode, choose Use Sample Data (Recommended) ("Test with predefined sample values"). Move to Use Recent Subscriber ("Pick a subscriber and use their data.") only once the request shape is right, and use your own subscriber record rather than a customer's.
Check Detected Variables ("We found these variables in your request body."). It lists what the wizard found, with columns VARIABLE and **TEST VALUE ***. Fill in a test value for each.
Click Send Test Request.
You should now see the result in Last Response. Its badge reads Not tested until you send, and before then it shows "Response will appear here after test...".
Check the response time. If a response takes two seconds here, it takes two seconds in every conversation.

5. Map the response
Step 4 of the wizard, "Map response fields", becomes available after a successful test.
Decide which parts of the answer Scope Wiser keeps: for example, a returned user ID or email onto the subscriber's record, or a whole returned list saved into one custom field so a later block can render it as a tappable list.
Save the API.
6. Add the HTTP API block to a flow
The block is in the INTEGRATIONS group and available on all four channels.
Open Flow Builder.
Add HTTP API: drag it from the palette, or pull a connector out of a port and choose HTTP API from the picker menu. Place it where you already have the inputs the call needs. An API that looks up an order by number has to sit after the block that collected the order number, not before it.
Click the block. The drawer is headed Configure HTTP API: "Link this step to an HTTP API integration to call external services."
Pick the connection from the HTTP API dropdown. It lists everything saved under Chatbot Manager β Integrations β HTTP API. (If yours is missing, Manage APIs opens the place to create a new API or refresh the list, with Create and Refresh buttons.)
Click Save Changes.
The node has one input, Message, and one output, Compose Next Message. There is no success or failure port, so you branch on the result afterwards with a Condition block.
A typical shape on WhatsApp:
Start Bot Flow with a trigger keyword and a title.
User Input Flow to collect whatever the call needs, saved to a custom field.
HTTP API to make the call.
Condition to branch on what came back: found or not found.
Text or Interactive to present the result.

7. Build the failure path
The Condition step above is the one people skip, and it is the one that matters. External systems return empty results and errors as a matter of course, and a flow with no branch for "nothing came back" goes quiet at the worst moment.
Put a Condition on the field the call was supposed to fill.
Send the empty case to a plain Text block with a way back in, for example:
Sorry, we could not load that just now. Type "menu" to start again.
That is one extra block, and it is the difference between a stalled conversation and a recoverable one.
8. Present the results
A single value: a Text block with the saved value inserted is enough.
A set of results: the Interactive block's List Messages port renders them as a tappable WhatsApp list, with rows generated from the saved response rather than typed by hand. See Displaying Dynamic Lists From an API.
Then click the blue Save at the top right of the canvas.
β Done whenβ¦
β The API shows a successful test in Last Response
β The flow returns the right answer on a real phone
β An empty or failed result reaches your fallback message
If something doesn't work
The test succeeds but the flow does nothing. Check the HTTP API screen's TOTAL CALL and TOTAL ERROR counters once the flow has been live for a while. No calls recorded by then means the block is never reached: a trigger or branching problem, not an API one. A zero immediately after a single test says nothing; the counters trail the traffic.
No variables detected ("No variables detected yet"). The dynamic field in your body is not being recognised. Re-check how it is written before touching anything else.
Works on sample data, fails on a real subscriber. A field you assumed is always populated is empty for some people. Add a Condition before the call.
Intermittent failures. Look at the endpoint's own rate limits. A broadcast that pushes hundreds of people into the same flow at once will hit them.
A 400 error that looks like an authentication failure. Sending JSON as form data is a common cause. Match the body format the receiving API documents.
Reference
The HTTP API table
The table lists what already exists, with columns API NAME, VERIFIED, ACTIONS, TOTAL CALL, TOTAL SUCCESS, TOTAL ERROR, CREATED AT and LAST CALLED AT. Those success and error counters are the fastest health check you have once a flow is live.
Request Data: for developers
Headers is where authentication goes. A Content-Type of application/json and an Authorization header carrying a bearer token or basic credentials cover most cases.
Body Data offers five formats: DEFAULT (on by default), FORM-DATA, X-WWW-FORM-URLENCODED, JSON and BINARY. Match whatever the receiving API documents. Sending JSON as form data is a common cause of a 400 that looks like an authentication failure.
Send only the headers the endpoint needs and only the body fields it reads, and use the method it expects rather than the preselected one. Keep credentials in a header, never in the URL.
The AI API Builder
The wizard has an assistant panel headed AI API Builder with a BETA badge: "Tell me what you want to build." Use Describe in English and it fills the fields in for you. Its own warning is the right instruction: "AI-generated configurations should be reviewed and tested before production use."
For developers, the same panel takes Paste cURL, Paste your api docs and Paste JSON.
Fetch once, then reuse
Every HTTP API block is a round trip to somebody else's server, and the wait lands on your customer. Call the endpoint once, save the answer into a custom field, and read from that field for the rest of the flow. Custom fields are managed at Subscriber Manager β Manage β Custom Fields and stay on the subscriber, so a value fetched in one branch is still there three blocks later.
The exception is anything the customer will hold you to. Re-fetch prices and stock levels immediately before the message that quotes them.
Google Sheet Data Fetch: the no-code alternative
Not every lookup needs an API. Google Sheet Data Fetch sits alongside HTTP API in the INTEGRATIONS group on all four channels and reads from a connected sheet: the right tool for a price list or an opening-hours grid that a colleague maintains by hand.
Connect the account at Connect Account β Connect Google, headed Google Integration. Click Sign in with Google, then Create New Sheet or Add Existing Sheet.
Go to Chatbot Manager β Integrations β Google Sheets, headed Google Sheet Data Fetch Campaigns.
On the Connect Your Google Sheet card ("Build & verify a Google Sheet connection"), fill in API Name and choose from Google Sheet List.
Click Verify Connection, then Create.
The block's own fields are covered in Google Sheets: Connect, Import and Use Data in Replies.
Sending data out
Two different mechanisms, and choosing the wrong one wastes a day.
Inside the flow. The Configure Reference panel on the Start Bot Flow node, and the Configure User-Input-Flow panel, both carry Forward Data to Webhook (placeholder
https://your-webhook-url.com) and Sync Data to Google Sheets. For "post the answers somewhere when this runs", that is the whole job: no separate integration needed.Across the bot. To push data out every time a chosen event happens rather than at one point in one flow, use Chatbot Manager β Automation β Outbound Actions. See Outbound Actions: Push Bot Data to Any CRM.
For inbound calls from a third party into Scope Wiser, the tool is Webhook Workflows (Chatbot Manager β Automation β Webhook Workflows). Different direction, different screen.
What to do next
Displaying Dynamic Lists From an API takes the response you just mapped and turns it into a tappable WhatsApp list: the most useful thing most flows do with API data.
Next: Displaying Dynamic Lists From an API
