Agent Blocks run an agent you’ve already built in Scout. If you don’t have one yet, start with Getting Started with Agents and come back once you have an agent to embed.
When to Use an Agent Block
Reach for an Agent Block whenever a step needs to interpret something rather than follow a fixed rule. Processing unstructured data. Pull intent, urgency, and key details out of an incoming email, support ticket, or document — text that has no fixed schema and can’t be parsed with a condition. Intelligent routing. Categorize tickets, score and qualify leads, or tag feedback so downstream blocks can branch on the result. Content generation. Draft a follow-up email, summarize a meeting, or produce a report from the data the workflow has gathered so far. Research and enrichment. Research a company, surface recent news, or assemble context about a contact before the workflow records or acts on it.How Agent Blocks Work
Adding a block
Open the workflow builder
Open the workflow where you want to add AI judgment, and click the + to add a new block.
Select Agent Block
Choose Agent Block from the block picker, then select which of your agents should run at this step.
Write the prompt and map inputs
Give the agent its instructions for this step and map in the inputs it needs (see below).
Configuring inputs
An Agent Block can draw its inputs from three sources:- The workflow trigger — data from the event that started the run, e.g.
{{ trigger.ticket_body }} - Previous blocks — output from any block earlier in the workflow
- Static values — fixed text or configuration you type directly
Handling output
The agent’s response is available to downstream blocks asagent_result, referenced through the block’s name. If an Agent Block named analyze_ticket returns a structured result, later blocks can read individual fields:
Example: Meeting Follow-up Workflow
This workflow turns a raw meeting transcript into tracked tasks and a drafted follow-up email — without anyone reviewing the transcript by hand.Agent Block — extract action items
An agent reads the transcript and extracts action items, decisions, and follow-ups, assigning an owner and deadline to each.
Action Block — create tasks
An Action Block creates a task in your project tool for each action item the agent returned.
Agent Block — draft the email
A second agent drafts a follow-up email summarizing the decisions and next steps.
Example: Lead Intelligence Workflow
This workflow enriches a new lead, records it, and routes it based on its value — combining research, a CRM write, content generation, and branching in a single run.Agent Block — research the company
An agent researches the lead’s company and assembles context: size, industry, recent news, and a lead score.
Action Block — create the CRM record
An Action Block creates a CRM record populated with the enriched data.
Agent Block — generate outreach
An agent generates a personalized outreach email tailored to the company and its context.
Best Practices
Keep agents focused. One task per block. Chain several focused Agent Blocks rather than asking a single agent to do everything — focused agents are more accurate and far easier to debug when something goes wrong. Define clear outputs. Tell the agent exactly what format to return, ideally JSON with named fields likecategory, urgency, summary, and suggested_action. Predictable output is what makes downstream blocks reliable.
Handle edge cases. Add a Condition Block after the agent to catch invalid or low-confidence output and route it to a human review queue instead of letting the workflow act on a bad result.
Use instructions as configuration. Be specific in the prompt about the inputs, the required output format, and any constraints. The prompt is how you tune an Agent Block’s behavior for its place in the workflow.
Limitations
- Agent Blocks run synchronously by default. The workflow waits for the agent to finish before moving to the next block.
- Split long tasks. Complex work that takes more than a few seconds should be broken across multiple blocks, or handled with async interactions so the workflow isn’t blocked.
- Use Condition Blocks for deterministic logic. If a decision doesn’t require judgment, a Condition Block is faster and more predictable than an agent.
Next Steps
Workflows Overview
See how triggers, blocks, and branching fit together.
Workflow Blocks
Explore every block type you can combine with Agent Blocks.
Agents Overview
Build and configure the agents you embed in workflows.
Delegation
Coordinate multiple agents on a single complex task.