Skip to content

Integrations

API — your own AI agent

For developers — your own set of AI agent tools, calls to your server and your own prompt.

This tab is for those who have a developer and their own systems. Here you assemble the AI agent yourself: pick built-in tools, connect your server and write your own prompt. A regular owner doesn't need it — the same is set up without programming in Settings → System. This feature is in beta.

Where: Integrations → API. Saved with the Save “API” tab button at the bottom.

How it works

The main toggle is Control the agent from here.

OnOff
the agent works by this tab: its built-in tools, your APIs and its promptthe agent works by the System settings: the system prompt and toggles

Turning it on doesn't erase the System settings: turn it off and the agent goes back to them as they were. Channels, company details, time zone and MCP services work in both modes.

Built-in tools

Everything the agent can do on its own: catalog search, cart, placing and cancelling orders, appointments, bookings, calling a manager and more. Each has a toggle and a "reads" or "changes data" label. Until you configure the tab, all are off — turn on the ones you need.

A tool that is off doesn't exist for the agent. Write in the tab's prompt what to answer when there's no tool for a request.

Custom APIs

Endpoints on your server that the agent calls as tools: stock in your warehouse, order status in your system, delivery cost. Up to twenty tools. + Add tool:

FieldWhat to enter
Name for the agentLatin letters, digits and _, e.g. check_stock
Titlefor people: in the list and on the customer's confirmation card
Description for the agentwhat the tool is for and when to call it — the agent decides when to use it from this text
Method and URLGET, POST, PUT, PATCH or DELETE; https:// URLs with a domain name only
Parameterswhat the agent passes: name, type (string, number, integer, boolean), description, required or not
Authorization header and valuee.g. Authorization and Bearer …; the value is stored encrypted
Changes databefore the call, the customer sees a card with the parameters and confirms with "yes"
Share customer phoneoff by default — your server gets a placeholder instead of the number

Check sends a live request with the entered values without saving. Save tool saves it right away.

The request your server receives

  • A parameter in curly braces is substituted into the path: https://api.example.com/orders/{order_id}.
  • Other parameters go into the query string for GET and DELETE, and as a JSON body with Content-Type: application/json for POST, PUT and PATCH.
  • Headers: Accept: application/json, User-Agent: WameUp-Agent/1.0 and your authorization header.
  • An optional parameter the agent didn't fill in isn't sent at all.

Example: tool check_stock, method GET, URL https://api.example.com/stock/{sku}, parameter city. The agent called it with sku = FL-2101, city = Almaty:

GET /stock/FL-2101?city=Almaty HTTP/1.1
Host: api.example.com
Accept: application/json
User-Agent: WameUp-Agent/1.0
Authorization: Bearer <your key>

What the response should look like

  • JSON, no longer than 6,000 characters — longer responses are cut.
  • A response within 8 seconds — otherwise the agent gets "the server didn't respond".
  • 2xx codes mean success; anything else is an error the agent will report to the customer. Redirects (3xx) aren't followed — use the final URL.
{
  "sku": "FL-2101",
  "in_stock": 7,
  "city": "Almaty"
}

For a Changes data tool, the customer sees the message field of the response as the result of the action:

{
  "ok": true,
  "message": "Request #1842 accepted, a manager will call you within an hour."
}

No message field — the customer sees a short "Done."

AI agent prompt

Replaces the system prompt entirely: role, tone, scenario and what to do when there's no suitable tool. Start from the system one copies the current system prompt here. The agent gets the rules for using enabled built-in tools by itself — no need to rewrite them into the prompt.

Security

  • https:// URLs with a domain name only; IP addresses, internal hosts and platform addresses are rejected.
  • The key from the authorization header is stored encrypted and is never shown in the panel again.
  • The customer's phone reaches your server only if you turned on Share customer phone.