Automations
API call actions: connect your chatbot to your API
Let your AI chatbot call your own API mid-conversation — order status, account lookups, bookings. Inputs, {{variables}}, auth headers, and limits.
An API call action is an HTTP request the agent can make while chatting. You describe when to use it and what inputs it needs; the agent asks the visitor for anything missing, calls your API, and answers from the response. Add one under the agent's Build › Actions › Custom API call.
Settings
| Setting | Description |
|---|---|
| Name | A short name, e.g. “Look up order”. |
| When to use | Plain-language instructions, e.g. “Use when the customer asks where their order is.” |
| Inputs | Up to 10. Each has a name, type (text, number, or boolean), description, and whether it's required. |
| Method and URL | GET, POST, PUT, PATCH, or DELETE to an https:// URL. |
| Query params and headers | Up to 20 of each. |
| Body | JSON, up to 5,000 characters. Not sent for GET or DELETE. |
| Data access | Full response, or Limited to fields you list (dot paths like order.status, up to 30). |
Using inputs
Insert inputs with {{input_name}} in the URL, query params, headers, or body. In the URL they're URL-encoded. In the JSON body, a quoted "{{order_id}}" on its own becomes a typed value (a number stays a number); inside other text it's escaped safely.
GET https://api.example.com/orders/{{order_id}}?email={{email}}
Headers
Authorization: Bearer YOUR_API_TOKEN
Data access: Limited
order.status
order.tracking_url
order.estimated_deliveryTip
Use Limited data access so the agent only sees the fields it needs to answer. It keeps replies focused and avoids exposing internal data.
Authentication
Add a static header such as Authorization: Bearer … or X-Api-Key: …. OAuth isn't supported for API call actions — create a scoped, read-only token for Assistrio where you can.
Runtime limits
- Up to 10 actions per agent.
- 10-second timeout. Responses over 20 KB are rejected as an error and the agent gets no data — return a small response, or call a narrower endpoint.
- Requests come from
User-Agent: Assistrio-Action/1and only go to publichttps://hosts. Redirects aren't followed. When there's a body,Content-Type: application/jsonis added unless you set your own. - Every call is logged in the action's History (when, from where, inputs, result, and time). To see the full response, use Test response in the action editor.
Prefer a ready-made integration? Shopify, WooCommerce, Calendly, Cal.com, and helpdesks like Zendesk and HubSpot connect with sign-in, no API setup needed — see Integrations.
Was this page helpful?
Need help? Contact support — we reply within one to two business days.
