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

SettingDescription
NameA short name, e.g. “Look up order”.
When to usePlain-language instructions, e.g. “Use when the customer asks where their order is.”
InputsUp to 10. Each has a name, type (text, number, or boolean), description, and whether it's required.
Method and URLGET, POST, PUT, PATCH, or DELETE to an https:// URL.
Query params and headersUp to 20 of each.
BodyJSON, up to 5,000 characters. Not sent for GET or DELETE.
Data accessFull 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.

Example
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_delivery

Tip

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/1 and only go to public https:// hosts. Redirects aren't followed. When there's a body, Content-Type: application/json is 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.