Skip to content

ReferenceArticles

Docs

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#

  1. The call always asks for approval first: it answers 428 with a confirmation_token, and the agent asks you.
  2. With the token, the call holds its price and starts the article. It waits up to wait_seconds (default 40, at most 45).
  3. If the article is done by then, the answer has its Markdown and the price is charged.
  4. If not, the answer is status: "writing" with an article_id and HTTP 202. Nothing is charged yet.
  5. content_get_article returns the article later. It is free, and wait_seconds makes 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:

LengthWordsPrice
short800 to 1,0001,000 credits
medium1,800 to 2,0002,000 credits
long2,800 to 3,0003,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#

FieldMeaning
article_idThe article, as it appears on the articles page.
statuswriting, done or failed.
phase, progressWhat the writer is doing, and 0 to 100.
title, word_countThe title and the length.
markdownThe article. Only when done.
metaThe meta title and description.
article_urlThe article's page in your dashboard.
messageWhat 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: true for a new one.
  • 3 articles can be written at once per organization. One more answers 429 rate-limited.
  • The brand you send is saved for the site and reused next time.
  • Over REST, send Accept: text/event-stream to stream progress to the end. See Tools.
  • GET /articles and GET /articles/<id> read them over REST. See REST API.