Skip to main content
Administrators can create workflows in Studio → Workflows. Each workflow connects a trigger to actions, conditions, waits, and a result. Workflows are off by default: contact AGO to enable them for your workspace. While they are disabled, the editor, the workflow MCP tools, the API and new triggers are unavailable. Executions already accepted can finish, and 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. To start the workflow in more than one way, select Add a trigger: see Start from several triggers. 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 per trigger. 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

Start from several triggers

A workflow can start in several ways, for example when a user rates an answer with a thumbs down and when they fill in the feedback form. Select Add a trigger above the editor, choose its type, then connect it to the block it starts, with Connect an existing block… or by dragging between handles. Each trigger can lead to its own blocks or to blocks shared with other triggers. Each execution starts from one trigger and runs only the blocks connected to it; Executions shows which trigger started it. An AGO event starts a workflow once, even when several of its triggers match it. Conversation inactive, SLA at risk and SLA breached are the exception: each of their triggers starts its own execution, for example one after 10 minutes of silence and another after an hour. A workflow can have up to 10 triggers: AGO events and schedules can be repeated, while Manual, Agent tool call, Incoming webhook and Record action can appear once each. Run workflow starts from the Manual trigger, or from the first trigger when there is none. A block reached from several triggers can only use the data every one of them provides: for example input.thread_id is shared by Feedback given and Feedback received, but only Feedback received gives input.comment. Publishing refuses a block that uses data one of its triggers does not provide; read that data in a block only that trigger leads to. 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 an AGO event

With the AGO event trigger, pick the event under Event. Its data becomes the workflow input: refer to it as input.ticket_id, input.rating and so on, or pick it with Insert data in the next blocks (see Use data between blocks). Data available in later blocks lists it in the editor. An identifier or value that does not apply is an empty string. Under Only when, narrow the event to the cases you care about, for example a ticket moving to the Urgent priority, a negative rating or an evaluation that needs review. Lists such as statuses, tags, teams, team members, agents and mailboxes offer the values of your workspace. Every condition you set must match; text is compared without regard to case. Conversation inactive and SLA at risk take a number of minutes. AGO checks for them and for SLA breached every few minutes, so the workflow starts within about five minutes of that moment. As for schedules, an occurrence AGO could not start within 10 minutes is skipped, and each occurrence starts the workflow once. A few events are not raised for everything:
  • Changes made by a workflow do not trigger events, so a workflow cannot start another workflow this way.
  • Simulation conversations do not trigger events, and imported conversations do not trigger Message added, Conversation evaluated or Conversation inactive.
  • Personal mailboxes never trigger Email received, and the content of the email is not passed on.
  • A ticket that gets a priority when it had none, as on the first sync of an external helpdesk, does not trigger Ticket priority changed, and messages older than one hour brought in by a sync do not trigger Ticket message added.

Choose how it runs

In Settings, Execution decides whether the caller waits for the result: A workflow to be used by an agent waits for its result: every one of its triggers must be a manual, webhook, agent or record action 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

The quickest way to use data is Insert data next to a field: it lists what the block can read, grouped by source, with readable names. The trigger comes first, for example Comment for Feedback received, followed by the result of each block that always runs before this one, such as the Answer of an AI prompt or the fields its Output schema declares. Search by name, then select an entry:
  • in a field holding a value or a reference, it becomes a Reference to that data, and its name is shown under the field;
  • in a JSON object or list you are writing, such as the value of Transform data, {"$ref": "…"} is inserted at the cursor;
  • in a Text with references, it is inserted at the cursor, for example {{input.comment}};
  • in a Function, it is added as the last argument.
Choose how each field is filled with the selector next to its name: In a Value field that accepts any kind of data, such as the two sides of a Condition, plain text such as urgent is kept as text. Numbers, true, false, null and valid JSON keep their type: 42 is a number, while "42" in quotes is text. 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.

Authenticate with secrets

Store API keys and OAuth2 credentials as secrets in the workflow’s Settings > Secrets, then reference them by name in a header value of an HTTP request block: Select Add secret and choose:
  • Available to: This workflow for a secret only this workflow can use, or All workflows to share it with every workflow of the workspace. If a workflow has its own secret with the same name as a shared one, its own secret is used.
  • Type: API key or token sends the value as you entered it. OAuth2 client credentials takes a token URL, a client ID, an optional scope and the client secret: AGO requests an access token and inserts it where the secret is referenced, for example after Bearer . Tokens are renewed automatically before they expire.
  • Allowed hosts: the API host names the secret may be sent to, for example api.example.com. A request to any other host is refused before anything is sent.
Secret values are write-only: nobody can view them after saving, including through the API. To change a value, its allowed hosts or its OAuth2 settings, open the secret’s ⋮ menu, choose Replace value and enter the value again. Each secret shows which workflows use it and when it was last updated. Deleting a secret makes the HTTP blocks that use it fail until you add it again. You can also manage secrets through the API or MCP, see Manage secrets through the API or MCP. Publishing checks that every referenced secret exists and that a block with a fixed address only sends it to one of its allowed hosts. When the address comes from data, the host is checked when the request is sent. Secrets can be used in any header value, as plain text, in a Text with references next to data, for example {{input.account}}:{{secrets.API_KEY}}, or as a Reference to secrets.API_KEY. Data inserted from a webhook, a conversation or a previous block is always sent as written, even if it contains {{secrets.…}}, so it can never choose which secret is sent. Secrets cannot be used outside headers or passed to functions, so they never appear in another block’s result. If an API returns a secret in its response body, it appears as [secret] in the execution log. Authorization, Proxy-Authorization, Cookie, X-API-Key and API-Key headers must reference a secret: workflows are readable by every administrator, so credentials typed directly into them are rejected. You can also select a saved HTTP tool under Connection. Its credentials can only be used with the connection’s configured host, and the user running the workflow must have access to the tool. Requests to your workspace’s AGO Apps need no secret or connection: AGO signs them automatically, as it does for HTTP tools and API data sources. 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. Create ticket opens the ticket the ticket form would have created, without asking the user: it is linked to the conversation given in Conversation ID, or else to the conversation whose agent started the workflow when that conversation has no ticket yet. Fields take the default values set on the user’s ticket form; a required field with no default is left empty, since only the user could answer it. A website visitor is reached at the email already known for them, for example the one your site passes to the SDK.

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. 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.

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.

Read and write customer records

Find records returns the records of a Customers object type that match a filter, 20 by default and up to 50 (Maximum number of records), as {"total": 12, "records": [{"id": "...", "title": "...", "values": {...}}]}. Later blocks read steps.<id>.records. The filter uses the same conditions as the CRM API, for example {"plan": "Pro", "seats": {"$gte": 10}}. Create or update a record writes a record of a custom object type: Values maps attribute keys to values, and null clears one. Links maps link type keys to record ids. The block returns record_id, created and values. Both blocks act with the access of the person the run is for: the workflow’s creator for an event or a schedule, the person who clicked for a Record action. That person must be allowed to read, or edit, the object type. Records written by a workflow do not trigger record events.

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. You can also select the workflow from the agent: see below. The agent receives a tool with the workflow’s input schema. With To be used by an agent, 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. You can also choose an agent’s workflows from the agent itself: in its Capabilities tab, open Workflows and select them. The list shows the workflows that start from an Agent tool call trigger, plus any workflow the agent is already allowed to start, with their status, and a selected workflow that the agent cannot call yet, for example because it is paused or not published, is flagged. Both places edit the same Allowed agents list. Changes made on the agent apply when you publish the agent; agent tests use the published list. A workflow editor that was already open must be reloaded before saving.

Show the ticket form

Instead of creating a ticket directly, end the workflow with Show ticket form. Once the workflow finishes, the user sees the ticket form in the conversation, as when they ask the agent for a ticket: they review it, complete it and submit it. When Live Human Takeover is turned on, a conversation in the AGO chat is handed over to your team instead, as it is when the agent calls the ticketing tool. Fill Subject and Body with fixed values, references or text with references, for example Refund for order {{input.order_id}}. Priority is Automatic (AI), Low, Normal, High or Urgent; a reference must resolve to auto, low, normal, high or urgent, otherwise the execution fails. A field left empty, or a priority set to Automatic (AI), is filled from the conversation as usual. The form is only shown to users allowed to create tickets, and the agent does not need the ticketing tool. The block ends its branch and only works in a workflow started only by Agent tool call with To be used by an agent: publishing refuses it anywhere else. To act on the ticket once it is submitted, use another workflow with the Ticket created event.

Call a webhook

Choose Incoming webhook, save the workflow, and generate a webhook secret in Settings. Copy it immediately: it is shown only once. Generating another secret invalidates the previous one. Send a POST to the displayed path on your workspace’s AGO API domain, with the secret in X-AGO-Webhook-Secret:
With To be used by an agent, 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. In the list, an execution started by an agent shows the title of the conversation that called the workflow. Select the execution, then Open conversation, to read that conversation. Executions started before this information was recorded do not show a conversation. 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. A workflow can have up to 50 blocks, and a workspace up to 100 executions running in the background at once. Loops and merging branches are not supported. Input and block results are limited to 256 KiB.

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). It has one or more trigger nodes (types starting with trigger.), and each trigger reaches the blocks it starts through edges. 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.

Manage secrets through the API or MCP

With workflows:write, create or replace a secret with PUT /api/v1/workflows/secrets/{name} for a shared secret, or PUT /api/v1/workflows/{id}/secrets/{name} for a workflow’s own secret. The MCP tool set_workflow_secret does the same, with an optional workflow_id:
For OAuth2 client credentials, send "kind": "oauth2_client_credentials" with token_url, client_id, an optional scope, and the client secret as value. As in the editor, value is required on every update and is never returned. With workflows:read, GET /api/v1/workflows/secrets, GET /api/v1/workflows/{id}/secrets or the MCP tool list_workflow_secrets return each secret’s name, type, allowed hosts and the workflows using it. Delete a secret with DELETE on the same address or delete_workflow_secret. When you give a secret to an AI assistant connected through MCP, the value also appears in that assistant’s conversation. Create sensitive secrets in the editor if you do not want it there.