# AI assistant answers

> Ask an opted-in Quickchat Agent through its public answer URL, using its existing Knowledge Base and normal message allowance.

The early-access answer interface lets external clients ask an existing Quickchat Agent with anonymous visitor permissions. An administrator must first enable AI access in **Channels → Your Website → Install**. It is independent of the Widget and Chat Page access settings. See [website installation](/docs/channels/website#ai-assistant-access).

## Discovery

```http
GET https://app.quickchat.ai/ask/AGENT_ID/
GET https://app.quickchat.ai/ask/AGENT_ID/schema/
```

Use the same public Scenario ID as the website snippet. No secret API key belongs in this URL. Discovery returns the agent's public widget name, website link when configured, request instructions and existing conversation starters when available. The schema describes the question input. These reads do not create an agent conversation or consume message credits.

## Ask a question

```http
GET https://app.quickchat.ai/ask/AGENT_ID/?q=Do%20you%20ship%20to%20Germany%3F&format=json
```

```http
POST https://app.quickchat.ai/ask/AGENT_ID/
Content-Type: application/json

{"q":"Do you ship to Germany?"}
```

Questions must contain 1–500 characters after surrounding whitespace is removed. URL-encode GET input once. Placeholder and numeric-only inputs are rejected. POST accepts JSON and returns JSON. GET supports `format=html`, `format=md` and `format=json`; without a format, it negotiates from the request headers. An empty GET returns discovery in every format.

A successful JSON answer contains `question`, `answer`, `sources`, `request_id`, `conversation_id`, `version`, `status`, `answered_at`, `cached`, `ask_url` and `answer_kind`. Sources identify supplied web pages linked in the answer; the list can be empty. Each generated answer uses the existing Agent and message allowance and creates a conversation in the Inbox. This initial customer interface does not share cached answers across requests, so repeated questions can consume additional credits.

## Access and limits

AI access is off by default. Knowing a Scenario ID alone does not enable it. An administrator must explicitly enable this public channel. This does not make private widget configuration, messaging or WebSocket sessions public. If website chat is disabled, an AI-only installation uses public Ask discovery without opening those private interfaces.

Turning off AI access stops new answer and discovery requests at the server. Existing website IP restrictions apply. A disabled, missing or unsupported Agent returns `404`; a rejected IP returns `403`. Invalid input returns `422`. Answer requests are limited to 5 per minute per visitor IP for each Agent and 30 per minute per Agent overall; rate limits return `429` with `Retry-After`. Exhausted message allowance or an unavailable answer returns `503`.

This channel uses the existing Agent's Knowledge Base and instructions. It does not accept verified customer identity, account credentials or conversation continuation parameters. Connected HTTP, MCP, Shopify, lead-gathering and handoff Actions are unavailable through this answer interface. Existing website chat retains its ordinary behavior.

## Request evidence

Conversations from answered questions retain the existing assistant evidence fields, including declared user agent, transport and request/conversation identifiers. The optional `source` value records an unverified entry point: `link`, `footer` or `example` for published links, and `api` or `browser_tool` for POST clients. A declared provider or entry point is not proof of an organic user conversation.

Recognized background, search-indexing and training crawlers receive discovery on GET, including question URLs, without generating an answer or adding a billable conversation. Discovery is crawlable; generated answer responses are not indexable. Controlled tests, crawler reads, published examples and potentially organic questions should be assessed separately.
