Magic Inbox
Receive vendor invoices via email for AI-powered processing and automatic conversion to vendor bills.
Magic Inbox
Magic Inbox enables your organization to receive vendor invoices via email. Invoices are automatically analyzed by AI, extracting key information like vendor details, amounts, line items, and due dates. Documents appear in your Pending Documents queue for review before conversion to vendor bills.
How It Works
Vendor sends invoice to your Magic Inbox email
↓
AI analyzes and extracts data
↓
Document appears in Pending queue
↓
Review → Approve → Vendor Bill created- Receive - Vendors forward invoices to your dedicated Magic Inbox email address
- Process - AI extracts vendor info, invoice number, amounts, line items, and due dates
- Review - Documents appear in your Pending Documents queue with extracted data
- Convert - Approve to create a vendor bill, or reject with a reason
Getting Started
Enable Magic Inbox
- Go to Admin Settings in your dashboard
- Find the Magic Inbox card
- Choose your email option:
- Shared Domain - Get an email like
yourcompany@adteco.app - Custom Domain - Use your own domain like
invoices@yourcompany.com
- Shared Domain - Get an email like
Option 1: Shared Domain (Recommended)
The fastest way to get started:
- Enter your preferred prefix (e.g.,
acme-corp) - Click Check Availability to verify it's available
- Click Enable Magic Inbox
- Your email address is ready:
acme-corp@adteco.app
Prefixes must be at least 3 characters and can contain letters, numbers, and hyphens.
Option 2: Custom Domain
Use your own domain for a professional appearance:
- Enter your domain (e.g.,
inbox.yourcompany.com) - Click Set Up Custom Domain
- Add the required DNS records to your domain registrar:
| Type | Host | Value | Priority |
|---|---|---|---|
| MX | inbox | inbound-smtp.us-east-1.amazonaws.com | 10 |
| TXT | _magic-inbox.inbox | magic-inbox-verify=<token> | - |
- Click Verify Domain once records are propagated (usually 15-60 minutes)
- Once verified, your email is active
DNS propagation can take up to 48 hours in some cases. Use a DNS checker tool to verify your records are visible before clicking Verify.
Using Magic Inbox
Forwarding Invoices
Once enabled, vendors can send invoices directly to your Magic Inbox email, or you can forward invoices from your regular inbox.
Supported formats:
- PDF attachments
- Image attachments (PNG, JPG)
- Inline email content
- Multiple attachments per email
Reviewing Pending Documents
- Go to Pending Documents in your dashboard
- Documents from Magic Inbox show the source email and extracted data
- For each document, you can:
- View - See the original email and extracted information
- Edit - Correct any extraction errors before approval
- Approve - Convert to a vendor bill
- Reject - Mark as rejected with a reason (spam, duplicate, etc.)
Extracted Information
Magic Inbox AI extracts:
| Field | Description |
|---|---|
| Vendor Name | Company name from invoice |
| Vendor Email | Sender's email address |
| Invoice Number | Invoice/reference number |
| Invoice Date | Date on the invoice |
| Due Date | Payment due date |
| PO Number | Purchase order reference |
| Subtotal | Pre-tax amount |
| Tax Amount | Tax/VAT amount |
| Total Amount | Total due |
| Line Items | Individual line items with descriptions, quantities, and amounts |
| Currency | Detected currency |
Testing Your Setup
Send a Test Email
- Go to Admin Settings > Magic Inbox
- Click Send Test Email
- A sample invoice will be sent to your Magic Inbox
- Check Pending Documents to verify it arrived
This helps confirm your setup is working before sharing the email with vendors.
Security
Webhook Secret
When Magic Inbox is enabled, a webhook secret is generated for secure communication. This secret is shown only once when you first enable the feature.
To regenerate the secret:
- Go to Admin Settings > Magic Inbox
- Click Regenerate Secret
- Copy and save the new secret immediately
Regenerating the secret will invalidate the previous one. If you're using the webhook secret in external integrations, update them immediately.
Email Security
All incoming emails are scanned for:
- Spam detection
- Virus scanning
- SPF/DKIM/DMARC verification
Security results are stored with each document for audit purposes.
Pricing
Magic Inbox uses usage-based pricing:
| Metric | Price |
|---|---|
| Per document processed | $0.10 |
What counts as a document?
- Each email received counts as one document
- Multiple attachments in one email = one document
- Rejected/spam emails are not charged
Viewing Usage
- Go to Admin Settings > Magic Inbox
- View your current billing period stats:
- Documents Received
- Converted to Bills
- Estimated Monthly Cost
Billing History
Usage is billed monthly with your subscription. View detailed billing history in your Billing settings.
API Reference
Magic Inbox configuration can also be managed via API.
Get Configuration
GET /api/admin/magic-inbox/config
Authorization: Bearer <token>Response:
{
"enabled": true,
"emailAddress": "acme@adteco.app",
"emailType": "prefix",
"prefix": "acme",
"webhookUrl": "https://api.adteco.app/api/webhooks/magic-inbox",
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-15T10:30:00Z"
}Enable Magic Inbox
POST /api/admin/magic-inbox/config
Authorization: Bearer <token>
Content-Type: application/json
{
"emailType": "prefix",
"prefix": "acme"
}Or for custom domain:
{
"emailType": "custom_domain",
"customDomain": "inbox.yourcompany.com"
}Check Prefix Availability
POST /api/admin/magic-inbox/check-prefix
Authorization: Bearer <token>
Content-Type: application/json
{
"prefix": "acme"
}Response:
{
"available": true
}Or if unavailable:
{
"available": false,
"suggestions": ["acme-corp", "acme-inc", "acme-co"]
}Get Usage
GET /api/admin/magic-inbox/usage
Authorization: Bearer <token>Response:
{
"billingPeriodStart": "2024-01-01",
"billingPeriodEnd": "2024-01-31",
"documentsProcessed": 47,
"documentsConverted": 42,
"documentsRejected": 5,
"unitPrice": "0.10",
"totalAmount": "4.70",
"isBilled": false
}Disable Magic Inbox
DELETE /api/admin/magic-inbox/config
Authorization: Bearer <token>Troubleshooting
Emails Not Arriving
- Check spam folder - Ensure test emails aren't being filtered
- Verify DNS records (custom domain) - Use
digor online tools to check MX records - Wait for propagation - DNS changes can take up to 48 hours
- Check email address - Ensure vendors are using the correct address
Extraction Errors
If the AI extracts incorrect information:
- Edit the document in Pending Documents before approval
- Common issues include:
- Unusual invoice formats
- Handwritten amounts
- Poor image quality
Custom Domain Verification Failed
- Ensure both MX and TXT records are added
- Check for typos in the record values
- Verify records are on the correct subdomain
- Wait for full DNS propagation and retry
Best Practices
- Start with test emails - Verify everything works before telling vendors
- Set up forwarding rules - Automatically forward invoices from your main inbox
- Review regularly - Check Pending Documents daily to avoid delays
- Train your vendors - Share your Magic Inbox email for direct submissions
- Monitor usage - Keep an eye on document counts for budgeting
Next Steps
- Pending Documents - Learn about the review workflow
- Vendor Bills - API reference for vendor bills
- Admin Settings - Other admin configuration options