What Are Workflows?
A workflow is a series of connected blocks that run in response to a trigger. Each block performs one job — calling an API, evaluating a condition, running an AI agent, or transforming data — and passes its output to the next block in the chain. Workflows let you build processes that are too complex or too repetitive to handle manually, and automate them with confidence. Common use cases include:- A new lead fills out a form → add to CRM, research their company, notify your sales team
- A meeting ends on Zoom → transcribe the recording, extract action items, send a follow-up email
- A support ticket is created → categorize it, suggest a response, escalate if urgent
- A calendar event approaches → prepare a briefing, attach relevant documents, notify attendees
When to Use Workflows vs. Agents
Workflows and agents solve different problems. Use the table below to choose the right tool for your situation.| Aspect | Workflows | Agents |
|---|---|---|
| Best for | Predictable, repeatable processes | Open-ended, adaptive tasks |
| Control flow | Predefined steps and branches | Agent decides the approach |
| Triggers | Events, webhooks, schedules | Chat messages, mentions |
| Consistency | Same output every time | May vary based on context |
| Complexity | Excellent for multi-step integrations | Better for nuanced judgment calls |
- You know the exact steps in advance
- You need reliable, repeatable automation
- The process should run automatically on a trigger
- Multiple tools need to be connected in sequence
- The task requires creativity or judgment
- The approach isn’t predictable in advance
- You want conversational, back-and-forth interaction
- The system needs to adapt to unexpected situations
Triggers
Every workflow starts with a trigger — the event that kicks off a run. Scout supports four trigger types:- Webhooks — HTTP requests sent from an external service (payment system, form tool, CRM)
- Schedules — Time-based execution using cron syntax (daily, weekly, on a specific interval)
- Events — Scout-native events such as an agent completing a task or a file being uploaded
- Integrations — Native triggers from connected tools like calendar reminders or incoming emails
Blocks
Blocks are the individual units of execution inside a workflow. Each block takes inputs, performs exactly one job, and produces structured output that the next block can use.Action Blocks
Perform operations — call external APIs, write to databases, send notifications, or push data into connected tools.
Agent Blocks
Run an AI agent as a step in your workflow. Use these when a decision requires language understanding or judgment.
Condition Blocks
Branch your workflow with if/else or switch logic. Route data to different downstream blocks based on any value.
Transform Blocks
Reshape, filter, or restructure data between steps. Keep downstream blocks clean by normalizing inputs here.
Data Flow Between Blocks
Each block outputs structured data that downstream blocks can reference directly. You connect blocks by mapping output fields to input fields — click an output handle and drag it to the next block’s input handle in the Studio canvas. Once connected, reference any prior block’s output using double-brace syntax:classify_ticket, the next block can read its result as {{ classify_ticket.output }}. This makes it straightforward to build chains where each step enriches or transforms data before passing it on.
Error Handling
Workflows include built-in error handling so failures don’t silently break your automation.Retry behavior
Configure per-block retry logic for transient failures like network timeouts or rate limits.
Fallback paths
Set alternate branches for expected failure cases so your workflow degrades gracefully.
Failure notifications
Get alerted immediately when a run fails so you can investigate before it impacts users.
Execution logs
Review the full block-by-block trace of every run to pinpoint exactly what went wrong.
The Power of Agent Blocks
Workflows don’t have to be rigid. Drop an Agent Block into any workflow to add AI judgment exactly where you need it, without sacrificing the reliability and structure of the surrounding automation. Here’s what that looks like for a support ticket workflow:Getting Started
Add a trigger
Choose a webhook, schedule, event, or integration trigger to define what starts your workflow.
Build your block chain
Add blocks from the block library and connect them by dragging output handles to input handles.
Test in Console
Click the play icon to open the Console. Run the workflow with a real input payload and inspect each block’s output.
Next Steps
Creating Workflows
Define objectives, inputs, and outputs before you build — and follow the validate-fetch-decide-act-return pattern.
Blocks
Learn which block types to use and when, including how to pass data between them.
Running Workflows
Execute workflows from the Studio UI, REST API, Python SDK, or TypeScript SDK.
Environments
Promote changes from development to production and roll back safely when needed.
Logs
Debug failures and monitor performance with block-level execution traces.