Create a workflow
Create a workflow in the Workflow Builder. Choose AI Setup to have AI Studio design the workflow from a description, or Manual Setup to pick the workflow type and agents yourself.
Before you start
- A workflow can include only Active agents. See Enable, disable or delete an agent.
- Workflow Name can use letters, numbers, underscores and hyphens only, with no spaces or special characters.
Workflow types
| Type | How the agents run |
|---|---|
| Sequential | In a defined order. Each agent gets the previous output. |
| Parallel | At the same time. Results are combined at the end. |
| Supervisor | A supervisor routes tasks and combines the outputs. |
| Loop | In a cycle, refining the result until a stopping condition is met. |
Create a workflow with AI Setup
- On the Agentic Workflow screen, select Create Workflow. The Workflow Builder opens.
- Select AI Setup.
- In Workflow Name, enter a name of up to 80 characters, for example
Customer_Support_Pipeline. - In Industry / Area, select the closest match.
- In Workflow Description, describe what the workflow should accomplish, the process it should follow and its goals.
- Under Visibility, select Org so anyone in your account can use the workflow, or Private so only you can see and use it.
- Optional: add Tags and an Avatar.
- Select Generate Workflow Configuration.
- Review the result. It shows the AI Design Rationale, Workflow Overview, Flow Preview, the agents with their system prompts, and Execution Settings. Select Previous to make changes.
- Select Create Workflow to save and activate the workflow, or Save as Draft to finish later.
Create a workflow with Manual Setup
Manual Setup has three steps: Basics & Type, Agents & Flow and Review & Create.
- On the Agentic Workflow screen, select Create Workflow.
- Select Manual Setup.
- Enter the Workflow Name and a Description of up to 180 characters.
- Under Workflow Type, select Sequential, Parallel, Supervisor or Loop.
- Optional: enter a Welcome Message and choose an Avatar.
- Under Execution Settings, set:
- Error Handling: Stop on Error, Continue on Error or Retry on Error.
- Max Iterations: how many times the workflow may repeat.
- Timeout (seconds): how long the workflow may run.
- Select Next.
- Under Available Agents, select the agents to add. Type in Search agents... to find one. The Flow Preview shows the order.
- To adjust an agent for this workflow, select it in the flow. In Configure Agent, change Agent Name, Role, System Prompt or Model, then select Save Agent.
- Select Next.
- Check the Workflow Overview, agents and Execution Settings. Set Visibility and Tags.
- Select Create Workflow, or Save as Draft to finish later.
What happens next
If you saved a draft, the message Workflow saved as draft successfully. appears. If you created the workflow, it starts activating. See Agentic Workflow.
Troubleshooting
- Next stays unavailable: enter both a name and a description.
- name and description are required: enter both fields.
- only active agents can be added to a workflow: remove the inactive agent, or enable it first.
- No active agents found. enable at least one agent. See Enable, disable or delete an agent.
- Failed to generate workflow configuration: check the name and description, then try again.