Workflows
A workflow is several steps that run as one job: for example, read your calendar and your unread mail at the same time, write one summary from both, and ask you before anything is sent. You describe it in a sentence, awe shows you the plan, and nothing runs until you say so. This page is for anyone who wants to build one, and for developers who want the recipe format and the API.
Ask for one
Use /workflow. In the console chat (or by text), start your message with /workflow:
/workflow summarize my unread mail and post it to slack
/workflow every morning check my calendar and unread mail and write me a summary
/wf is a short form. /workflow on its own prints a usage line.
Or just say it. A sentence that names a schedule (every morning, whenever, each week) or uses the word workflow or automation, and that would otherwise have run a single tool, gets a plan instead. This is narrow on purpose: “check my calendar and email” is two lookups, not a workflow, and is answered as before.
To see how awe reads a sentence without running anything:
./awe-core intent-signal "every morning check my calendar and unread mail and write me a summary"
The plan
Before anything runs you get a plan like this:
Here's how I'd run that
together — these don't need each other, so they run at once
calendar google-calendar·list-events
mail gmail·messages_list
join — needs 1 of 2
then — needs the results above
digest write one summary from {calendar, mail}
ask me — nothing ships without you
email this summary to me?
How to read it:
- together: steps that do not depend on each other. They run at the same time. Steps that use the same tool server take turns.
- join: how many of those steps must succeed for the job to go on. A step that fails is named, and the job continues if enough of the others worked.
- then: steps that use the results above.
- check: a rule the result must pass. It is judged fresh, without seeing the conversation that produced the work. “Could not tell” never counts as a pass.
- ask me: the job stops here and waits for your answer.
- The tool column shows the exact server and tool each step will call, so a wrong match is visible before it costs anything.
- A step marked with a warning sign changes something outside awe (sends, posts, deletes). It is held behind an
ask mestep unless you wrote “without asking” in your request. - Lines marked with an info sign are notes from awe about your plan, most often that a step you wrote in sequence reads nothing from the step before it, so it was moved into the
togetherblock.
In the console the plan is a card with buttons:
| Button | Does |
|---|---|
| Run once | Runs the plan now, without saving it. The ask me step still stops and waits. |
| Save + schedule | Asks for a name, a phrase to start it with, and an optional schedule. Saves it as a skill in skills/my-skills/<name>/. |
| Edit recipe | Puts the recipe text in the chat box so you can change it and send it again. |
| Just answer it | Shown when awe offered a plan you did not ask for. Answers your sentence the ordinary way. |
By text or in another chat app you get the same plan as text. Reply run to start it. When it reaches an ask me step, the question arrives as a message with numbered options, and you reply with the number. cancel drops it.
What gets refused
- A plan with no tools in it. “Do the thing” is not a workflow, so no plan is offered.
- An argument the tool would reject. Relative dates are not worked out for you. A calendar step given
"timeMin": "yesterday"is refused with a message asking for a real timestamp. - A step that reads the result of a send. It cannot both wait for your approval and feed a step that already ran. Split it into two workflows.
- A send inside a
togetherblock moves the whole block behind the approval step. To let the harmless steps run first, put the send in its own block.
What is not caught: a value of the right type that is still wrong, such as a search query that matches nothing.
The recipe format
A plan is a rendering of a short text recipe. You can write one yourself:
together sources:
cpu: mcp-monitor.get_cpu_info {}
skills: awe-core.vc_list_skills {}
then:
need: 1 of 2
digest: write one line from {cpu, skills}
check:
the line names both sources
ask me:
save this line?
| Block | Meaning |
|---|---|
together <label>: |
Steps that run at once. Each line is name: server.tool {json arguments}. One together block per recipe. |
then: |
Steps that need the results above. {name} reads a step’s output. A line of plain words is an instruction for the AI. |
need: N of M |
Inside then:. How many of the together steps must succeed. Left out, all must. |
check: |
One rule per line that the result must pass. |
ask me: |
One question per line. The job waits for your answer. |
ask first: |
Questions to ask before anything runs. Each line is NAME: question, with the name in capitals. The answer is available as {{NAME}}. |
repeat until: <rule> |
Repeat the indented steps until the rule passes. Add at most N laps to set the limit (3 if you leave it out, never more than 10). |
Three kinds of placeholder are filled when the job runs: {name} (a step’s output), {{VAR}} (a value captured earlier or asked for with ask first:), and {@my team} (a fact about you from memory).
Turn a recipe into a plan or into the JSON a skill runs:
./awe-core recipe compile my-recipe.txt --plan
./awe-core recipe compile my-recipe.txt > actions.json
./awe-core recipe show actions.json
--plan prints the plan as text. For the recipe above:
together (sources) — these don't need each other, so they run at once
• cpu mcp-monitor·get_cpu_info
• skills awe-core·vc_list_skills
join — needs 1 of 2
then — needs the results above
• digest write one line from {cpu, skills}
check — fresh eyes; nothing weak gets past this
• the line names both sources [has_source]
ask me — nothing ships without you
• save this line?
Plain compile prints actions.json, the file a skill runs (see skills.md). recipe show turns that file back into a recipe. Use - in place of the file name to read from standard input.
| Command | Does |
|---|---|
recipe compile <file> [--plan] [--with-notes] [--resolve-memory] |
Recipe to actions.json. --with-notes wraps the JSON together with awe’s notes. --resolve-memory fills {@...} from memory at compile time. |
recipe show <file> |
actions.json back to a recipe. |
recipe check <rule> --artifact <file> [--source <file>] [--judge] |
Run one check: rule against a piece of work. Without --judge, rules that need an AI print the question to ask and do not call one. |
recipe note <text> --skill <name> [--counts 2/3] |
Add one line about a finished run to today’s memory log. |
All are run as ./awe-core recipe ... from the awe folder.
After a run
- The console shows a live card while the job runs: each step, the join count, and any question it is waiting on.
- A saved workflow is a skill. Skills & Tools › All skills shows its shape and, if it is scheduled, when it last ran. Filter the list by
wide,with checksorscheduled. - The counts you see (“2 of 3”) come from what each step actually returned, never from what the AI wrote about it.
Limits
- A job that is waiting on an
ask mequestion does not survive a restart of the console. It is marked failed, with the record of what had already run kept. Start it again. - Edit recipe puts the text in the chat box. There is no in-place editor.
- There is no cost or time estimate on the plan.
For developers
Routes on the console (port 8765). In the code and the API a workflow is called a graph.
| Route | Does |
|---|---|
POST /api/graph/plan |
Compile a recipe and describe it. Runs nothing. Body: {"recipe": "..."}. |
POST /api/graph/run |
Run a recipe once without saving it. Body: {"recipe": "...", "conversationId": "..."}. |
POST /api/graph/save |
Save a recipe as a skill. Body: {"recipe": "...", "name": "...", "triggers": ["..."], "schedule": "..."}. schedule is optional. |
GET /api/graph/runs?skill=&limit= |
Run history. |
GET /api/graph/runs/:runId |
One run. |
GET /api/graph/asks |
Runs waiting on a question. |
POST /api/graph/runs/:runId/answer |
Answer one: {"answer": "1"}. |
GET /api/graph/recipe?skill= |
A skill’s recipe, rebuilt from the steps it really runs. |
GET /api/graph/shapes |
Every skill that has steps, with its shape and schedule. |
While a job runs, the chat WebSocket carries graph_plan, graph_branch, graph_join, graph_check, graph_ask and graph_done events next to the usual tool events.
How recipe words map to actions.json fields:
| You write | Field |
|---|---|
together: |
parallel_group on each step |
then: |
depends_on, and a step with kind: "join" |
need: N of M |
min_success on the join |
check: |
a step with checks |
ask me: |
a stopping point |
repeat until: |
until, max_laps, body |
Two related commands: ./awe-core call-group runs one together block in a single process (the console uses it), and ./awe-core workflow show / ./awe-core workflow run <option> show and run the menu options of the skill that was loaded most recently, for use from a terminal.
Related
- skills.md: what a saved workflow becomes
- skill-console.md: a prompt with its own tab and schedule
- awe-scheduler.md: schedules
- orchestration-directives.md: how a tool can ask for a follow-up step
- kanban-board.md: hand a whole task to a background worker