Skip to main content
The public chat endpoint is the only public agent surface on Animam. Browsers (via the widget) and external AI agents both go through it. The chatbot owns all tools — RECOMMEND_PRODUCT, RECOMMEND_PRODUCT, SUBMIT_FORM, BOOK_MEETING, COLLECT_PAYMENT, etc. — and orchestrates them on the caller’s behalf. There is no separate tools/list endpoint exposed to anonymous callers.

POST /chat/

Auth: none required. Origin/widget-key gates apply if the tenant has them configured. Plan must include the widget capability.

Request body

Headers

Response — JSON envelope (default for agents)

When X-Agent-Model is present and stream is not explicitly set, the API returns a single JSON document.
The HTTP response also carries X-AI-Generated: true (AI Act Art. 50 transparency).

Response — SSE stream (default for browsers)

When stream: true (the default for human visitors), the API returns Server-Sent Events.
The terminal done event carries all the envelope fields shown in the JSON shape (including toolExecutions when the caller is an agent).

Errors

Rate limits

Per-IP dual window: 20 messages / minute + 200 messages / hour. Exceeded calls return HTTP 429.

Quick examples

Agent-to-agent (Python)

Streaming (JavaScript widget)

See also

Agent access guide

Full agent-to-agent walkthrough

Tools (concept)

The 15 tool types the chatbot can invoke