Write the article for a content brief
create_articleHas PromptEye write the article for a content brief: the brief's title and H2/H3 outline, filled in with the project's brand description and knowledge base, in the language of the project's market.
Instructions
Has PromptEye write the article for a content brief: the brief's title and H2/H3 outline, filled in with the project's brand description and knowledge base, in the language of the project's market. Call this when the user wants the article itself written, once get_content_brief reports the brief ready; a brief that is still processing or failed is refused. Before calling it, show the user the brief from get_content_brief — its title and H2/H3 outline — and wait for their explicit yes; a request to write an article is not that yes, since the outline decides what gets written and the article uses the plan's allowance.
PromptEye generates content as well as measuring visibility, and the two make one loop: track the prompts and how often the assistants name the brand on them, generate an article that targets a prompt where the brand is weak, publish it, then measure whether that prompt's visibility and citations move. Generation starts from a content brief: PromptEye fans the target prompt out into the phrases people ask around it, keeps the ones that belong in this article, sets aside the ones that deserve an article of their own, and writes a title and an H2/H3 outline from them. create_content_brief orders one and get_content_brief reads it. create_article then writes the article from a ready brief, from the brand description, the knowledge documents picked for it and the chosen writing style; get_article reads its text and list_articles lists the project's articles, also those added in the app under Content (https://app.prompteye.com/content). Publishing the page is done on the user's own site; publish_article then records the URL it went live at, and requesting indexing and following citations happen in the app. A generated article is a draft to review, and neither it nor its indexing guarantees that an assistant will cite it. Guides: https://app.prompteye.com/help/content/ and https://app.prompteye.com/help/content/article-workflow/.
Requesting it is instant; writing takes a few minutes. The article comes back processing — read it with get_article until status is no longer processing. A brief has one article: calling this again for a brief whose article is already written rewrites it and replaces the previous text, and it is refused while the article is still being written. Each written article counts against the plan's monthly article limit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| briefId | Yes | Id of the brief to write the article for, as create_content_brief reports it. | |
| confirmedByUser | Yes | Must be true, and only set it once the user has seen the brief's title and outline and explicitly agreed in this conversation to have this article written. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| error | Yes | Why the last generation failed. null unless status is error; content then still holds the previous version, if there was one. | |
| title | Yes | ||
| prompt | Yes | The target prompt the article was written for. | |
| source | Yes | generated_article when PromptEye wrote it from a brief, uploaded_docx or pasted when it was added in the app. | |
| status | Yes | processing while PromptEye writes it, then draft (the text is in content) or error. ready, published and tracked are later steps the team moves it through in the app. | |
| briefId | Yes | The content brief it was written from. null = text added to the app by hand. | |
| content | Yes | The article text in Markdown, with ## and ### headings. null until it is written. | |
| createdAt | Yes | When the article was created, ISO 8601 in UTC. | |
| projectId | Yes | ||
| updatedAt | Yes | When the article last changed, ISO 8601 in UTC. | |
| publishUrl | Yes | Where the article was published. null until it is. | |
| publishedAt | Yes | When it was published, ISO 8601 in UTC. null until it is. |