My App
Email Ingestion

Quickstart

Set up email-based document processing in 10 minutes

Quickstart Guide

This guide walks you through setting up email ingestion for your organization.

Prerequisites

  • An Adteco account with email ingestion enabled
  • A NetSuite connection (for automatic record creation)
  • Access to your organization's email settings

Step 1: Get Your Email Address

Each organization receives a unique email domain:

{prefix}@{org-subdomain}.adteco.io

For example, if your organization subdomain is acme, your addresses would be:

  • invoices@acme.adteco.io - For vendor invoices
  • expenses@acme.adteco.io - For expense receipts
  • orders@acme.adteco.io - For purchase orders

Find your organization's email addresses in Settings > Integrations > Email Ingestion.

Step 2: Configure Email Prefixes

Navigate to Settings > Integrations > Email Ingestion and configure your email prefixes:

// Example configuration
{
  emailPrefixes: [
    {
      prefix: 'invoices',
      defaultDocumentType: 'vendor_bill',
      autoClassify: true,
      netsuiteConnectionId: 'conn_...'
    },
    {
      prefix: 'expenses',
      defaultDocumentType: 'expense_report',
      autoClassify: true,
      netsuiteConnectionId: 'conn_...'
    }
  ]
}

Configuration Options

OptionDescriptionDefault
prefixEmail prefix (e.g., invoices)Required
defaultDocumentTypeFallback document typevendor_bill
autoClassifyUse AI classificationtrue
netsuiteConnectionIdNetSuite connection for record creationOptional

Step 3: Connect NetSuite

To enable automatic record creation:

  1. Go to Settings > Integrations > NetSuite
  2. Click Connect NetSuite
  3. Enter your NetSuite credentials
  4. Select the subsidiary and default accounts
  5. Test the connection

Make sure your NetSuite account has API access enabled and the appropriate roles assigned.

Step 4: Send a Test Document

Send a test email to verify your setup:

  1. Compose a new email
  2. Attach a sample invoice (PDF or image)
  3. Send to invoices@{your-org}.adteco.io
  4. Check the Documents page for processing status

Expected Flow

flowchart LR
    A[Send Email] --> B[Email Received]
    B --> C[Attachments Extracted]
    C --> D[Document Classified]
    D --> E[Data Extracted]
    E --> F{NetSuite Connected?}
    F -->|Yes| G[Record Created]
    F -->|No| H[Review Queue]
    G --> I[Confirmation Email]
    H --> I

Step 5: Review Results

After sending a document:

  1. Go to Documents > Processing Queue
  2. Find your document in the list
  3. Review the extracted data
  4. Check the confidence scores
  5. Approve or edit before NetSuite sync

Document Status

StatusDescription
queuedEmail received, waiting for processing
processingAI extraction in progress
reviewLow confidence, needs human review
completedSuccessfully processed
syncedNetSuite record created
failedProcessing error

Example: Processing an Invoice

Here's what happens when you email an invoice:

Input Email:

From: vendor@supplier.com
To: invoices@acme.adteco.io
Subject: Invoice #12345

Please find attached our invoice for services rendered.

[attachment: invoice-12345.pdf]

Extracted Data:

{
  "documentType": "vendor_bill",
  "confidence": 0.95,
  "extractedData": {
    "vendorName": "Supplier Corp",
    "invoiceNumber": "12345",
    "invoiceDate": "2024-11-23",
    "dueDate": "2024-12-23",
    "subtotal": 1500.00,
    "tax": 150.00,
    "total": 1650.00,
    "lineItems": [
      {
        "description": "Consulting Services",
        "quantity": 10,
        "rate": 150.00,
        "amount": 1500.00
      }
    ]
  }
}

NetSuite Record:

  • Type: Vendor Bill
  • Vendor: Supplier Corp (resolved from name)
  • External ID: adteco-inv-12345
  • Status: Pending Approval

Forwarding from Gmail

Set up automatic forwarding in Gmail:

  1. Go to Gmail Settings > Forwarding
  2. Add invoices@{your-org}.adteco.io as a forwarding address
  3. Verify the email address
  4. Create a filter:
    • From: *@vendor-domain.com
    • Action: Forward to ingestion address

Forwarding from Outlook

Set up rules in Outlook:

  1. Go to Settings > Mail > Rules
  2. Create a new rule
  3. Condition: From specific senders or with attachments
  4. Action: Forward to ingestion address

Troubleshooting

Email Not Received

  • Verify the email address is correct
  • Check spam/junk filters
  • Ensure attachments are under 25MB
  • Contact support if issues persist

Document Not Classified

  • Ensure the document is a supported format (PDF, PNG, JPG)
  • Check if the document is readable (not password protected)
  • Try a clearer scan if image quality is low

NetSuite Sync Failed

  • Verify your NetSuite connection is active
  • Check that required entities exist (vendor, items)
  • Review the error message for specific issues
  • Ensure your NetSuite user has create permissions

Next Steps