Documentation Index
Fetch the complete documentation index at: https://docs.duvo.ai/llms.txt
Use this file to discover all available pages before exploring further.
| Time to complete | 15 minutes |
| Difficulty | Beginner |
| Prerequisites | Expense system access, Email connection |
| You’ll build | An assignment that routes expense reports to managers every Monday |
Why Automate This?
The Problem: Finance teams spend 5-10 hours weekly manually reviewing submitted expense reports, identifying the right approver, and sending email notifications. Reports sit in queues, approvals get delayed, and employees wait longer for reimbursements. The Solution: A Duvo assignment that automatically processes submitted expense reports every Monday morning—extracting details, identifying the correct manager, and sending approval requests with all necessary information attached. Expected Results:- Reduce approval cycle from 3-5 days to same-day
- Eliminate 5+ hours of manual routing per week
- Zero missed or forgotten expense reports
- Complete audit trail of all approvals
What You’ll Build
By the end of this tutorial, you’ll have an assignment that:- Checks your expense system for submitted reports from the past week
- Extracts employee details, amounts, and receipts
- Looks up each employee’s manager in your HR system
- Sends a formatted approval email with the report attached
- Updates the expense system status to “Pending Approval”
Before You Start
Make sure you have these ready:- Expense management system - You’ll need login credentials. Set up logins
- Email connection - Connect Gmail or Outlook. Connect connection
- HR system access (optional) - For automatic manager lookup. Otherwise, you can specify managers manually.
Step 1: Create Your Assignment
- Click ”+ Create Assignment” from your dashboard
- Select “Use Assignment Builder” (recommended for this tutorial)

Step 2: Describe Your Workflow
Paste this prompt into the Assignment Builder:Step 3: Review Generated SOP
Duvo will generate structured SOP based on your description. Review it to ensure:- All systems are correctly identified (expense system, HR system, email)
- The approval workflow matches your process
- Error handling covers your edge cases
Step 4: Configure Connections
The assignment needs access to your systems. Click “Connections” and ensure:- Expense system - Add logins for your expense management platform
- Email - Connect your Gmail or Outlook account
- HR system (if using) - Add logins for manager lookup
Step 5: Test Your Assignment
Before scheduling, run a test:- Click “Run Assignment”
- Watch the assignment execute each step in real-time
- Review the session log to verify correct behavior

- Did it find the correct expense reports?
- Did it identify the right managers?
- Did the email look correct? (Check your sent folder)
- Did the status update in your expense system?
Step 6: Schedule Weekly Jobs
Once testing is successful, set up the Monday schedule:- Go to Assignment Settings > Schedule
- Select Weekly on Monday at 8:00 AM
- Save the schedule
Expected Results
When your assignment runs successfully, you should see: In your expense system:- All “Submitted” reports now show “Pending Manager Approval”
- Activity log shows the assignment’s actions
- Formatted approval emails with report summaries
- PDF attachments with full expense details
- Clear approve/reject call-to-action
- Complete session log showing each step
- Audit trail of all emails sent and status updates
Troubleshooting
Assignment can’t find expense reports
- Check filters: Verify the status filter matches your system (e.g., “Submitted” vs “Pending”)
- Check date range: Ensure the 7-day lookback is correct for your timezone
- Check permissions: Confirm the logins have read access to all reports
Manager lookup fails
- HR system connection: Verify logins are correct and not expired
- Missing manager data: Some employees may not have managers assigned—add a fallback in your SOP
- Field mapping: Check that employee IDs match between systems
Emails not sending
- Email connection: Re-authorize if token expired
- Spam filters: Check if emails are being blocked
- Rate limits: If processing many reports, add delays between emails
Status not updating
- Write permissions: Confirm logins can update report status
- Field name: Verify the status field name matches your system exactly
Take It Further
Once your basic assignment is working, consider these enhancements: Add approval thresholds- Finance Manager: “Auto-approve reports under $500 from employees in my department.”
- Director: “Auto-approve all reports under 2,000 for my review.”
Related Resources
- Human-in-the-Loop - Add approval steps before emails are sent
- Assignment Memory - Personalize approval thresholds per user
- Files - Upload your expense policy for the assignment to reference
- Refining Your Assignment - Improve assignment performance over time