
Add HTTP API

Customer: Where is my order? Bot: Please enter your Order ID. Customer: ORD12345The bot sends an HTTP request to the store’s Order API and gets back:
Your order has been Shipped via BlueDart. Tracking ID: BD987654321Here’s the full four-step setup that makes that possible:
API Details
Enter the API Name (e.g.
Get Order Details), Method (e.g. POST), and
API Endpoint URL (e.g. https://api.mystore.com/orders/details).Request Data
Choose the request Body format — Default, Form Data,
x-www-form-urlencoded, JSON, or Binary.Use a dynamic variable for whatever the customer typed:If the customer enters
ORD12345, the actual request sent becomes
{ "order_id": "ORD12345" }.Add whatever else the API needs:- Headers — e.g.
Authorization: Bearer YOUR_ACCESS_TOKEN,Content-Type: application/json - Option Data — extra parameters some APIs require, e.g.
language = en,store = bangalore - Cookies — only if the API needs session cookies for authentication; leave empty otherwise
Test & Verify
Enable Use Sample Data (Recommended) so detected variables get filled with sample
values automatically, then click Send Test Request. A working API returns something
like:Don’t move on until this test succeeds — an untested endpoint can fail silently mid-flow
later.
Response Mapping
Map each field in the response to a variable the bot can use anywhere:
The bot can now reply with any combination of these:which the customer sees as:
| API Response | Variable |
|---|---|
status | {{status}} |
courier | {{courier}} |
tracking_id | {{tracking_id}} |
delivery_date | {{delivery_date}} |
Your order is Delivered. Courier: BlueDart Tracking ID: BD987654321 Delivered On: 28 June 2026
AI API Builder (Beta)
Instead of manually filling in every field, the AI API Builder panel next to the form can generate the whole configuration for you from one of:- Describe in English — e.g. “I have an Order API that accepts an Order ID and returns the order status, courier name, tracking ID, and delivery date.”
- Paste cURL
- Paste your API Docs
- Paste JSON
Complete workflow
Use cases
- CRM integration — look up or update a customer record.
- Order tracking — the walkthrough above.
- Payment verification — confirm a transaction before continuing a flow.
- Customer lookup — pull account details by phone number or email.
- Booking systems — check availability or confirm a reservation.
- ERP / inventory integration — check stock before promising a delivery date.
Frequently asked
How do I connect my store's own Order API to my WhatsApp bot?
How do I connect my store's own Order API to my WhatsApp bot?
Use Chatbot Manager → Integrations → HTTP API → Create: enter the endpoint and method, configure the
request body with a dynamic variable like
{{order_id}}, test it, then map the response
fields (status, courier, tracking ID, etc.) to bot variables you can use in a reply.Can I connect an API without manually configuring every field?
Can I connect an API without manually configuring every field?
Yes — use the AI API Builder (Beta) panel: describe the API in plain English, paste a
cURL command, paste its docs, or paste raw JSON, and it generates the endpoint, headers,
body, variables, and response mapping for you. Always test the result before using it live.
My HTTP API request needs authentication — where does that go?
My HTTP API request needs authentication — where does that go?
Add it under Headers in the Request Data step — most APIs expect something like
Authorization: Bearer YOUR_ACCESS_TOKEN. If the API instead uses session cookies, use the
Cookies section.
