Open/continue an Alza chatbot session
chat_sendStart a support conversation on Alza.cz by sending the user's first message along with page context to retrieve chat configuration, welcome text, and messaging options.
Instructions
Open or continue an Alza chatbot session via chatbotapi.alza.cz /v1/chat (row W18): returns the chat configuration (configId, teamName, welcomeText, messages, allowTextInput) and showChat. Use to start a support-style conversation with page context (product detail, checkout steps). Pass page_type per the 2026-09-09 capture: 1=product detail, 5=Order1, 6=Order2, 24=Order4; initial_input carries the user's first message. Session-scoped, visitor-keyed write — no account state and no token required (like web_add_to_cart). Example: chat_send({page_type: 1, initial_input: 'Is this in stock?'}).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| country | No | 2-letter country code, e.g. 'CZ'. | |
| referrer | No | Referrer URL for the chat context, if known. | |
| entity_id | No | Entity id for the page context, if known. | |
| page_type | Yes | Page context code: 1=product detail, 5=Order1, 6=Order2, 24=Order4 (2026-09-09 capture). | |
| seo_prefix | No | SEO prefix from the product page URL, if known. | |
| manufacturer | No | Manufacturer name for the product-detail context, if known. | |
| initial_input | No | The user's first message text (initialInput). | |
| commodity_code | No | Alza product code for the product-detail context (page_type 1). | |
| commodity_type | No | Commodity type id for the product-detail context. | |
| force_initialize | No | Force a fresh chat initialization instead of reusing the session. | |
| list_category_id | No | Product-context categories; the server requires the field — an empty array works without context. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| err | No | ||
| msg | No | ||
| data | No |