Workflows
Create complex multi-step automated processes.
Workflows in Lattice allow you to chain multiple agents and actions together to create sophisticated automated processes.
Workflow Components
- Triggers - Events that start the workflow
- Steps - Individual actions or agent calls
- Conditions - Logic for branching paths
- Outputs - Results passed between steps
Example Workflow
yaml
name: CustomerOnboarding
trigger:
type: webhook
path: /new-customer
steps:
- name: SendWelcome
agent: EmailAgent
action: send
template: welcome-email
- name: CreateAccount
agent: DatabaseAgent
action: insert
table: customers
- name: AssignRep
agent: SalesAgent
action: assign-representative
condition: customer.plan === 'enterprise'