Quickstart: Connect your first API tool
Goal: Assistant fetches live data from your API (e.g. order status).
Prerequisites
Section titled “Prerequisites”- Starter plan or above (API Request tools)
- An HTTP API you can call with API key or Bearer token
- Assistant already created
Step 1 — Add credential
Section titled “Step 1 — Add credential”- Go to Credentials → Create.
- Choose auth type (Bearer token or API key).
- Paste your secret — it is stored encrypted and never shown in chat.
Step 2 — Create tool
Section titled “Step 2 — Create tool”- Go to Tools → Create → API Request.
- Name:
get_order_status(snake_case — used by AI). - Description: Look up shipping status for a customer order. Use when the visitor provides an order number.
- URL:
https://api.yourstore.com/orders/{order_id} - Method: GET
- Path parameter:
order_id(string, required) - Attach credential.
- Save and Test with a sample order ID.
Step 3 — Attach to assistant
Section titled “Step 3 — Attach to assistant”- Open assistant → Tools.
- Enable tools and select
get_order_status. - Save.
Step 4 — Test in chat
Section titled “Step 4 — Test in chat”Ask: “Where is order #12345?” — assistant should call the tool and return live data.