
MailAI's sandbox environment is a powerful feature that allows you to create, manipulate, and export files directly from your automated workflows. Whether you need CSV files for data analysis, formatted documents for reports, or PDFs for sharing, the sandbox makes it all possible without leaving your email automation.
The sandbox is a secure, isolated environment where MailAI can:
Think of it as a virtual workspace where your AI Autopilots can work with files just like you would on your computer.
Generate structured CSV files from email content for analysis in Excel or databases.

Prompt:
Monitor emails from the past 24 hours and extract contact information from email signatures.
For each email:
1. Extract: Name, Email, Company, Phone, Job Title, Website
2. Create a CSV file with these columns
3. Save as: contacts-YYYY-MM-DD.csv
4. Include header row
5. Format dates as YYYY-MM-DD
Output File Structure:
| Name | Company | Phone | Job Title | Website | Date Added | |
|---|---|---|---|---|---|---|
| John Doe | john@example.com | Acme Corp | 555-0100 | CEO | https://acme.com | 2025-06-12 |
| Jane Smith | jane@tech.io | TechStart | 555-0200 | CTO | https://techstart.io | 2025-06-12 |
Prompt:
Monitor emails containing receipts, invoices, or expense confirmations (look for keywords: "receipt", "invoice", "payment confirmation", "expense").
For each receipt email:
1. Extract: Date, Vendor, Amount, Category, Payment Method, Description
2. Create/append to CSV: expenses-YYYY-MM.csv
3. Format amounts as numbers (no currency symbols in CSV)
4. Include currency in a separate "Currency" column
5. Categorize expenses: Travel, Software, Office Supplies, Meals, Other
Generate well-formatted text documents and reports from email content.

Prompt:
Analyze all emails from today and create a daily summary document.
1. Extract key information:
- Important emails count
- Action items
- Meetings scheduled
- Deadlines approaching
- Key decisions made
2. Create a formatted document with:
- Title: "Daily Summary - YYYY-MM-DD"
- Executive Summary (2-3 sentences)
- Section: Important Emails (list with sender and key points)
- Section: Action Items (numbered list)
- Section: Upcoming Deadlines (with dates)
- Section: Decisions Made (bullet points)
3. Save as: daily-summary-YYYY-MM-DD.txt
4. Use clear section headers with === or ---
5. Format dates consistently
Output File Structure:
=== Daily Summary - 2025-06-12 ===
EXECUTIVE SUMMARY
Today's inbox contained 47 emails with 8 requiring action. Three important decisions were made regarding product roadmap and two deadlines are approaching this week.
IMPORTANT EMAILS
- From: product-team@example.com
Subject: Q1 Roadmap Approval
Key Points: Approved new feature set, budget allocated, timeline confirmed
- From: client@bigcorp.com
Subject: Contract Renewal
Key Points: Renewal terms discussed, pricing agreed, contract to be sent tomorrow
ACTION ITEMS
1. Review and approve contract terms (Due: Tomorrow)
2. Schedule team meeting for new feature planning (Due: This week)
3. Send follow-up email to client regarding implementation timeline (Due: Today)
UPCOMING DEADLINES
- Contract renewal response: 2025-06-13
- Q1 planning meeting: 2025-06-16
DECISIONS MADE
• Approved Q1 product roadmap with 5 new features
• Agreed to contract renewal terms with 15% increase
• Decided to expand team by 2 members in Q2
Prompt:
Monitor emails containing meeting notes, summaries, or action items from meetings (look for keywords: "meeting notes", "action items", "follow-up", or calendar invites with notes).
For each meeting email:
1. Extract: Meeting title, Date, Attendees, Key discussion points, Action items, Decisions made
2. Create a formatted document: meeting-notes-YYYY-MM-DD-[meeting-title].txt
3. Format with clear sections and bullet points
4. Highlight action items with [ACTION] prefix
Generate JSON files for integration with other tools and APIs.
Prompt:
Monitor emails for lead inquiries and create a JSON file with structured data.
For each lead:
1. Extract: name, email, company, phone, inquiry_type, source, date, priority
2. Create JSON array in file: leads-YYYY-MM-DD.json
3. Format each lead as an object with proper JSON structure
4. Include metadata: total_leads, date_created, source_breakdown
Output File Structure:
{
"metadata": {
"total_leads": 5,
"date_created": "2025-06-12",
"source_breakdown": {
"website": 3,
"referral": 1,
"email": 1
}
},
"leads": [
{
"name": "John Doe",
"email": "john@example.com",
"company": "Acme Corp",
"phone": "555-0100",
"inquiry_type": "Product Demo",
"source": "website",
"date": "2025-06-12",
"priority": "high"
}
]
}
Generate Markdown-formatted documents for documentation, wikis, or GitHub.
Prompt:
Monitor emails containing solutions, troubleshooting steps, or knowledge base content (look for keywords: "solution", "how to", "troubleshooting", "FAQ", "guide").
For each knowledge base email:
1. Extract: Title, Problem description, Solution steps, Related topics, Tags
2. Create a Markdown file: kb-article-[topic].md
3. Format with proper Markdown:
- # for title
- ## for sections
- - for bullet points
- ``` for code blocks
- **bold** for emphasis
4. Include frontmatter with metadata
Output File Structure:
YYYY-MM-DD formatleads-, expenses-, reports-report-v2-2025-06-12.txtYour sandbox files can be used with:
Create JSON file: daily-data-YYYY-MM-DD.json Structure: { "date": "YYYY-MM-DD", "statistics": {...}, "important_emails": [...], "action_items": [...], "metrics": {...} }
All files should be saved in the sandbox with consistent naming
Include timestamps in file metadata
The MailAI sandbox is a powerful tool for creating, formatting, and exporting files automatically. By leveraging AI Autopilots to generate CSV files, documents, JSON data, and more, you can transform your email workflows into comprehensive data management systems.
Start with simple file creation, refine your formats, and gradually build more complex multi-file workflows. Your email data becomes structured, searchable, and ready for analysis.
Ready to get started? Create your first file generation Autopilot today and experience the power of automated file creation and export.
Want to learn more? Check out our guides on research workflows and Slack automation.