ReferencePremium
CoullWorks Blog for Magento 2 AI writer, import and Page Builder behaviour
How the AI Writer, the import and the Page Builder article section behave, with prompt and status names.
Updated 16 November 2026Back to the package pageBuy
AI Writer behaviour#
- Monthly spend cap: Checked before every provider call against estimates from the Price Table; a call that would pass it is refused with "This would go over the monthly AI spend cap..."; per store, calendar month; blank = no limit; the bulk queue stops at the cap.
- Price table: JSON per model: "in" and "out" per million tokens, "image" per picture, "default" for unlisted models; edited in Configuration > AI Writer > Price Table.
- Largest answer per step (tokens): Also the most a step can cost: the cap check assumes it is all used.
- Asynchronous steps: Long steps never run in a web request: queued on the MySQL queue (topic coullworks_blog.ai.step, consumer coullworksBlogAiStep); the wizard polls blog/ai/status; admin notice after 10 minutes waiting.
- Research rules: A source counts only if the provider's tools really returned that page; pin or drop sources; re-run; branch a run; every run is kept in AI Research History with tokens and estimated cost.
- Writing rules: Writer sees claims by id and source, never the quoted page text; answer validated against the block schema, retried once with the errors, invalid blocks dropped and listed; HTML sanitised; saved posts are Draft, flagged AI-assisted, with an "ai" revision.
- Image sizes and aspects: Aspect 16:9, 21:9, 3:2, 4:3, 1:1, 4:5, 9:16; Size 1K, 2K, 4K.
- Bulk queue CSV: Columns topic (required, max 500), audience (255), angle (2000), target_keyword (255), word_count, tone (64); max 500 rows; stored under pub/media coullworks_blog/ai_queue.
- AI disclosure: Optional line on AI-assisted posts: Configuration > Show an AI Disclosure on AI-assisted Posts, text Disclosure Line (default "This article was written with the help of AI and checked by our team."), per post override Show AI Disclosure; block CoullWorks\Blog\Block\Content\AiDisclosure (already in the post layout).
AI Writer prompts#
- Research prompt: Instructs the model to search and read the web and return sources and claims. Store voice notes (Configuration > AI Writer > Store Voice Notes) are added after the rules; developers can append via event coullworks_blog_ai_prompt_build_before.
- Writer prompt: Writes the article as cwb-blocks/1 blocks, with title, meta title, meta description, 3-5 takeaways, 2-5 FAQs, claims_used ids; citations by claim id; no images/banners/videos/embeds/products/CTAs/FAQ/takeaways blocks; max two callouts; 700-1000 words default. Store voice notes (Configuration > AI Writer > Store Voice Notes) are added after the rules; developers can append via event coullworks_blog_ai_prompt_build_before.
- Refresh prompt: Used by Refresh with AI to suggest block-level changes. Store voice notes (Configuration > AI Writer > Store Voice Notes) are added after the rules; developers can append via event coullworks_blog_ai_prompt_build_before.
- Image prompt: Rules for the picture generation step (no voice notes appended). Store voice notes (Configuration > AI Writer > Store Voice Notes) are added after the rules; developers can append via event coullworks_blog_ai_prompt_build_before.
- Humanizer writing rules: CoullWorks house writing rules appended to research, writer and refresh prompts. Store voice notes (Configuration > AI Writer > Store Voice Notes) are added after the rules; developers can append via event coullworks_blog_ai_prompt_build_before.
AI Writer run statuses#
- draft: Run/queue status "draft". Queue row actions apply to queued and paused briefs; Open research is offered on done.
- queued: Run/queue status "queued". Queue row actions apply to queued and paused briefs; Open research is offered on done.
- running: Run/queue status "running". Queue row actions apply to queued and paused briefs; Open research is offered on done.
- done: Run/queue status "done". Queue row actions apply to queued and paused briefs; Open research is offered on done.
- failed: Run/queue status "failed". Queue row actions apply to queued and paused briefs; Open research is offered on done.
Import behaviour#
- Import safety rules: Always dry-run first; live run needs the "I have a backup of the database" box; scripts, event handlers and javascript: URLs are removed from imported HTML and logged; every old address gets a 301 (not 308); redirects are created when the old site was on this domain, else a redirect map CSV is exported; disable the old blog module before going live (its router may answer old addresses first); jobs started in admin are queued for cron (coullworks_blog_import_run, every minute, one at a time).
Import job statuses#
Applies to every row below: CLI exit code: Done 0, Done with errors 1, Refused 2.
- Queued: Job status "Queued".
- Running: Job status "Running".
- Done: Job status "Done".
- Done with errors: Job status "Done with errors".
- Refused: Job status "Refused".
- Failed: Job status "Failed".
Page Builder content types used in articles#
Besides the 17 CoullWorks content types, the article block schema accepts these Magento content types. Their own forms belong to Magento.
- HTML content type accepts Section as parent: Page Builder's native HTML type lists parents explicitly, so the Article Section is added as an allowed parent. Other native types (Text, Heading, Image, Divider, Row, Column, Tabs, Buttons, Banner, Slider, Map, Products, Block, Video...) accept Section through the Section's children policy "allow".
- Text (Magento Page Builder native type): Native Page Builder type that the article block schema (cwb-blocks/1) parses, validates and renders in addition to the 17 CoullWorks types. Fields in the schema: html (rich text). The native type's own Page Builder form (including its advanced/appearance sections) is Magento's and is not defined by this module.
- Heading (Magento Page Builder native type): Native Page Builder type that the article block schema (cwb-blocks/1) parses, validates and renders in addition to the 17 CoullWorks types. Fields in the schema: level h1-h6 (default h2), text max 300. The native type's own Page Builder form (including its advanced/appearance sections) is Magento's and is not defined by this module.
- HTML (Magento Page Builder native type): Native Page Builder type that the article block schema (cwb-blocks/1) parses, validates and renders in addition to the 17 CoullWorks types. Fields in the schema: html. The native type's own Page Builder form (including its advanced/appearance sections) is Magento's and is not defined by this module.
- Divider (Magento Page Builder native type): Native Page Builder type that the article block schema (cwb-blocks/1) parses, validates and renders in addition to the 17 CoullWorks types. Fields in the schema: no settings. The native type's own Page Builder form (including its advanced/appearance sections) is Magento's and is not defined by this module.
- Image (Magento Page Builder native type): Native Page Builder type that the article block schema (cwb-blocks/1) parses, validates and renders in addition to the 17 CoullWorks types. Fields in the schema: src (required), alt max 300, title max 300. The native type's own Page Builder form (including its advanced/appearance sections) is Magento's and is not defined by this module.
- Row (Magento Page Builder native type): Native Page Builder type that the article block schema (cwb-blocks/1) parses, validates and renders in addition to the 17 CoullWorks types. Fields in the schema: container. The native type's own Page Builder form (including its advanced/appearance sections) is Magento's and is not defined by this module.







