GuidePremium
AI queue, bulk drafts in CoullWorks Blog for Magento 2
How to queue many topics at once for the AI writer, the CSV columns, every queue column and status, the Pause, Resume and Cancel actions, and how cron processes the queue, retries and stops at the spend cap.
Updated 17 November 2026Back to the package pageBuy
The AI queue writes drafts for a list of topics without you stepping through the wizard. It lives at Content, CoullWorks Blog, AI Queue and needs the AI Queue permission. It needs a provider key and cron. It does not use the coullworksBlogAiStep consumer: the queue's own cron job does the work.
What a queued brief does#
For each brief the cron job runs research, outline and write in one go, then saves a draft. There is no step where you edit anything and no pictures are drawn. Each draft is a normal draft post, flagged as AI-assisted, in the store you chose. Review every one before publishing.
A queued brief uses the settings under Stores, Configuration, CoullWorks, Blog, AI Writer, not choices you make per brief:
- Provider for Bulk Writing and that provider's Default Text Model.
- Bulk Queue Concurrency, how many briefs one cron run starts. Default 1.
- Bulk Queue Attempts, how many tries a brief gets. Default 3.
- The monthly spend cap.
The AI Queue screen#

The New briefs* form sits above the queue grid. Add to queue is at the top right of the page. The five rows are sample data.*
Adding briefs#
Topics, one a line#
- Type: multi-line text, optional.
- What it does: each non-empty line becomes one brief with that line as its topic and nothing else. A line over 500 characters is cut.
Or a CSV file#
- Type: file upload, optional. Choose Upload and pick a CSV file.
- First line: column names, "The first line names the columns: topic, audience, angle, target_keyword, word_count, tone. Only topic is required."
- Rules: a
topiccolumn must exist. Names are not case sensitive. Other columns are optional and follow the same limits as the brief:word_countis a whole number from 100 to 10000. - Row limit: the first 500 rows are queued at a time.
- Bad rows: a row with an empty topic or a bad length is skipped and reported as "Skipped: line N: ...". The other rows are still queued.
You can fill both the list and a file. Both are added.
Store#
- Type: drop-down of store views.
- What it changes: the store the drafts are saved to, and whose cap and voice notes apply.
- Help text: "Drafts are written by cron, one after another, and stop when the monthly spend cap is reached. Nothing is published."
Add to queue#
- Enter topics, upload a CSV, or both.
- Choose the Store.
- Choose Add to queue at the top right.
- A message reads "N brief(s) were queued. They are written by cron, one after another." Skipped lines follow as warnings. With nothing entered you get "Add some topics or choose a CSV file."
New briefs are due at once. The next cron run of the queue picks them up.
The queue grid#
| Column | What it shows | Filter |
|---|---|---|
| ID | The queue item number. | Number range |
| Topic | The brief's topic. | Text |
| Status | See below. | Text |
| Attempts | How many times cron has tried it. | None |
| Scheduled | When it becomes due. A retry moves this later. | Date range |
| Last error | The last failure, up to 1,000 characters. | None |
| Post | The title of the draft it made. | None |
| Status | Meaning |
|---|---|
queued | Waiting for cron. |
paused | Held by you. Cron skips it. |
running | Being written now. |
done | A draft was saved. |
failed | It used all its attempts. |
cancelled | Stopped by you. It will not be written. |
Pause, Resume, Cancel and Open research#
Row actions#

The row menu of a paused brief offers Resume* and Cancel.*
The menu shows only what makes sense for the row's status:
- Pause: for
queuedbriefs. - Resume: for
pausedbriefs. It goes back toqueued. - Cancel: for
queuedandpausedbriefs. It asks "Cancel this brief? It will not be written." - Open research: shown on
donerows. It opens the run in the wizard, where you can read its sources. The drafted post is linked in the Post column.
A running, failed, done or cancelled brief cannot be paused or cancelled. Re-queue a failed topic by adding it again.
Mass actions#

Two rows selected and the Actions* menu open.*
Tick rows, open Actions and choose Pause, Resume or Cancel. Cancel asks "Cancel the selected briefs? They will not be written." A mass action applies only to rows in a status it fits and skips the others.
How cron processes the queue#
The cron job coullworks_blog_ai_queue runs every 5 minutes.
- It first recovers anything stuck: a run or item that has made no progress for 2 hours is marked failed or put back for another try.
- It works out free room: the concurrency setting minus items already running.
- For each due
queuedbrief it checks the monthly cap. The check assumes about twice the cost ceiling of one run, so it stops early rather than late. At the cap the cron stops for this run, the brief staysqueuedwith the cap message in Last error, and nothing is lost. - It marks the brief
running, adds one attempt and writes the draft. - On success the brief is
done. On a failure it goes back toqueued, scheduled 15 minutes times the attempt number later, until it reaches Bulk Queue Attempts, when it becomesfailed.
Only one queue run happens at a time, so an overlapping cron does nothing. If nothing moves, see troubleshooting.







