Skip to main content
Administrators can create workflows in AI Studio → Workflows. Each workflow connects a trigger to actions, conditions, waits, and a result. Your platform administrator must check Workflows enabled in AGO Config first. It is off by default for each workspace. Disabling it hides the editor and workflow MCP tools and blocks API access and new triggers. Already accepted executions can finish; drafts and published versions are kept.

Create and publish

  1. Select Create workflow, enter a name, and describe what it does.
  2. Add input fields in Settings if the workflow needs information at launch.
  3. Open Editor, select the trigger block, and choose its type under Trigger in Block settings. Select + on a block’s output to open Add a block. Search by name or browse the grouped actions, then choose one to connect it to that output. Existing connections stay in place.
  4. Select a block to configure it and give it a Block name. Icons identify block types in the editor, connection list, and execution logs. Connect blocks by dragging between their handles or choosing Connect an existing block… in the block settings.
  5. Save draft, then Publish. Publishing validates the blocks and their connections.
The side panel switches between Add a block and Block settings, leaving more room for the graph. On smaller screens it appears below the graph. Select a workflow in the list to open it. To delete one, open the ⋮ menu at the end of its row and choose Delete: the workflow, its versions and its execution history are removed, and agents and triggers stop using it. Cancel its active executions first. Saving a draft does not change the published version. Executions already in progress keep the version they started with. Pause triggers stops new launches; cancel an existing execution separately.

Add parallel branches

Select + on the source block’s output, or Add a new branch in its settings, then choose an action. Repeat from the same output to add more branches. Conditions have separate Yes and No buttons; the library shows which branch you are extending. All connections on the chosen output run. Branches run independently. For example, a trigger can create a ticket and start a separate waiting branch at the same time. A wait pauses only its own branch. An execution completes after every active branch finishes; a failure stops further work in the remaining branches but does not undo completed actions. Each block accepts one incoming connection. Branches cannot merge, loop back, or read each other’s results. A branch can read the common blocks that precede it. Renaming a block preserves its identifier and data references. With one final block, the execution output is that block’s result. With several final blocks, Output contains their results under their block identifiers. The combined output must fit within 256 KiB.

Choose a trigger

Event inputs include thread_id or ticket_id, plus status_id and previous_status_id. An absent status is an empty string. A customer alert gives alert_id, company_id and rule. Conversation events refer to the conversation’s admin status. Changes made by a workflow do not start another workflow through these model events. A schedule runs in one of two ways, chosen under Frequency:
  • Every few minutes: the workflow starts each time the interval in minutes elapses.
  • On chosen days and times (cron): select the days of the week and a time, or write a standard cron expression for anything else. Its five fields are minute, hour, day of month, month and day of week, and accept lists (1,15), ranges (1-5), steps (*/15) and English names (mon, jan). For example, 0 9 * * 1-5 runs on weekdays at 9:00 and 30 8 1 * * on the 1st of each month at 8:30. When both the day of month and the day of week are set, either one is enough. Times are read in the chosen Time zone and follow its daylight saving changes; Next runs shows the upcoming dates.
A run starts within a few minutes of its planned time. If AGO cannot start it within 10 minutes, that occurrence is skipped. Schedules use no input fields and skip overlapping executions. Event, schedule, and webhook actions run with the workflow creator’s permissions. Agent actions use the calling user’s permissions; granting an agent access does not grant its users administrator rights.

Choose how it runs

In Settings, Execution decides whether the caller waits for the result: A workflow that waits for its result must start from a manual, webhook or agent trigger (an API data source can call it whatever its trigger), finish within 20 seconds, contain at most 10 blocks and no Wait block. If it fails or takes too long, the caller receives the error and AGO does not retry it; the execution and its error stay in Executions. If AGO stops while it runs, for example during an update, the caller loses the connection and the execution is shown as interrupted after two minutes. Schedules and AGO events always run in the background.

Use data between blocks

Choose how each field is filled with the selector next to its name: References point to:
  • input.message: a launch input named message.
  • steps.create_ticket.ticket_id: a completed block’s result. Expand Data reference in that block’s settings to find its identifier.
  • input: the complete input object.
A branch can only reference blocks that run before it. A reference to a missing field stops the execution; use get with a default value for optional fields.

Text with references

Place references between double braces: Ticket {{steps.create_ticket.ticket_id}} for {{input.email}}. Text is inserted as is, numbers and booleans as written, an empty value as nothing, and lists or objects as JSON.

Functions

Each function receives a JSON list of arguments. An argument can be a value, a reference, a text with references or another function. For example, this returns the lower-case, trimmed email:
The catalogue (get_workflow_catalogue) lists each function’s arguments and behaviour. Functions check their argument types: lower of a number stops the execution with a clear error rather than guessing. Dates use ISO 8601 text such as 2026-10-17T09:30:00Z; a date without an offset is read as UTC. Timezones use names such as Europe/Paris. For a condition, compute a boolean with a function, for example and or contains, then compare it with true. Use Transform data to build a JSON object whose fields mix values, references, texts and functions. Functions run inside AGO and are limited to 1,000 calls per block and 256 KiB of text per result.

Connect external services

Use HTTP request to call a public HTTPS API with GET, POST, PUT, or DELETE. Private addresses and redirects are blocked. Responses must fit within 128 KiB. The API must start answering within 10 seconds and finish within 15 seconds. To build the address from data, use Text with references and keep the start fixed, for example https://api.example.com/customers/{{input.customer_id}}?expand={{input.fields}}. AGO encodes each inserted value, so data from a webhook or a conversation cannot change the host, add path segments or add query parameters. Publishing rejects a template that inserts data before the first / or ? after the host. A Reference or Function can supply a complete address instead; it is checked when the request is sent. If the API is only reachable on your private network, for example through a VPN connection set up with AGO, contact AGO to allow its hostname for your workspace. The same allowed hostnames apply to HTTP tools and workflows. To authenticate, select a saved HTTP tool under Connection. Its credentials remain in AGO and can only be used with the connection’s configured host. Configure credentials in the existing HTTP tool settings instead of entering secrets in workflow inputs. Requests to your workspace’s AGO Apps need no connection: AGO signs them automatically, as it does for HTTP tools and API data sources. The calling user must have access to the selected tool. Authorization, Proxy-Authorization, Cookie, X-API-Key and API-Key headers can only come from a connection: workflows are readable by every administrator, so secrets typed into them are rejected. By default, any status outside 2xx stops the execution. List the 4xx statuses your workflow handles in Statuses handled by the workflow, for example [404] for a lookup that may find nothing or [409] for a record that already exists. These responses then continue to the next block, which can branch on steps.<block>.status: for example, a condition comparing it with 404 leads to a block that creates the missing contact. 429 and 5xx statuses always stop the execution. The HTTP result contains status and body. Ticket creation returns ticket_id; status actions use the existing AGO permissions and services.

Use AI in a workflow

AI prompt sends Input data to a language model with your Instructions, for example to summarize a message, translate it, extract an order number or classify a request. Fill Input data with a reference, a text with references or any JSON value; lists and objects are sent as JSON. Choose the Model among the models configured for your workspace: Cheap and Fast answer without reasoning. The model must answer within 30 seconds. Its token usage appears under Workflows in Token Usage. With Output format set to Text, the result is {"output": "..."}. Choose Structured JSON to get an object that follows your Output schema (a JSON Schema of type object), for example:
The result is then {"output": {"category": "billing", "summary": "..."}}, so a condition can compare steps.classify.output.category with billing. AGO checks every answer against the schema and stops the execution if it does not match. Publishing rejects a reference to a field the schema does not declare when it sets additionalProperties to false, such as a misspelled steps.classify.output.categry. When every object lists all its properties in required and sets additionalProperties to false, as above, OpenAI models are also forced to follow the schema exactly.

Tag conversations

Tag conversation adds a tag to a conversation, for example kb_not_covered. Conversation tags can then be used to filter conversations. The tag is found by name, ignoring case, and created if it does not exist yet. Tags already on the conversation are kept. The workflow creator must be an administrator. Leave Conversation ID empty to skip the block. A function can choose the tag:
To tag each conversation with your classifier’s answer before the agent replies, let the workflow answer an API data source: see Answer with a workflow.

Let agents start workflows

Choose Agent tool call, describe when the workflow should be used, define its input fields, and select Allowed agents in Settings. Publish the workflow. The agent receives a tool with the workflow’s input schema. With Wait for the result, the tool returns the workflow output, so the agent can use it in its answer. In the background, starting the workflow returns an execution reference immediately, and the agent checks its status and result with workflow_status. It can only inspect executions belonging to the calling user and agent. Removing an agent’s access blocks further workflow actions for that agent.

Call a webhook

Choose Incoming webhook, save the workflow, and generate a webhook secret in Settings. Copy it immediately; AGO stores only its hash. Generating another secret invalidates the previous one. Send a POST to the displayed path on your tenant’s AGO API domain, with the secret in X-AGO-Webhook-Secret:
With Wait for the result, the response also contains the workflow output, or the error when it failed. Reuse the same request key when retrying the same event. Reusing a key with different input is rejected. Use a new key for a new event. request_key is optional: without it, every request starts a new execution.

Inspect executions

Open Executions to view the latest run, or select an earlier execution. The list shows each execution’s status, when it started and how long it took. The selected execution shows its status, start and end times, elapsed time, published version and whether the caller waited for the result. Active executions refresh automatically. Starting a workflow opens its execution. Timeline lists the executed blocks in order, with their status and duration; the bar shows when each block ran within the execution. Select a block to see its times, its error and its output. Blocks keep the names saved in the execution’s published version, so later renames do not change earlier executions. Search by block name, identifier or error message, or select Errors only. Execution input and Output show the data received and returned, with a copy button. Download JSON saves the full execution record, including blocks hidden by your search. A Wait block records Timer scheduled when its delay is set. This does not mean the wait has elapsed; the next step appears when execution resumes. Run workflow executes real actions using the published version, even when the editor contains an unsaved draft. Waiting workflows resume after AGO restarts or is updated. Completed steps are reused. Cancellation stops future steps; it does not undo actions that have already taken effect. If an external action loses its response, AGO can report Outcome uncertain. Check the destination before launching another execution: the external service may already have performed the action. An HTTP request that AGO refuses before sending it (blocked address, invalid URL, unknown connection), that cannot reach the destination, or that the API rejects with a 4xx status is reported as failed instead: nothing was performed, so you can fix the cause and start a new execution. AGO sends an idempotency key with HTTP requests, but support for that key depends on the destination. This release supports up to 50 blocks per workflow and 100 active executions per tenant. Loops and merging branches are not supported. Input and block results are limited to 256 KiB. Existing connector synchronizations continue to use their current execution system.

Create and edit through the API or MCP

Grant your API key or OAuth connection workflows:write to create, edit, publish and run workflows. workflows:read allows reading the catalogue, drafts and execution logs, and validating a graph. These permissions apply to the current workspace. Use an active administrator’s key or connection for manual runs. Start with GET /api/v1/workflows/catalogue or the MCP tool get_workflow_catalogue. It returns supported node types, versions, configuration schemas, output ports, functions, agents and saved HTTP connections. Use these definitions when building a graph. Create a draft with just its name to get a manual trigger:
Read the draft with GET /api/v1/workflows/{id} before editing. Send its current revision with PUT /api/v1/workflows/{id}. Omitted fields are preserved; a supplied draft replaces the whole graph, and allowed_agent_ids replaces the agent list. For example, renaming does not require resending the graph:
A graph contains nodes, edges, input_schema and optionally execution (async by default, or sync to wait for the result). Each node has an id, type, version and config; name and position are optional. Keep existing IDs and positions when editing. Edges specify source, target and port, such as next, true or false. JSON references use {"$ref":"input.message"} or {"$ref":"steps.create_ticket.ticket_id"}; texts use {"$template":"Hello {{input.name}}"} and functions {"$fn":"lower","args":[...]} (see Functions). Validate a graph without saving or executing it using POST /api/v1/workflows/validate with {"draft": ...}. When ready, publish the saved revision with POST /api/v1/workflows/{id}/publish and {"revision": 2}. Publication enables the configured triggers. A 409 response means someone edited the draft; read it again before reapplying your changes. The MCP equivalents are create_workflow, get_workflow, update_workflow, validate_workflow and publish_workflow. For example, ask your connected assistant: “Create a draft workflow that routes urgent support requests. Use the available node catalogue and validate it before I publish.” To run a published workflow, call POST /api/v1/workflows/{id}/runs or run_workflow with input and a unique request_key. Reuse that key only to retry the same execution request. For a sync workflow, the response already contains the final status and output. Read its logs with GET /api/v1/workflows/runs/{run_id} or get_workflow_run. Pause future triggers through PUT /api/v1/workflows/{id}/enabled with {"enabled": false}; cancel an accepted execution through POST /api/v1/workflows/runs/{run_id}/cancel.