Set up a website's AI agent
update_ai_agentTurns a website's AI agent on or off and sets what it knows. A new source_url is read again within a minute (knowledge.refreshing), and every night; refresh: true reads it again now. Fails with plan_required when the account cannot use the agent.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"site_id": "<site_id>"
},
"name": "update_ai_agent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| enabled | No | Let the agent answer visitors. | |
| refresh | No | Read source_url again now. | |
| site_id | Yes | The site's id (see list_sites). | |
| source_url | No | The one address the agent reads: the website (e.g. https://example.com), its sitemap, or a product feed. | |
| instructions | No | Notes the agent must follow and that win over the website: opening hours, delivery, returns, tone (5,000 characters max). |