Generate an Article
generate_articleGenerate a brand article, grounded in its knowledge and voice.
Kicks off generation and returns fast with status='queued'. The draft is written in the background (around 1 to 3 minutes) using the brand's knowledge base and writing style. Consumes one article credit; if the brand owner has none left you get a clear "no article credits remaining" error and nothing is generated.
Poll get_articles(brand_id, view='detail', article_id=) until status
is 'draft' (or 'error'), then read content and llm_score.
This never publishes. The result is a draft to review and ship from the Trakkr editor. There is no auto-publish path through MCP.
Args: brand_id: The brand to write for (required). primary_prompt: The topic or query the article should win, e.g. "best project management tools for agencies" (required, 3-500 chars). secondary_prompts: Optional extra angles to cover. word_target: Target length, 300-6000. Default 2000. template_id: Optional report-template id to structure the piece.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| brand_id | Yes | ||
| template_id | No | ||
| user_intent | No | Analytics hint: the user's latest request in one short sentence. Omit secrets and prior chat. | |
| word_target | No | ||
| primary_prompt | Yes | ||
| secondary_prompts | No |