Set site chat
set_site_chatChange the site's chat bot settings; only the fields you pass change. The bot answers from the published pages and public collections and saves leads to Form Submissions as "Chat". Visitors see it only where the page has an AgentFloatingBubble (site-wide) or AgentChat node, and only while the owner has AI credits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Site id. | |
| enabled | No | Turn chat on or off. | |
| greeting | No | First message visitors see. | |
| leadFields | No | Details to collect before saving a lead. Must include email or phone. | |
| notifyEmail | No | Extra address emailed for each lead. Empty stops. | |
| instructions | No | Owner guidance: tone, what to push, what to avoid. Empty clears. | |
| assistantName | No | Name shown in the chat header. | |
| leadCollectionSlug | No | Also save each lead as a row in this collection. Empty stops. |