Skip to content

AI Actions

Give AI bots the ability to call external webhooks (Make, Zapier, n8n) or REST APIs mid-conversation and fold live results into replies.

Updated View as Markdown

AI Actions (/dashboard/{bot}/ai-actions) let your AI call external automations or REST APIs mid-conversation — to look up order status, check calendar availability, query a CRM, create a booking, or trigger a Zapier/Make/n8n scenario — and then speak directly about the result.

AI Actions work across:

  • Standalone AI Chat (Direct Prompt and Knowledge Base)
  • Flow Builder AI Assistant blocks (each block can allow All actions, Only selected, or None)

Creating an AI Action

Open Bot → AI Actions and click New Action (if the bot has no actions yet, you can also start from one of three built-in starter templates: Weather lookup (demo API), Make / Zapier lookup, or Background booking).

1. What it does

  • Name (required, max 80 characters): human-readable name used to generate the action’s tool key.
  • Working indicator text (max 80 characters, default "Working on it..."): animated status text shown in the widget while the action runs.
  • When should the AI use this? (required, max 2,000 characters): clear instructions telling the AI when to invoke the action and what information it must confirm with the visitor first.

2. Details the AI collects (Parameters)

Define up to 15 parameters that the AI gathers from the conversation before calling your endpoint:

Field Options / Limit
Name Parameter key (max 60 characters, e.g. email, date, order_id).
Type string, number, boolean, or choice list (enum, up to 25 allowed options).
Description Tells the AI what format to pass (max 400 characters, e.g. YYYY-MM-DD).
Required Whether the AI must collect this value before calling the action.

Automatic fill from Visitor Variables

If a parameter shares the exact name of a Visitor Variable whose source is Embed code (attribute), Page URL (page_url), or Page title (page_title), Aminos automatically fills that parameter for you so the visitor doesn’t have to repeat it. For security, URL query parameters (query) are never auto-filled into AI Actions.

3. Connection

Choose how Aminos calls your endpoint:

Best for Make, Zapier, n8n, Pabbly, or custom webhook receivers. Aminos sends an HTTP POST with a structured JSON envelope:

{
  "event": "ai_action.invoked",
  "action": { "name": "Book appointment", "tool_key": "book_appointment" },
  "run": {
    "id": "uuid",
    "callback_url": "https://your-platform/ai-actions/callback/uuid",
    "expires_at": "2026-11-23T12:45:00Z"
  },
  "params": { "date": "2026-11-25", "email": "alex@example.com" },
  "context": {
    "bot_id": 42,
    "variables": { "page_url": "https://example.com/pricing" },
    "transcript": []
  }
}

Best for REST APIs. Pick the HTTP method (GET, POST, PUT, PATCH, or DELETE) and enter the URL (up to 2,000 characters). You can embed parameter values directly in the URL path or query string using {param_name} placeholders — for example:

https://api.example.com/v1/orders/{order_id}

Every outbound request automatically includes:

  • X-Aminos-Run-Id
  • X-Aminos-Callback-Url
  • X-Aminos-Bot-Id
  • Plus up to 15 Custom headers you configure (such as Authorization: Bearer ... or X-API-Key).

4. Response handling

  • Instant (sync): Aminos waits up to your Timeout (1–30 seconds, default 20) for your server’s HTTP response and passes the body straight back to the AI to formulate its answer.
  • Background (async): Best for longer automations or tools like Zapier that acknowledge webhooks immediately and finish work later.
    • Aminos holds the initial reply for Hold the reply up to (1–30 seconds). If your automation POSTs to callback_url before that window closes, the AI includes the result in the first reply.
    • If your automation finishes later (any time within 30 minutes), POST your JSON result to X-Aminos-Callback-Url / run.callback_url. Aminos generates a follow-up AI reply in the background and delivers it to the visitor’s widget automatically.
  • Include recent conversation transcript in the payload: Optional toggle that attaches the last 20 messages to the webhook payload.

Testing, inspecting runs, and copying actions

  • Enable / Disable: Toggle any action on or off directly from its card without deleting it.
  • Test: Click Test on an action card, fill in sample parameter values, and run a live request. Aminos shows the HTTP status, duration, and the exact ai_sees payload passed to the model.
  • Runs: Click Runs to inspect the last 25 executions (status, surface, inputs, returned output, error message, duration, and follow-up text).
  • Copy from Another Bot: Click Copy from Another Bot at the top of the AI Actions page to reuse configured actions (including their headers and parameters) across bots you own.
Navigation

Type to search…

↑↓ navigate↵ selectEsc close