Reference
Articles
content_write_article writes a researched, SEO-structured article for your site in 2 to 4 minutes. It keeps being written on SnowAI if the chat closes.
How it works#
- The call always asks for approval first: it answers 428 with a
confirmation_token, and the agent asks you. - With the token, the call holds its price and starts the article. It waits up to
wait_seconds(default 40, at most 45). - If the article is done by then, the answer has its Markdown and the price is charged.
- If not, the answer is
status: "writing"with anarticle_idand HTTP 202. Nothing is charged yet. content_get_articlereturns the article later. It is free, andwait_secondsmakes it wait.
The article is charged once, when it is done. An article that fails, or takes longer than 30 minutes, costs nothing. You can follow it on the articles page.
Price#
The price depends on the length:
| Length | Words | Price |
|---|---|---|
short | 800 to 1,000 | 1,000 credits |
medium | 1,800 to 2,000 | 2,000 credits |
long | 2,800 to 3,000 | 3,000 credits |
Calls#
content_write_article
{
"name": "content_write_article",
"arguments": {
"site": "acme.com",
"title": "How to choose a CRM for your startup",
"length": "medium",
"type": "guide",
"instructions": "Lead with the three questions to ask before a demo."
}
}content_get_article
{
"name": "content_get_article",
"arguments": {
"article_id": "art_01939f2e-6b3c-7a41-9d58-3e7c1b0a4f26",
"wait_seconds": 30
}
}What an article looks like#
| Field | Meaning |
|---|---|
article_id | The article, as it appears on the articles page. |
status | writing, done or failed. |
phase, progress | What the writer is doing, and 0 to 100. |
title, word_count | The title and the length. |
markdown | The article. Only when done. |
meta | The meta title and description. |
article_url | The article's page in your dashboard. |
message | What to do next, while it is writing or after it failed. |
Rules#
- The same arguments within 30 minutes return the article already being written, with nothing more charged. Pass
fresh: truefor a new one. - 3 articles can be written at once per organization. One more answers 429
rate-limited. - The
brandyou send is saved for the site and reused next time. - Over REST, send
Accept: text/event-streamto stream progress to the end. See Tools. GET /articlesandGET /articles/<id>read them over REST. See REST API.