Documentation Index
Fetch the complete documentation index at: https://docs.decisional.com/llms.txt
Use this file to discover all available pages before exploring further.
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.
Agents as top-level objects
Agents are the main objects you create, operate, and share in Decisional. Dex can help you build or change them, but the agent is the durable worker that owns the process. Each agent has:- A plain-English job description
- A workflow that carries out that job
- Tools, sources, and triggers for the systems it can access
- Runs and logs that show what happened
- Approval policy that controls when the agent pauses, asks for review, bypasses eligible approvals, or blocks an action
Dex and Agent Modes
Learn how Dex works with agents across Chat Mode, Operator Mode, and Run Mode.
Operating modes
Use the mode picker to match the agent surface to the job:| Mode | Best for |
|---|---|
| Chat Mode | Conversational requests, one-off work, explanations, and follow-up questions |
| Operator Mode | Changing instructions, workflows, tools, triggers, sources, skills, and approval behavior |
| Run Mode | Sharing a public run page with people who should not edit the agent |
Agent Lifecycle
Internal statuses (backend workflow granularity):- init, active, inactive - platform-level flags, not part of the setup wizard flow
- draft → connecting → connected → building → built → testing → tested → live ↔ paused - setup + execution lifecycle
- draft - any pre-tested state (draft/connecting/connected/building/built/testing)
- ready - tested
- live - agent is running
- paused - agent paused; no runs execute until resumed
Creating Your First Agent
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 — spreadsheets, PDFs, price lists, or templates.Example:
Answer Clarifying Questions
Your agent may ask follow-up questions to fill in gaps — like which spreadsheet to use, what format you want output in, or how to handle edge cases.
Review Instructions
Decisional writes up a set of instructions — a plain-English summary of exactly what your agent will do. Review them and tell the agent to change anything that’s off.
Connect Integrations
Your agent identifies the required tools and integrations. Open the connections panel to connect any apps it needs, or ask Dex to start the connection flow.
Agent Components
Every agent has six key components:Instructions
Natural language description of what the agent should do
Workflow
The graph of nodes the agent executes to complete the work
Sources
Documents that provide context (PDFs, links, files)
Integrations
Connected services such as email, CRM, team chat, and spreadsheets
Triggers
How the agent gets activated (schedule, event, manual)
Approval Policy
Rules for review, bypass approvals, and blocked actions
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:
Instruction Template
Use this template as a starting point:Configuring Your Worksheet
The worksheet is your agent’s data layer - where it reads inputs and writes outputs.Worksheet Structure Tips
- Clear Headers
- Input vs Output
- Use Formulas
- Data Validation
Use descriptive column names:Good:
| Customer Name | Order Date | Product SKU | Quantity | Unit Price | Total |Bad:
| Name | Date | Prod | Qty | Price | $ |
Working with Multiple Sheets
You can have multiple sheets in one workbook:- Inputs: Raw data the agent processes
- Outputs: Results the agent generates
- Reference: Lookup tables (price lists, vendor catalogs)
- Errors: Failed items that need manual review
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
Upload Files
Click Add Source → Upload FileDrag and drop multiple files at once (up to 50MB per file)
RAG and Citations
Decisional uses Retrieval-Augmented Generation (RAG) to help agents understand your documents:How RAG Works
How RAG Works
- Indexing: Your documents are processed and semantically indexed
- Retrieval: When the agent needs info, relevant sections are retrieved
- Reasoning: The agent uses retrieved context to make decisions
- Citation: The agent cites specific pages/sections it referenced
Bounding Box Citations
Bounding Box Citations
For PDFs, Decisional highlights the exact location the agent read:
- Page number
- Paragraph or section
- Bounding box showing the highlighted text
Source Quality Tips
Source Quality Tips
Better sources = better agent performance:
- Use text-based PDFs (not scanned images, unless you need OCR)
- Organize documents clearly with headers and sections
- Remove irrelevant pages (cover pages, blank pages)
- Use descriptive filenames
- Keep documents focused (one topic per file)
Connecting Integrations
Integrations let your agent take actions beyond the spreadsheet.Available Integration Categories
- Communication
- CRM & Sales
- Storage & Files
- Databases
- Other
Email:
- Gmail
- Outlook
- SMTP
- Slack
- Microsoft Teams
- Discord
- Send quotes to customers
- Notify team of errors
- Post updates to channels
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
Prepare Test Data
Create a small dataset (5-10 rows) with:
- Typical cases
- Edge cases
- Known error cases
Review Output
Check that:
- All expected columns are filled
- Data is accurate
- Formatting is correct
- Edge cases are handled
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 worksheet column names match instructions
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:
Connect them with triggers: Agent 1’s completion triggers Agent 2, and so on.
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
Review Executions
See all past runs with:
- Status (Running, Completed, Failed, Needs Review)
- Duration
- Timestamp
- Inputs and outputs
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 worksheet
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 worksheet 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 Worksheets
Master spreadsheet operations and data management
Working with Sources
Learn advanced document processing and RAG
Dex
Use the chat interface to debug and iterate
Workflows
Follow step-by-step guides for common workflows