Draft a page for the chat
draft_pagePrepares a page the chat answers from (a title and the text), optionally as the answer to one unanswered question. Nothing is published: review_url opens the dashboard's page editor filled in, where the person checks it and saves it to publish. The draft link lasts 7 days. Needs the conversations permission and the store's switch for AI assistants in Settings > Security, and works only for stores the person owns.
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": {
"store_id": "<store_id>",
"title": "<title>",
"body": "<body>"
},
"name": "draft_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | The page's text, plain, with the facts the shop gave. | |
| title | Yes | ||
| language | No | The page's language, e.g. 'en'. | |
| store_id | Yes | The store's store_id (not its name). | |
| question_id | No | The unanswered question it answers; saving the page marks it resolved. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| saved | Yes | ||
| store_id | Yes | ||
| review_url | Yes | ||
| expires_in_days | No |