When to use
- "Build a workflow that…", "automate this", "turn this process into a workflow", "make this run for every row in the sheet", "set up a pipeline that researches X and drafts Y".
- Changing an existing workflow: add a step, change a prompt, add an input, put a review step before publishing.
- "Why did my workflow fail?", "the run is stuck", "step 3 came back empty".
- Not for running a list through a workflow row by row: use
sheet-enrichment-pipeline(it binds the workflow this skill publishes). - Not for a playbook where an agent uses judgement across tools and writes documents: use
recipe-author. - Not for teaching the agent how to do a job whenever it's asked in chat: use
skill-creator. - Not for the cadence itself (every Monday, report only on change): use
scheduled-routines.
A workflow fits when the steps are the same every time, the output has the same shape every time, and it may run many times in a row. If each run needs a different plan, it's a recipe.
What you need
Required:
- The outcome, in the user's words: what goes in, what comes out, who uses it.
- One real example: an input someone would type and what a good result looks like. A past deliverable done by hand is best.
Ask for, or assume and state:
- Inputs per run: names, types, required or optional. Default: the smallest set; everything else fixed in the steps or read from the Brand Kit.
- Output: format (Markdown report, plain text, JSON for a sheet column), length, and where it lands (read in Slate, a sheet cell, a CMS draft).
- Quality bar: brand voice from the Brand Kit, sources to trust or avoid, country and language for any SEO data.
- How it runs: by hand, per sheet row, or on a schedule. Per-row workflows return one compact result per row.
- Review: a human review step before anything is written outside Slate. Default: yes.
- For an edit or a failure: the workflow's name or link, and for a failure, which run.
Data and tools
- In Slate: Workflows is the builder. Steps cover AI writing and analysis, Google search and page scraping, sitemaps, live answers from AI engines, Semrush and Ahrefs data, AI Tracker data, the Brand Kit, Pages metrics, page audits and screenshots, loops, conditions, human review, code and formatting, and publishing to WordPress, Webflow, Sanity, Strapi, Slate CMS and Google Sheets. Ask Cowork to build or fix the workflow, or build it yourself in Workflows. Sheets runs a published workflow once per row; Schedules runs one on a cadence.
- With the Slate MCP server:
resolve_workflow_intent(user_request,active_workflow_id) decides create, edit or ask.list_workflows(search,status;templates: truelists templates) andcreate_workflow_from_template(templateId) start from something that exists.get_block_schemawithoutblockTypelists the blocks (optionalcategory: control, ai, processing, search, seo, apps); with ablockTypeit returns that block's fields, allowed values and template.save_workflowwithcreate_new: true,name,descriptionand aplan(orderedsteps, each withblockType,label,fields;loopOverandloopStepsfor a loop;conditionConfig,trueStepsandfalseStepsfor a branch;inputSchemafields withname,label,type,required) builds, checks and saves a draft. Edits pass the workflowidand the fullconfigread withget_workflow(include_config: true).run_workflow(workflowId,initial_inputs,test_mode: truefor a test, anduser_confirmationquoting the user's own request to run) starts a run;get_workflow_run(executionId) returns status and each step's output and error.publish_workflow(id,message) publishes. Shapes, step families and reference syntax:references/workflow-patterns.md. - Without Slate: write the same spec and build it in Zapier, Make, n8n or a script with your own keys for search, scraping, SEO data and the AI model. The design rules, the review step and the test still apply.
Procedure
- Ground first. For an edit, open the workflow and its current config. For a failure, read the recorded run before anything else: the failing step's error and input, and the output of the step that fed it. Never rerun to see an error the run already recorded. For a new build, check whether a workflow or template already does the job and offer to copy or edit it instead.
- Write the spec with the template in
references/workflow-patterns.md: goal, trigger, inputs, output, steps, sources, definition of done. Every definition-of-done line is something you can check later (a step count, an input key, a field value, a test result). - Ask once. Two to four short questions in one message, only those that change the build, with your recommended answer first. Make one of them an improvement the user didn't ask for: a review step before publishing, a Brand Kit step for voice, a fallback when a source returns nothing, de-duplication of a list. If the user says "just build it", use your recommendations and list them in the report.
- Choose the shape. Linear (search, analyse, write) unless something repeats. Use a loop when the same steps run over a list (URLs from a sitemap, competitors, keywords). Use a condition only when the two paths really differ (score at or above a threshold writes a brief, below it logs one line). Three well-configured steps beat ten shallow ones. Prefer a native step over code; use code only to reshape data between steps.
- Configure each step from its schema. Fill every required field. Fixed-choice fields (country database, model, output format) get a concrete allowed value, not an input, unless the user wants them to vary. SEO steps take bare domains (
example.com). Turn one-off values from the example into inputs, and use every input. Each AI step's prompt names the upstream output it reads and the exact output format. Set non-critical steps to continue on error, and put a human review step before any publishing step. Loop and reference rules are in the reference. - Save the draft and read the receipt: step titles, inputs, validation issues and any automatic fixes. Fix every error and save again. If the receipt names a different workflow than the one you meant to change, stop and say so; never report it as done.
- Check against the spec. Tick each definition-of-done line from the receipt or the saved config. Anything you couldn't check stays marked untested.
- Test only when asked. Say first that a test can use credits. Use one or two realistic inputs (the user's example first), then read every step's output, not just the final one. Empty output, an answer that ignores the input, or text cut off mid-sentence is a failure: fix that step and test once more. Never repeat an identical failing test.
- Publish only on an explicit yes. Explain that Sheets and the team use the published version, drafts stay editable, and changes need a new publish.
- Report in the output format below.
Decision rules
- Size the edit to the change. Text inside a step (a prompt, a setting): edit and save, report the diff in two lines. One or two steps or one input added or removed: update the spec, save, and say what the change feeds downstream. Anything larger, or removing an input or output the spec promised: show the before and after step list and ask before saving. "Improve my workflow" with no specifics is not a change request; ask what's wrong.
- Classify a failure before fixing it. Workflow bug (wrong field, bad reference, unbound input, a format the next step can't read): fix the workflow, then retry or test. Setup (missing connection, expired credentials, provider limit, not enough credits): tell the user what to fix; don't edit the workflow. Bad input: say which value and why. A run queued with no steps done is waiting for a free slot, and a run paused at human review is waiting for a person; neither is a bug.
Output
## Workflow: <name> (<draft | published>, <tested | untested>)
Link: <workflow link>
Does: <one sentence in the user's words>
Runs: <by hand | per sheet row | on a schedule>
### Inputs
| Key | Type | Required | Example |
### Steps
1. <title>: <step type>, reads <input or step>, produces <what>
2. ...
Output: <format, where it lands>
Defaults I chose: <list, or "none">
Test: <inputs used and what each step returned> | not run (can use credits; ask to run one)
Next: <publish | test with <input> | bind to a sheet column | add a schedule>
For a failed run: the failing step, its error quoted exactly, the cause class (workflow, setup, input), the fix made or needed, and whether it was retested.
Quality checks
- Every input is used by a step, and no step reads a step that runs after it.
- Every step's output is read by a later step or is the final output.
- Fixed-choice fields hold allowed values; no SEO step has
https://in a domain field. - A human review step sits before every step that writes outside Slate.
- No test, run or publish happened without the user asking for it in this conversation.
- Draft or published, tested or untested, is stated from receipts, not assumed.
- Nothing is claimed about a step's output that wasn't read from a run.
Common mistakes
- One giant workflow. Fifteen steps doing five jobs fail in fifteen places. Split by output, or move the judgement-heavy part to a recipe.
- The test value hard-coded. The URL from the first test stays in the scrape step and every later run analyses the same page. Turn it into an input.
- Empty output counted as success. A Semrush step on the wrong country database or a domain with
https://returns nothing, and the AI step writes a confident summary of nothing. Check each step's output on the test. - Publishing without review. Any step that writes to a CMS, a sheet outside Slate or a tracker gets a human review step in front of it.
- Fixing what you haven't read. Editing prompts before reading the failed step's real input and error usually fixes the wrong thing.
- AI for mechanical work. De-duplicating, splitting text into a list or formatting JSON belongs in a code step; it's faster, cheaper and exact.
