Workflows are sequences of actions that let your Duckie agent handle tickets in a predictable, automated way. Workflows give you full control over your agent’s behavior, combining deterministic logic with LLM-driven decision-making.
The goal of workflows is to let you teach your AI agent to follow your runbook or SOPs.If you have a defined process for handling a type of ticket — like how to cancel a subscription or how to troubleshoot a product feature — you can use workflows to automate that logic. The AI agent will follow the steps you define, just like a human agent would.With workflows, you can:
Define how your agent responds to different types of tickets
Control decision-making using conditions
Customize the response and escalation logic of your agent
Call Agent Tools to trigger actions (e.g. process refunds, fetch logs)
Calls a sub-workflow (child workflow) to keep your logic modular. Use it to route tickets to different workflows based on intent. For example:
A payment workflow for billing issues (e.g. refunds, subscription checks)
A product how-to workflow for usage questions
A bug report workflow for logging issues and filing tickets
You can have a main workflow that detects the ticket type and ties these sub-workflows together, making your automation modular and easy to manage.→ Next: How to Create a Workflow