AI Agents

Specialized AI assistants configured with business context, security rules, and domain expertise.

🤖 What Are AI Agents?

AI Agents are specialized versions of the query engine that:

🎯 Agent Types

📊 General Data Analyst

Best for: Ad-hoc analysis, exploration, general queries

Capabilities:
- Cross-functional analysis
- General statistical queries
- Data exploration
- Multi-table joins

Example Questions:
- "Show me top customers by revenue"
- "What's the trend in user signups?"
- "Compare metrics across regions"

📈 Sales Performance Analyst

Best for: Revenue tracking, sales pipeline, deal analysis

Business Context:
- Fiscal year, quota periods
- Product lines and pricing
- Sales territories
- Commission structure

Example Questions:
- "Show me Q4 pipeline by stage"
- "Which reps are below quota?"
- "Average deal size by product"

🎯 Marketing Campaign Analyst

Best for: Campaign performance, attribution, ROI

Business Context:
- Marketing channels
- Campaign lifecycle
- Attribution models
- Customer journey stages

Example Questions:
- "ROI by campaign channel"
- "Cost per acquisition trends"
- "Email conversion rates"

💰 Financial Data Analyst

Best for: Financial reporting, budget analysis, forecasting

Business Context:
- Fiscal periods
- Cost centers
- Budget categories
- Revenue recognition rules

Example Questions:
- "Budget vs actual by department"
- "Cash flow projections"
- "Cost breakdown analysis"

⚙️ Operations Analyst

Best for: Process efficiency, resource utilization, KPIs

Business Context:
- Process workflows
- SLAs and targets
- Resource allocation
- Efficiency metrics

Example Questions:
- "Average fulfillment time"
- "Resource utilization rates"
- "Process bottlenecks"

📱 Product Analytics Specialist

Best for: User behavior, feature adoption, engagement

Business Context:
- User actions and events
- Feature flags
- Product roadmap
- Engagement metrics

Example Questions:
- "Feature adoption by cohort"
- "User retention rates"
- "Most used features"

🔧 Agent Configuration

System Prompt

The system prompt gives agents business intelligence:

Example - Sales Agent:

You are a sales performance analyst for Acme Corp.

Key Metrics:
- Revenue, ARR, MRR
- Deal size, win rate, sales cycle
- Pipeline coverage, velocity

Business Rules:
- Fiscal year: January 1
- Quota period: Quarterly
- Product lines: Enterprise ($50K+), Pro ($10K+), Starter ($1K+)
- Regions: Americas, EMEA, APAC

When analyzing:
1. Include time comparisons (MoM, YoY, QoQ)
2. Segment by region and product
3. Highlight trends and anomalies
4. Provide actionable insights

Data Source Assignment

Each agent connects to ONE data source:

Table Access Control

Select which tables the agent can query:

Example - Sales Agent
Allowed Tables:
  • ✅ customers
  • ✅ orders
  • ✅ products
  • ✅ sales_reps
  • ❌ internal_admin
  • ❌ employee_salaries

Column Permissions

Hide sensitive columns even in allowed tables:

customers table
Visible: customer_id, name, company, industry, region
Hidden: ssn, credit_card, internal_notes

👥 User Assignment

Control which users can use which agents:

Assignment Strategies

By Department

Sales team → Sales Agent
Marketing team → Marketing Agent

By Role

Analysts → All agents
Managers → Department-specific

By Data Access

Match agent permissions to user data access rights

Multi-Agent

Power users get access to multiple specialized agents

🎓 Best Practices

✅ Do's

❌ Don'ts

📊 Agent Performance

Specialized agents generate better queries because they:

🎯 Understand Context

Know your metrics and terminology

🔍 Optimize SQL

Use appropriate indexes and joins

📈 Suggest Insights

Proactively identify trends

🔒 Enforce Security

Automatic data access control

🔄 Agent Management

Creating Agents

  1. Navigate to Agents
  2. Click "+ New Agent"
  3. Select agent type template
  4. Configure system prompt
  5. Assign data source
  6. Set table/column permissions
  7. Activate agent

Editing Agents

Cloning Agents

Create variations for different teams:

  1. Click agent to clone
  2. Select "Clone"
  3. Modify name and settings
  4. Assign to different users

🚀 Advanced Use Cases

Multi-Agent Workflows

Use different agents for different stages of analysis:

  1. Exploration Agent: Broad access for initial investigation
  2. Specialized Agent: Deep dive into specific area
  3. Reporting Agent: Standard metrics and dashboards

Agent Hierarchies

Executive Agent
├── Limited high-level metrics
└── Cross-functional view

Department Agents
├── Sales Agent (sales data)
├── Marketing Agent (campaign data)
└── Finance Agent (financial data)

Analyst Agents
└── Full access for data team

🚀 Next Steps