What Are Agents?
Agents are AI workers that execute business workflows. They follow your instructions, use configured tools and sources, and produce runs you can inspect.Core Principle
Agents combine your instructions + your tools + your sources + approval policy to automate workflows while keeping runs reviewable.
How an Agent is Organized
Agents are the main objects you create, operate, and share in Decisional. Dex can run agents and show details about their runs, while configuration changes happen in the Decisional web app. Think about an agent in three layers:Workspace
The operating home for the agent. This is where you manage instructions, workflow, runs, outputs, inbox, state, activity, and context.
Context
The material the agent can use while working. This includes files, sources, uploaded skills, and platform skills loaded for the job.
Modes
The ways people operate the agent: Chat Mode for conversation, Operator Mode for configuration, and Run Mode for public execution.
Workspace Elements
The agent workspace is the control surface for a specific agent. The Agent Manager separates the agent’s configuration, execution history, generated artifacts, inbox, state, activity, and context.Instructions
The plain-English operating spec for the agent. Instructions cover the job, success criteria, edge cases, triggers, tools, and runtime parameters.
Workflow
The inspectable graph of nodes the agent executes. The workflow shows the steps, tool calls, gates, branching, and generated outputs.
Runs
The execution history for the agent. Runs show status, logs, node activity, approvals, files, outputs, and failure details.
Outputs
Files, structured results, and other artifacts produced by the agent. Use outputs to inspect what a run created or download generated files.
Inbox
The agent’s email-style intake and response surface when an agent has an inbox. Use it to review inbound requests and outbound replies.
State Store
Durable state the agent keeps between runs, such as remembered values, counters, intermediate records, or configuration used by the workflow.
Activity
A recent timeline of actions, test runs, completed runs, and other agent events. Use it to jump back into the latest work.
Policy
Approval behavior, tool permissions, public access, and other operating controls that govern what the agent can do automatically.
Agent Context
Context is the knowledge and capability the agent brings into a run. Keep it focused so the agent can retrieve the right information and load the right skill for the job.Agent Modes
Use the mode picker to match the agent surface to the job:
Configuration changes belong in Operator Mode. Run Mode is for running or reviewing a public agent, not rebuilding it.
Agent Modes
Learn how agents work across Chat Mode, Operator Mode, and Run Mode.
Agent Lifecycle
The app shows the public state of each agent:Creating Your First Agent
1
Describe What You Want
From the home page, type what you want to automate in the prompt box. You can also upload files for context, such as PDFs, price lists, or templates.Example:
2
Answer Clarifying Questions
Your agent may ask follow-up questions to fill in gaps, such as which source to use, what format you want output in, or how to handle edge cases.
3
Review Instructions
Decisional writes up a set of instructions — a plain-English summary of exactly what your agent will do. Review them and edit anything that’s off in the Decisional web app.
4
Connect Integrations
Your agent identifies the required tools and integrations. Open the connections panel to connect any apps it needs.
5
Build & Test
Build the workflow, then test it to make sure everything works. Action nodes can pause for approval depending on the agent and tool policy.
Writing Effective Instructions
Instructions are the most important part of your agent. Write them like you’re training a smart new hire.Best Practices
Be Specific and Clear
Be Specific and Clear
Bad Example:Good Example:
Define Success Criteria
Define Success Criteria
Tell your agent what “done” looks like:
Handle Edge Cases
Handle Edge Cases
Anticipate problems and tell your agent what to do:
Reference Sources
Reference Sources
If you’ve uploaded context documents, tell your agent when to use them:
Use Examples
Use Examples
Show your agent what good output looks like:
Adding Sources
Sources provide context to your agents so they can make informed decisions.Types of Sources
PDFs
Contracts, invoices, forms, reports, SOPs
Spreadsheets
Price lists, catalogs, historical data
Documents
Policies, templates, procedures
Images
Receipts, forms, diagrams (OCR enabled)
Web Links
Company websites, documentation, APIs
Text Files
Code, configs, raw text data
How to Add Sources
1
Click Sources Tab
In your agent page, click Sources in the left sidebar
2
Upload Files
Click Add Source → Upload FileDrag and drop multiple files at once (up to 50MB per file)
3
Add Web Links
Click Add Source → Add LinkPaste a URL. Decisional will fetch and index the content.
4
Name Your Sources
Give each source a descriptive name so you can reference it in instructions:Example: “Q4 2024 Price List” instead of “pricelist_final_v3.xlsx”
Connecting Integrations
Integrations let your agent take actions in the systems where work happens.Using Integrations in Instructions
Once connected, reference integrations in your agent instructions:Setting Up Triggers
Triggers control when your agent runs.Trigger Types
- Manual
- Schedule
- Event-Based
- API
Click the Run buttonBest for:
- Testing new agents
- One-off tasks
- Ad-hoc workflows
Testing Your Agent
Before going live, always test your agent thoroughly.Testing Workflow
1
Prepare Test Data
Create a small dataset (5-10 rows) with:
- Typical cases
- Edge cases
- Known error cases
2
Run Test
Start a manual run and review the run details, node logs, outputs, and approvals
3
Review Output
Check that:
- All expected columns are filled
- Data is accurate
- Formatting is correct
- Edge cases are handled
4
Iterate Instructions
If results aren’t perfect, refine your instructions and test again
Common Issues & Fixes
Agent is missing data
Agent is missing data
Problem: Some columns are empty or incompleteSolutions:
- Make it explicit in instructions: “You MUST fill all columns”
- Provide examples of complete output
- Add a validation rule: “If any required field is missing, flag for review”
Agent misunderstands instructions
Agent misunderstands instructions
Problem: Agent does something unexpectedSolutions:
- Break down complex steps into simpler ones
- Add more examples
- Use numbered steps instead of paragraphs
- Be more explicit about what NOT to do
Agent can't find information
Agent can't find information
Problem: Agent says it doesn’t have the required dataSolutions:
- Check that sources are uploaded and indexed
- Reference sources by name in instructions
- Verify the information is actually in the documents
- Check that source names, field names, and instructions match
Agent is too slow
Agent is too slow
Problem: Agent takes too long to runSolutions:
- Reduce the number of sources (only upload what’s needed)
- Process in smaller batches
- Remove large, irrelevant documents
- Simplify instructions (fewer steps)
Advanced Agent Patterns
Multi-Step Workflows
For complex workflows, break them into multiple agents:1
Agent 1: Data Collection
Collects and validates input data
2
Agent 2: Processing
Performs the core task
3
Agent 3: Distribution
Sends results to stakeholders
Human-in-the-Loop
For high-stakes decisions, add manual review:Error Handling
Build resilience into your agents:Chaining with APIs
Use agents to orchestrate API calls:Monitoring & Optimization
View Run History
1
Go to Runs Tab
Click Runs in the left sidebar
2
Review Executions
See all past runs with:
- Status (Running, Completed, Failed, Needs Review)
- Duration
- Timestamp
- Inputs and outputs
3
Click for Details
Click any run to see:
- Full execution log
- AI reasoning step-by-step
- Source context and generated outputs
- Error messages (if failed)
Performance Metrics
Track your agent’s performance:- Success rate: % of runs that complete successfully
- Average duration: How long runs take
- Error patterns: Common failure reasons
- Manual review rate: How often human intervention is needed
Optimization Tips
Reduce Run Time
- Upload only necessary sources
- Process in batches
- Use lighter file formats
- Cache reference data in a connected system
Improve Accuracy
- Add more examples
- Upload better source documents
- Add validation rules
- Test with edge cases
Handle More Volume
- Increase schedule frequency
- Use event-based triggers
- Process in parallel (multiple agents)
- Optimize data structure
Reduce Errors
- Add error handling rules
- Validate inputs first
- Use try-catch patterns
- Log everything for debugging
Best Practices
Start simple, iterate: Don’t try to build a perfect agent on day one. Start with the core workflow and add features over time.
Test with real data: Use actual examples from your business, not synthetic test data.
Document your agents: Add comments in instructions explaining why certain rules exist.
Version control: Before making major changes, duplicate your agent so you can roll back if needed.
Monitor continuously: Check run history regularly, especially in the first few weeks.
Get feedback: Have actual users test your agent and report issues.
Next Steps
Working with Sources
Learn how files and sources give agents context
Dex
Ask questions about agents, runs, and approvals
Workflows
Follow step-by-step guides for common workflows