Authoring workflows
A workflow is a saved, parameterized recipe — a list of prompts with placeholders, an allow-list per step, and explicit halt-on-error semantics.
The mental model
When you save a workflow, the definition lives on our server. When a teammate runs it, the orchestrator renders each step's prompt by substituting {{token}} placeholders from the run parameters, then drives the same AutoGeo AI tool-use loop you use in chat — one step at a time. The plugin never sees the workflow definition; only the rendered prompts.
That means the workflow is operational IP. You can publish team-shared workflows (admins only, in /admin) without giving anyone a recipe to clone.
Definition shape
{
"name": "Watershed QA",
"description": "Clip streams to county → buffer 100m → symbolize Blues → publish web map",
"params_schema": {
"type": "object",
"properties": {
"stream_layer": { "type": "string", "title": "Stream layer", "default": "NHD_Streams" },
"county_layer": { "type": "string", "title": "County boundary", "default": "Counties" },
"county_name": { "type": "string", "title": "County name" },
"buffer_m": { "type": "number", "title": "Buffer (m)", "default": 100 },
"ramp": { "type": "string", "title": "Color ramp", "default": "Blues" }
},
"required": ["county_name"]
},
"allowed_namespaces": [
"arcpy.analysis", "cim", "rest", "arcgis.gis"
],
"steps": [
{
"name": "Clip streams",
"domain": "analyze",
"halt_on_error": true,
"allowed_namespaces": ["arcpy.analysis"],
"prompt_template": "Clip {{stream_layer}} to the {{county_name}} boundary from {{county_layer}}."
},
{
"name": "Buffer",
"domain": "analyze",
"halt_on_error": true,
"allowed_namespaces": ["arcpy.analysis"],
"prompt_template": "Buffer the clip result by {{buffer_m}} meters."
},
{
"name": "Symbolize",
"domain": "symbolize",
"halt_on_error": false,
"allowed_namespaces": ["cim"],
"prompt_template": "Apply a {{ramp}} 7-class natural-breaks renderer on the buffer layer."
},
{
"name": "Publish",
"domain": "publish",
"halt_on_error": true,
"allowed_namespaces": ["rest", "arcgis.gis"],
"prompt_template": "Publish the buffer layer to AGOL as 'Streams near {{county_name}}'."
}
]
}Authoring rules
Short prompts beat thorough ones
The model already knows arcpy defaults. State only what differs from defaults and what depends on a parameter. Every starter workflow is one or two sentences per step.
Always include the "what to do next" in the last step
End with a step that surfaces the deliverable URL or output path. Users want closure. "Publish X to AGOL and return the item URL" is much better than "Publish X to AGOL."
Use halt-on-error deliberately
Default to true on any step a later step depends on (clip, dissolve, calculate-field). Use false on cosmetic terminal steps (symbolize, export-pdf) so a failure doesn't abort the whole run for a missing legend font.
Declare the smallest possible allow-list per step
Each step lists which dispatcher namespaces (arcpy.analysis, cim, rest, etc.) it can invoke. Tight allow-lists turn unexpected tool calls into refusals — which is exactly what you want when an injected attribute tries to trick the model.
Running
From the AutoGeo dock pane: click the workflow, fill in the params, hit Run workflow. The plugin POSTs to /api/workflows/<id>/run, the orchestrator renders the first turn's prompt, drives AutoGeo AI through it, and on stop_reason: end_turn the plugin re-calls /api/workflows/<id>/run?step=1. Repeat until done: true.
Resuming a failed run
When a step fails and you fix the input, you don't start over. Open the run's detail page (linked from any workflow detail page) and follow the resume prompt. The orchestrator picks up at current_step and runs the remaining steps. Existing conversation history is preserved so the model retains context.
Cancelling
A long-running step you want to abort? POST to /api/workflows/<id>/runs/<runId>/cancel (or click Cancel run on the run detail page). The row flips to canceled; the plugin stops issuing new tool_results on the next poll. Cancellation is cooperative — an in-flight gp tool runs to completion before the cancel takes effect.
Sharing with your team
Team-tier admins create org-shared workflows from /admin (or by browsing to /workflows/new?org=1). Org workflows show up on every member's /workflows with a Team badge.
Examples
- Watershed QA — the canonical chained example.
- Utilities outage isolation — network trace + valve identification.
- Monthly imagery report — multi-step raster + symbolize + export.
- All 20 starters — copy any one's JSON to fork.
FAQ
Can a workflow include another workflow?
Not yet. We'll add {{include: other-id}} composition once enough customers have written enough workflows to want it.
Can a step run in parallel?
Steps are sequential. Inside a single step AutoGeo AI may emit multiple tool_use calls that the orchestrator executes in the same turn — that's how composite tools collapse 2-4 calls into one — but the workflow itself is a sequence.
What happens if the model refuses a step (destructive prompt)?
The step ends with the model declining and (if halt_on_error: true) the run halts. You see the refusal in the chat and on the run detail page.