Skip to main content
Time to complete: 20 minutesDifficulty: IntermediatePrerequisites: CRM/Sales platform access, Email or Slack connection, Spreadsheet connectionYou’ll build: An agent that generates and distributes customized sales reports every week

Why Automate This?

The Problem: Sales managers spend Monday mornings pulling data from multiple systems, building spreadsheets, calculating metrics, and formatting reports. By the time reports are distributed, the data is already hours old. Different regions get different formats. And creating personalized views for each stakeholder is simply not feasible manually. The Solution: A Duvo agent that automatically pulls sales data, calculates KPIs, generates formatted reports with regional filtering, and distributes them to the right stakeholders—all before anyone arrives Monday morning. Expected Results:
  • Eliminate 3-4 hours of manual report building per week
  • Deliver reports by 7 AM Monday (before anyone asks)
  • Provide personalized regional views for each manager
  • Ensure consistent metrics and formatting
  • Include week-over-week comparisons automatically

What You’ll Build

By the end of this tutorial, you’ll have an agent that:
  1. Pulls sales data from your CRM for the past week
  2. Calculates key performance metrics and comparisons
  3. Generates formatted reports with charts and highlights
  4. Filters data by region for each recipient
  5. Distributes via email and posts to Slack
  6. Archives reports in your shared drive

Before You Start

Make sure you have these ready:
CRM/Sales platform - Salesforce, HubSpot, or similar. Set up logins
Email connection - For distributing reports. Add a connection
Google Sheets or Excel - For generating formatted reports
Slack connection (optional) - For posting summaries
Google Drive or SharePoint (optional) - For archiving reports

Create Your Agent

  1. Click ”+ Create Agent” from your dashboard
  2. Select “Use Agent Builder” (recommended for this tutorial)
Create Agent Button

Describe Your Workflow

Paste this prompt into the Agent Builder:
Click “Generate” to create the agent AOP.

Review Generated AOP

Review to ensure:
  • All metrics are correctly defined
  • Regional territories match your organization
  • Distribution list is accurate
  • Report format meets your needs

Upload Report Template

Create a consistent look by uploading a template:
  1. Go to Agent Settings > Files
  2. Upload your report template (Excel or Google Sheets format)
  3. Include your company branding, chart styles, and section layouts

Configure Connections

Click “Connections” and connect:
  1. CRM - Salesforce, HubSpot, or your sales platform
  2. Google Sheets or Excel - For report generation
  3. Email - For distribution
  4. Slack (optional) - For team notifications
  5. Google Drive or SharePoint (optional) - For archiving

Test Your Agent

Run a manual test before scheduling:
  1. Click “Run Agent”
  2. Review the generated report for accuracy
  3. Verify regional filtering is correct
  4. Check that all recipients received their reports
Agent Running
What to check:
  • Are the numbers accurate vs your CRM?
  • Is the regional breakdown correct?
  • Did the formatting look right?
  • Were all stakeholders included?

Schedule Weekly Runs

Set up the Monday morning schedule:
  1. Go to Agent Settings > Schedule
  2. Select Weekly on Monday at 6:00 AM
  3. Choose your timezone
  4. Save settings
Your agent will now generate and distribute reports automatically every Monday.

Expected Results

When your agent runs successfully, you should see: In stakeholder inboxes (by 7 AM Monday):
  • Formatted PDF reports with charts
  • Executive summary highlighting key wins and concerns
  • Week-over-week comparisons
  • Regional breakdown specific to their territory
In Slack #sales-team:
  • Quick highlights summary
  • Link to full report
  • Celebration of top performers
In Google Drive/SharePoint:
  • Archived reports with date stamps
  • Historical data for trend analysis
  • Accessible to entire sales organization
In Duvo:
  • Execution log with timing
  • Data quality alerts if applicable
  • Distribution confirmation

Troubleshooting

  • Date range: Verify timezone settings match your CRM
  • Filters: Check that all deal stages are included
  • Currency: Ensure consistent currency conversion if international
  • Duplicates: Confirm deals aren’t being counted multiple times
  • Territory mapping: Verify state/country agents in AOP
  • Account agent: Check that accounts have correct region tags in CRM
  • New territories: Update AOP when territories change
  • Template: Ensure template is properly formatted and compatible
  • Data types: Verify numbers are formatted as numbers, dates as dates
  • Chart data ranges: Check that charts reference correct cells
  • File size: Large reports may be blocked—consider Drive links instead
  • Recipients: Verify email addresses are current
  • Spam filters: Check corporate spam filters for attachments
  • Channel permissions: Ensure agent has permission to post
  • Message length: Slack has character limits—keep summaries concise
  • Bot configuration: Verify Slack app is properly installed

Take It Further

Once your basic agent is working, consider these enhancements:
Regional managers can customize their reports. Learn about Agent Memory
  • West Region Manager: “Only include data for California, Oregon, and Washington territories. Highlight accounts over $50K in annual value. Send the report to my regional team at 6 AM Pacific.”
  • East Region Manager: “Only include data for New York, New Jersey, and Pennsylvania territories. Highlight accounts over $100K in annual value. Send the report to my regional team and VP of Sales.”

Agent Memory

Customize reports for each stakeholder

Files

Upload report templates and formatting guides

Connections Overview

Connect your CRM and communication tools

Human-in-the-Loop

Review reports before distribution