How AutoGeo workflows actually run
Most AI-in-Pro tools stop at "chat against the active map." That's genuinely useful — and it's also where the ceiling is. The same analyst who asks AutoGeo to buffer streams on Tuesday is going to ask the same thing about a different county on Thursday, and a third one on Friday. The unlock isn't the single turn. It's the second time.
AutoGeo treats workflows as a first-class object. A workflow is a saved, parameterized recipe — a list of prompts with {{token}} placeholders, a JSON-Schema params block, and per-step policy. It runs through the same orchestrator loop you use in chat, just primed differently.
The data model, in one breath
The server keeps two records per workflow execution: the workflow definition (ordered steps, parameter schemas, the namespace allow-list for each step) and the run record (which conversation it belongs to, current step position, status, and a result snapshot after each step completes). Both are indexed so the dashboard renders the list-by-recency in milliseconds.
What a step looks like
{
"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}}."
}Three things to notice:
- The prompt is in English. No code. Each step reads as a normal user turn — workflows are just chained chat.
- The step is scoped. Each step is bounded to the work it's supposed to do — no surprises, no off-script actions.
- The step has a safety boundary. Workflows declare which kinds of operations a step is allowed to perform, so nothing destructive can sneak in. Defense in depth.
The run protocol
The plugin posts POST /api/workflows/<id>/run with the user's params. The backend:
- Creates a run record with status
running, step 0. - Renders step 0's prompt by substituting
{{params}}. - Returns
{step: 0, total: N, message: "<rendered prompt>"}.
The plugin pretends that's a user message and drives the normal /api/chat loop — same SSE stream, same tool-use cycle. When stop_reason: end_turn comes back, the plugin re-calls POST /api/workflows/<id>/run?step=1. The backend renders the next step. Loop until done: true.
Every transition emits a structured audit event. The plugin never sees the workflow definition. Only the rendered prompts touch the user's machine.
Why the server keeps the definition
This is the load-bearing decision. A workflow is operational IP — it encodes how your senior analyst does the Tuesday-morning ritual. If we shipped the JSON to the client, it would be one curl away from being cloned by a competitor. We don't.
The downstream effect: workflows can change underneath the user without an update. If we discover the dissolve step should run before the clip step, we update one row in Postgres. Every analyst on the planet gets the better version on their next run.
Halt-on-error vs continue-on-error
Each step has a halt-on-error flag. When set (the default for any step a downstream step depends on), a failed tool call ends the run with a failed status. When not set (typical for the "symbolize" or "export PDF" step at the end), the run continues with a logged error in the audit trail.
Mistakes are recoverable. We persist the conversation so analysts can pick up where the workflow died, fix the input, and re-run from the failing step instead of starting over.
Composing workflows from composites
AutoGeo ships a small number of composite tools — operations like "create a web map from a service," "classify and symbolize," "dissolve and publish," "overlay and summarize," and "geocode and publish" — that collapse 2–4 sequential tool calls into one. A four-step workflow that uses a composite is one round-trip per step, not four. Latency adds up.
Composites are deliberately rare. The point of dynamic dispatch is that adding a new arcpy tool is free; the point of composites is that some sequences are common enough that paying the maintenance cost is the right call. We add a composite only when its usage frequency justifies the hand-written code path.
What you can do with this today
AutoGeo ships 20 starter workflows. They cover the things every shop does: watershed QA, parcel publish prep, monthly imagery reports, flood-risk overlays, solar suitability, stormwater traces, AGOL cleanup, field-survey imports, drive-time coverage, incident dashboard refreshes. Plus ten vertical-specific ones for utilities, conservation, transport, real estate, public health, agriculture, telecom, insurance, logistics, and energy.
Open /workflows on your dashboard. Pick one. Fill in the parameters. Watch your map change.
Or write your own at /workflows/new — there's a live JSON preview so you can see exactly what gets sent to the orchestrator.