Understanding Agents
Agents are the intelligence layer of QuivaWorks. They’re AI-powered workers that can understand context, reason through problems, use tools, and make decisions—all within boundaries you define.What is an Agent?
An agent is an AI that can:- Understand - Parse natural language and complex data
- Reason - Think through problems step-by-step
- Act - Use tools and APIs to accomplish tasks
- Decide - Make judgements based on policies and context
- Adapt - Handle exceptions and edge cases
Agents vs. Automation vs. Chatbots
Traditional Automation
“If this, then that”Follows exact rules. Breaks on exceptions. Requires programming every scenario.❌ Can’t handle variability
❌ Needs explicit programming
❌ Brittle with edge cases
❌ Needs explicit programming
❌ Brittle with edge cases
Simple Chatbots
“Conversation interface”Responds to keywords. Limited to chat. No real reasoning or actions.⚠️ Keyword-based only
⚠️ Can’t use tools
⚠️ Limited to conversation
⚠️ Can’t use tools
⚠️ Limited to conversation
quiva.ai Agents
“Digital workforce”Reasons through problems. Uses tools. Handles exceptions. Makes decisions.✅ Intelligent reasoning
✅ Uses tools dynamically
✅ Handles complexity
✅ Works within boundaries
✅ Uses tools dynamically
✅ Handles complexity
✅ Works within boundaries
Core Agent Capabilities
1. Intelligence & Reasoning
Agents can:- Understand natural language and intent
- Reason through multi-step problems
- Handle ambiguity and edge cases
- Learn from context and conversation history
- Apply business logic flexibly
Example: Customer Service
Customer: “I want to return this shirt but I lost the receipt. It’s been 35 days.”Traditional Automation: Breaks (doesn’t match exact return scenario)Agent:
- Understands customer wants to return an item
- Checks order history (using tool)
- Sees purchase was 35 days ago (5 days past standard policy)
- Reviews return policy (using tool)
- Notes customer has good history and high lifetime value
- Decides to approve as one-time exception
- Processes return and explains decision to customer
2. Tool Usage
Agents can use tools (connectors) to:- Search knowledge bases
- Query databases
- Call APIs
- Access CRM data
- Process documents
- Send emails
- Update systems
Tools are MCP (Model Context Protocol) servers that provide standardized access to your systems. Learn more in Tools & Connectors.
3. Guardrails & Boundaries
Agents work within boundaries you define:- Output validation - Ensures responses match required format
- Business rules - Enforces policies and constraints
- Human-in-the-loop - Escalates critical decisions
- Context limits - Controls memory and token usage
- Response modes - Synchronous or background execution
4. Self-Optimization
Agents improve automatically:- Smart Context - Intelligently manages conversation memory
- Prompt Optimization - Automatically enhances prompts based on configuration
- Adaptive Behavior - Learns from usage patterns (coming soon)
When to Use Agents
Perfect For
Customer Service & Support
Customer Service & Support
- Answer customer questions with context
- Troubleshoot issues using knowledge base
- Apply policies with judgment (returns, refunds)
- Handle complex, multi-turn conversations
- Escalate to humans when needed
Lead Qualification
Lead Qualification
- Ask discovery questions dynamically
- Research companies and contacts
- Score leads based on ICP criteria
- Enrich data from multiple sources
- Route qualified leads intelligently
Content Generation
Content Generation
- Create personalized email campaigns
- Generate social media posts
- Adapt messaging by audience segment
- Maintain brand voice across channels
- Repurpose content efficiently
Data Processing
Data Processing
- Extract information from documents
- Validate data against business rules
- Make contextual decisions on exceptions
- Cross-reference multiple systems
- Flag issues for human review
Sales & Outreach
Sales & Outreach
- Personalize outreach at scale
- Research prospects automatically
- Follow up based on engagement
- Book meetings intelligently
- Qualify and route opportunities
Not Ideal For
When to Use Traditional Automation Instead
- Simple, predictable tasks - If it’s always the same steps, use a condition or function
- High-volume, low-variability - Agents have per-run costs; save them for complexity
- Pure data transformation - Use Map, Rules, or Functions for straightforward data manipulation
- Time-critical micro-operations - Agents add latency; use functions for speed-critical tasks
- Deterministic calculations - Use Rules for exact math and logic
Agent Architecture
Every agent has three main configuration areas:1. Information Settings
Define your agent’s identity and behavior:- Name & Description - What this agent does
- Response Mode - Wait for completion or run in background
- Agent Instructions - Role, personality, and capabilities
2. Provider Settings
Configure the AI model and integration:- Provider - Workforce (custom), OpenAI, Claude, Gemini
- Model - Specific model version (GPT-4, Claude Sonnet, etc.)
- API Key - Securely stored authentication
- Output Schema - Define required response structure
Different models excel at different tasks. GPT-4 for general intelligence, Claude for long context, Gemini for multimodal. Test to find what works best.
3. Context Settings
Control memory and reasoning behavior:- Smart Context - Automatic conversation memory management
- Prompt Optimization - Auto-enhance prompts
- Token Limits - Maximum context size
- Message History - How many messages to remember
- Reasoning Steps - How many tool uses allowed
Building Your First Agent
1
Define the Role
What is this agent responsible for? Customer service? Lead qualification? Content creation?
2
Write Instructions
Describe the agent’s role, personality, and capabilities clearly
3
Choose a Model
Select the LLM provider and model that fits your needs
4
Attach Tools
Connect the systems and data sources the agent needs
5
Set Boundaries
Define output schemas, validation rules, and escalation criteria
6
Test Thoroughly
Try edge cases, exceptions, and realistic scenarios
7
Deploy & Monitor
Activate in a flow and review performance regularly
Start Building
Follow our step-by-step guide to create your first agent in minutes
Agent Examples
Customer Service Agent
Lead Qualification Agent
Content Generation Agent
Best Practices
Be Specific in Instructions
Be Specific in Instructions
Don’t say “help customers.” Say “help customers with order tracking, returns within policy, and product questions. Escalate refunds over $200.”
Give the Right Tools
Give the Right Tools
Connect data sources the agent needs. More context = better decisions. But don’t connect everything—focus on relevant tools.
Define Clear Boundaries
Define Clear Boundaries
Specify what the agent can and cannot do. Define escalation criteria. Use output schemas to enforce structure.
Test with Real Scenarios
Test with Real Scenarios
Use actual customer emails, edge cases, and exceptions. Agents learn from examples in instructions.
Start Simple, Add Complexity
Start Simple, Add Complexity
Begin with basic instructions and a few tools. Test thoroughly. Then add more capabilities and guardrails.
Monitor and Refine
Monitor and Refine
Review agent conversations regularly. Refine instructions based on performance. Update tools as systems change.
Use Human-in-the-Loop
Use Human-in-the-Loop
Add human approval for critical decisions, high-value actions, or when confidence is low.
Agent Costs
Agents have per-run costs based on:- Model chosen - GPT-4 > GPT-3.5, Claude Opus > Sonnet
- Context size - More tokens = higher cost
- Tool usage - Each tool call adds processing
- Reasoning steps - More steps = more tokens
Use the Workforce model (our custom model) for the best balance of performance and cost. Or bring your own API keys to use any provider’s pricing.
Next Steps
Create Your First Agent
Step-by-step guide to building an agent
Information Settings
Configure agent identity and behavior
Provider Settings
Choose models and configure AI
Context Settings
Manage memory and reasoning
Tools & Connectors
Connect your systems and data
Prompt Engineering
Write effective agent instructions
Best Practices
Patterns for successful agents
Use in Flows
Add agents to your workflows