Platform
Chatbot Builder Bulk Messaging Team Inbox Mini CRM API & Webhooks AI Integration WhatsApp Flows
Industries
E-commerce & D2C Real Estate Education Healthcare Finance & BFSI Logistics Hospitality Retail
Integrations
Learn
Learning Hub Help & Docs Connect Guides Automation Codex Blog Message Templates
Pricing Get Started →
HomeHelp & DocsBot Builder › Make an External API call from a bot flow
Bot Builder

Make an External API call from a bot flow

The External API Call block lets your bot fetch or send data to any REST API mid-conversation. Use this to look up order status, check booking availability, retrieve customer data, or write to an external system — without leaving WhatsApp.

Set up the External API Call block

1
Go to Chatbot → Create Bot Flow and add your trigger.
2
Add any Ask a Question blocks needed to collect input from the user (for example, a booking ID or phone number).
3
Add a node → Automation App → External API Call.
4
Select the request method: GET for fetching data, POST for sending or creating.
5
Enter the API URL.
6
Add Headers as needed (e.g., Content-Type: application/json, Authorization: Bearer TOKEN).
7
For POST requests, set Body Type to JSON and enter the request body. Use {{{{variable_name}}}} to insert values from earlier bot questions.
8
Click Run to test the API call and see the response.
9
Click Save to confirm the block.
10
Map response fields to Bot Fields so you can use them in later messages.
11
Add a Send Message block that references the mapped fields to display results to the user.
12
Save and enable the workflow.
Using variables in the request body

Insert values collected earlier in the bot (from Ask a Question blocks) into your API request by wrapping the field name in double curly braces.

{ "booking_id": "{{booking_id}}", "phone": "{{whatsapp_number}}" }
Authentication

If your API requires authentication, add it as a header: Authorization with value Bearer YOUR_TOKEN. Never hardcode live credentials into a shared bot — use environment-specific tokens.

For a deeper guide to API integration including authentication patterns and error handling, see the External API Request step guide.

Was this helpful? If you are stuck, message us and a real person will help — the only platform that answers you live on WhatsApp.

Ask us on WhatsApp
Related guides
1