Build and publish a workflow
Follow this workflow to take an idea from a starter template to a published, immutable agent version that can run on manual, cron, or event triggers.Workflow overview
Before you begin
- Open the Studio from the Agents entry in the main navigation.
- Decide which trigger you want (manual, schedule, month-close readiness, new counterparty, or signed external event). See Trigger workflows.
- If the workflow will read from or write to Slack or Gmail, connect those accounts first. See Connect Slack, Gmail, and event sources.
1. Start from a template or a blank draft
The Agents view lists the workflows already in the tenant and the built-in templates. Built-in templates:
To start a workflow:
- In the Agents view, select a template card or Blank draft.
- The Studio opens the Builder with a new draft attached to the workflow.
Draft and no published version.
2. Edit the draft in the Builder
Every workflow has one editable draft. Save it as often as you like; nothing runs until you publish. Fill in the following:- Name and description. Use a name that reads well in the Approvals view when a reviewer sees a proposal from the workflow.
- Instructions. The prompt the agent follows on every run. Be explicit about scope, the evidence to cite, and what to do when data is missing.
- Output instructions. Describe the shape of the final answer, for example “return an executive summary, material variances, cash observations, risks, and source links.”
- Tools. Enable only the Control data reads the workflow needs. Each tool card shows its provider, description, and risk label. Tools that talk to Slack or Gmail also let you pick a specific connection and a fixed destination.
- Triggers. Manual is always on. Add a schedule, subscribe to a Control event, or accept signed external events. See Trigger workflows for the full list.
Governance: Tool grants are explicit. If a tool is not enabled on the draft, the agent cannot read that data at run time.Checkpoint: Select Save draft. The workflow’s
updatedAt timestamp advances and the toast confirms Draft saved.
3. Validate the draft
Validation checks that the draft is internally consistent before you publish. It reports errors that block publication and warnings you can review.- Select Validate.
- Read the returned errors and warnings.
- Fix any errors and validate again.
4. Publish an immutable version
Publishing seals the current draft into a numbered version. The version stores the instructions, output contract, tool grants, and trigger set, along with a snapshot checksum. Later edits will start a new draft; publishing that draft produces the next version.- Select Publish.
- The workflow’s status becomes
Activeand its current version increments. - Scheduled and event triggers begin producing occurrences on the new version.
5. Run the workflow
You can trigger a run at any time, even before wiring up a schedule or event, to confirm the workflow behaves as expected.- In the Builder, enter optional test input.
- Select Run now.
- Move to the Runs view to watch the run progress. See Review runs and approvals.
Managing published workflows
Use the workflow’s action menu in the Builder or Agents view for lifecycle actions:Verify the completed workflow
- Confirm the current version number and publisher shown in the Builder match the change you intended.
- Trigger a manual run and inspect the events and output in the Runs view.
- If a schedule is enabled, verify the Next runs preview lists the times you expect in the tenant’s time zone.
- If an external write is proposed, confirm the payload and fixed destination in the Approvals view before approving.