GuidePremium
AI Writer in CoullWorks Blog for Laravel
The AI Writer screens of the admin step by step: the six-step Write wizard with every field, the bulk Queue, Refresh for existing posts, Past runs, and what happens when a provider key is missing.
Updated 16 November 2026Back to the package pageBuy
The AI Writer is an optional module. It researches a topic on the web, writes an outline and an article from the research, makes images, and saves the result as a draft for an editor to review. It never publishes anything. It has four screens, shown as tabs along the top of one sidebar entry, AI Writer (group Tools): Write, Queue, Refresh and Past runs.
Before you start, switch the module on (coullworks-blog.ai.enabled), add a key for at least one provider in Settings, AI keys, and run a queue worker (php artisan queue:work), because every provider call is queued. In development the queue can be sync.
| Screen | Ability needed | What it does |
|---|---|---|
| Write | blog.ai.use | One article, step by step |
| Queue | blog.ai.queue | Many articles from a list of topics or a CSV |
| Refresh | blog.ai.use | Suggest changes to an existing post |
| Past runs | blog.ai.history | Every run, with cost, to open, branch or delete |
Write: the six-step wizard#

The six steps run along the top: Brief, Research, Outline, Write, Images, Review. Notice the three grouped sections on the first step and the empty "Nothing has run yet" panel below the form, which shows the run once it starts.
The page walks through six steps. The current step is kept in the address, and reopening a run lands on the step that matches its progress. While a provider call is working the page refreshes itself every two seconds and a "Working on the research step…" panel says when it started.
Step 1: Brief#
Fill the brief and press Next. Leaving this step starts the research. If a run is already open it is kept.
Topic#
- Where: Topic section. Required.
- Values: one line of text, at most 500 characters. Default: none. The hint says "One line: what the article is about."
- What it changes: the subject the research and the article are about.
Audience#
- Values: text, at most 255 characters. Default: empty. The hint gives the example "parents of toddlers".
- What it changes: who the article is written for, so the tone and level fit.
Target keyword#
- Values: text, at most 255 characters. Default: empty.
- What it changes: the search phrase the article is written to answer.
Angle#
- Values: free text, two lines high. Default: empty. The hint reads "The point of view or the question it answers."
- What it changes: the line the article takes. Leave it empty for a neutral overview.
Length in words#
- Where: Format section.
- Values: a whole number from 100 to 10000. Default: empty, which lets the writer choose.
- What it changes: the target length of the article.
Tone#
- Values: text, at most 64 characters. The placeholder is "Plain and friendly". Default: empty.
- What it changes: the voice of the article. Voice notes in Settings apply to every run on top of this.
Language#
- Where: Format section. Required.
- Values: one of the blog's enabled languages. Default: the blog's default language.
- What it changes: the language the article is written in and the language of the draft's translation.
Category#
- Values: one of the blog's categories. Default: none.
- What it changes: the category the saved draft is filed in.
Feature this category#
- Values: one of the blog's categories. Default: none. The hint reads "The writer is asked to link to it once, where it fits."
- What it changes: the writer is given the category's name and address and asked to link to it once. Deleting that category clears it from the brief.
Author#
- Values: one of the blog's authors. Default: none.
- What it changes: the author of the saved draft.
Research and writing provider#
- Where: Engine section. Required.
- Values: the providers that can research the web: Anthropic and OpenAI. Default: Anthropic.
- What it changes: who researches and writes. Choosing a provider changes the models offered next to it. Keys are set in Settings, AI keys.
Model#
- Where: Engine section. Required.
- Values: a model of the chosen provider, from the model list in Settings (or the built-in list). Default: the blog's default model for the provider.
- What it changes: the model that does the work, and so the cost.
Image provider#
- Values: the providers that can make images: OpenAI and Gemini. Default: OpenAI.
- What it changes: who makes the images in step 5. Used only if you press Make the images.
Image model#
- Values: an image model of the chosen image provider. Default: the configured default image model (shown as
gpt-image-2.5-flareon a fresh install). - What it changes: the model that makes the images.
Step 2: Research#

Each source shows its title, publisher and address, a Pin and a Drop button, and the claims taken from it. Notice the three buttons under the list.
The research returns a list of sources, each with the claims the writer may use.
- Pin keeps a source, so it stays when you run the research again. The button then reads Pinned.
- Drop excludes a source, so it is not used. The row fades and the button reads Dropped.
- Run the research again runs the research once more, keeping pinned sources and leaving out dropped ones.
- Branch this run copies the run so you can try a different direction without losing this one. It becomes a new run with its own history.
- Make the outline asks the provider for an outline from the sources that are not dropped. Next does the same if there is no outline yet.
If the research finds nothing, the step says "The research found no sources."
Step 3: Outline#

The outline is edited as lists, not as text with a syntax. Notice the Level and Heading fields, and the Add a heading and Add a takeaway buttons.
Edit what the provider suggested.
- Headings: a list of rows. Each row has a Level (Heading 2 or Heading 3; default Heading 2) and a Heading (text, up to 255 characters). Drag the sort icon to reorder, the red bin to delete, Add a heading to add.
- Takeaways: a list of short points of up to 500 characters each, with the same reorder, delete and Add a takeaway controls.
Press Next. The outline is saved and the article is written from it.
Step 4: Write#

The score line comes first, then a preview of the blocks. Notice that the score is labelled "local check, not a model call".
- Humanizer score is out of 100 and is shown in green from 70. It is a local check of the text against the package's list of banned words, dashes, contrast formulas and closing questions. It is not another call to a model. The phrases that cost points are listed under it.
- Dropped blocks: if the provider returned a block that was still invalid after one retry, it is left out and listed with its path and the errors.
- Preview shows the headings and text as they will appear. Text is cleaned for safety before it is shown.
- Write it again asks for a new version of the article. Make the images asks the image provider for images.
Step 5: Images#

The step is optional. Before the images are made it says so, and Next skips it.
Once images exist, each is listed with its role and where it was stored, and an Alt text field filled with the alternative text the model suggested. Edit it, because alt text is for readers who cannot see the image. The alts are saved when you save the draft.
Step 6: Review#

Three editable fields and one button. Notice the sentence above the button: "The article is saved as a draft. It is never published from here."
- Title, SEO title and SEO description are filled by the writer. Change any of them.
- Structured data preview opens a read-only preview of the JSON-LD the post will print.
- Save as draft creates the post as a draft, with the research's citations in its structured data, and opens it in the post editor.

The draft opens in the editor with Status: Draft. The blocks are the ones from the Write step. Read it, fix it, and publish it yourself.
When something goes wrong#
| What you see | What it means |
|---|---|
| "This step is still running. The page refreshes by itself; press Next when it has finished." | A provider call is in progress. Wait. |
| "That step failed." followed by the reason, and a Try again button | The provider returned an error. Press Try again. If the reason is the spend cap, it adds "Nothing was sent to the provider." |
| "No job has run for ten minutes. Check that a queue worker is running (php artisan queue:work)." | The queue worker is not running. Start it. |
| "This run was cancelled: …" | The run was stopped. Start again or open it from Past runs. |
The no key notification#
If you press Next on the brief and the chosen provider has no key, the writer shows a red notification, No API key for Anthropic (or the provider you chose), with the text "Add a key for this provider before the writer can start." and a button Open Settings, AI keys. Press it, paste a key, save, and return.
Run states and steps#
A run moves through the steps research, outline, write, images and review. Its status is queued, running, done, failed or cancelled. A run is either new or a refresh. The cost ledger records each provider call as a research, outline, article, meta, image or refresh_diff generation, with status running, done or failed, and links a run to its post as created or refreshed. You see these as the Status column on Past runs.
Queue: many articles at once#

Top to bottom: the spend panel, the defaults for every item, the Topics tab, the result "Added 3, skipped 0" and the table. Notice that all three items are Queued with a Pause and a Cancel action.
The queue turns a list of topics into queued briefs and writes drafts for them in the background, one at a time by default. It never publishes. It needs the host's scheduler (php artisan schedule:work, or schedule:run each minute) and a queue worker.
- Open Tools, AI Writer, Queue.
- Set the defaults that every item shares (below).
- Either type topics in the Topics tab, one per line, or upload a file in the CSV tab.
- Press Add to queue. The panel says "Added N, skipped M", and any skipped rows are listed with their line number and reason.
Spend this month#
A panel at the top reads, for example, "0.01 USD used (estimated). No cap is set." or "12.40 of 50.00 USD used (estimated)." When the month's cap leaves no room it adds "The queue is stopped: the monthly AI spend cap has no room, so no item starts and none calls a provider. Raise the cap in Settings or wait for next month; the items stay queued."
Defaults for every item#
- Language: the blog's languages. Default: the blog's default language.
- Category, Feature this category and Author: lists from the blog. Default: none.
- Audience (up to 255 characters) and Tone (up to 64): text. Default: empty.
- Length in words: 100 to 10000. Default: empty.
- Start at: a date and time in the blog's timezone. Default: empty, which starts at the next scheduler run.
- Minutes between items: 0 to 10080. Default: 0. Spaces the items out so they do not all start together.
Topics#
A multi-line box, Topics, one per line, with the hint "At most 500." Each non-empty line becomes one brief and one queued item.
CSV#

Notice the hint under the drop area: it lists the columns the file may have.
- CSV file: a text or CSV file up to 2 MB. The first line names the columns:
topic(required),audience,angle,target_keyword,word_count,tone. At most 500 rows. - A row with a problem is skipped and listed with its line number. A file with no
topiccolumn, or with more than 500 rows, is refused whole. Choosing no file shows "Choose a CSV file first."
The queue table#

The Status filter has one entry for each state. The table refreshes itself every ten seconds.
| Column | What it shows |
|---|---|
| Topic | The brief's topic. |
| Status | Queued, Running, Done, Failed, Paused or Cancelled. |
| Scheduled | When the item is due. |
| Attempts | How many times it has been tried. |
| Last error | The last error, with the full text as a tooltip. It never holds a key or a prompt. |
| Run | A link to the run, #12, which opens it in the Write screen. |
| Draft | Open draft, once the post exists. |
Filter: Status, with the six states.

Row actions appear only when they apply to the item's state.
- Pause: from Queued. Resume: from Paused. Cancel: from Queued or Paused, with a confirmation. Retry: from Failed. A running item cannot be cancelled.
- Select rows for the bulk actions Pause, Resume and Cancel. The notification says how many changed, for example "2 of 3 item(s) changed".
- A failed item is queued again 15 minutes later until it has been tried the number of times set in Settings (Attempts per item), then it stays Failed with its error. An item stuck running for two hours is failed and queued again.
Refresh an existing post#

A finished refresh. Notice that each change shows the old text and the suggested text side by side, and has its own Accept button. The Apply button is at the bottom.
Refresh researches an existing post again and suggests changes to it, block by block. The live post is never changed from here.
- Open Tools, AI Writer, Refresh.
- Choose the Post to refresh (a searchable list of the blog's 200 most recent posts, by title, in the blog's default language), a Provider (Anthropic or OpenAI, default Anthropic) and a Model (default: the blog's default model for the provider). All three are required.
- Press Research and suggest changes. The screen says "Researching and comparing…".
- Each suggestion is a card titled "Block N: replace" (or insert, or another action), with the reason, the Old text and the Suggested text. Press Accept on the ones you want. An accepted card shows Accepted and a Reject button to undo.
- Press Apply accepted changes as a draft revision. The message reads "Applied. The accepted changes are saved as a new revision for you to review in the post's history. The live post is unchanged." If nothing is accepted it says "Accept at least one change to apply."
Other messages: "Pick a post. The research starts from its title and the sources it was written from." before you start; "Nothing to change. The new research did not justify any edits." when the model finds no reason to edit; "The refresh failed." with the reason and a Try again button; and the queue worker warning if no job has run for ten minutes.
Past runs#

One row per run. Notice the Total in the Estimated cost column and the Open post link on the run that created a draft.
The table lists every run of the blog, newest first. Columns: Topic (with "Branch of #N" under a branch), Provider, Status, Sources, Tokens, Estimated cost (with a Total in the footer), Post (an Open post link) and Date. Model is hidden by default. Search looks in the topic. The Status filter has Queued, Running, Done, Failed and Cancelled, and the Group by list groups the rows by day.

The filter panel at the right of the search box.
Row actions: Open (continues the run in the Write screen), Branch (copies the run; a notification "A branch was created" has an Open the branch button) and Delete (a confirmation, "Delete this run and its sources?"). A run that has a branch cannot be deleted: "That run has a branch. Delete the branch first."
With no runs the table says "No research yet. Runs from the AI Writer appear here." with a Write with AI button.

The empty state.
The estimated cost uses the price table in Settings, so it is an estimate and not an invoice. The stored output of old runs is deleted after the retention period set in Settings; the runs, their sources and their usage stay on this list.







