Change a page's chat settings
update_chat_settingsSwitch chat on or off, choose who answers, and set the questions and aiContext ("What the AI should know"). Send only what should change; the rest keeps its value. The chat also needs a chat block on the page (put_page) before visitors see it. A mode where the owner answers needs a Telegram group linked first: call connect_telegram. Write aiContext from what you know about the business that the page does not say, and show it to the person before saving.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | "ai": the AI answers every chat, and marks the ones it cannot answer for the owner; "ai_then_owner": the AI answers first and hands the chat to the owner in Telegram when the visitor asks for a person or it cannot help; "owner": every chat goes straight to the owner in Telegram. The last two need a Telegram group: call connect_telegram first. | |
| enabled | No | Whether chat is on. Off hides the chat on the published page. | |
| business | Yes | The page handle, as it appears in keepp.link/<handle>. | |
| aiContext | No | "What the AI should know": everything the AI should know that is NOT on the page, such as policies, delivery, the questions people ask most, and the tone to use. The AI already knows everything on the published page, so do not copy the page in. Up to 1500 words. Send the whole text; it replaces what is there. | |
| questions | No | Asked after the email, before the first message, such as which product or which dates. Send the whole list; it replaces the one there. | |
| verifyEmail | No | Whether a visitor confirms their email with a code before the chat starts. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| live | Yes | Whether visitors can use the chat now. | |
| mode | Yes | ||
| enabled | Yes | ||
| aiContext | Yes | "What the AI should know". | |
| questions | Yes | ||
| verifyEmail | Yes | ||
| telegramGroup | No | The linked group's name, when it has one. | |
| telegramLinked | Yes | ||
| chatBlockPublished | Yes | Whether the published page has a chat block. |