Generate article
generate_articleWrite a new AI article for a keyword. It uses the same research-and-cite writer as Autopilot: real sources, links only to pages that exist, a closing call to action, and Article and FAQ schema. This spends workspace credits (1 for short, 2 for medium, 3 for long, 4 for comprehensive; check get_plan_and_credits first). The article is generated in the background and is NOT published: call publish_article for that. Retries with the same idempotency_key never spend twice.
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": {
"keyword": "<keyword>",
"idempotency_key": "<idempotency_key>"
},
"name": "generate_article"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tone | No | ||
| length | No | short 1,200-1,600 words, medium 1,600-2,400 (default), long 2,400-3,200, comprehensive 3,200-4,200 | |
| keyword | Yes | The topic or search keyword | |
| language | No | ||
| article_type | No | auto (default, chosen from the keyword), how_to, explainer, comparison, reference or listicle | |
| integration_id | No | A connected CMS in this workspace, used for internal links and later publishing | |
| idempotency_key | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| article | Yes | ||
| next_step | No | ||
| credits_spent | No | ||
| already_existed | No |