> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getomni.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Document Collection

**🧗‍♂️ The Challenge**: Processing loan documents manually is time-consuming and error-prone. Staff spend hours reviewing bank statements, pay stubs, and tax documents, often going back and forth with applicants about missing information or document quality issues.

**💡 Our Solution**: OmniAI's AI agent automatically receives documents via email, reads and validates them against your specific checklist requirements, and instantly sends detailed feedback about any issues - reducing processing time from hours to minutes.

## How It Works

### 1️⃣ Set up email for agent

Follow the **Email Setup** guide in [Settings](/ai-agent/settings).

After setting up, the agent can start sending & receiving emails.

### 2️⃣ Set up checklist

* Set up document checklist in [Agent Checklist](https://platform.getomni.ai/agent#checklist)
  * Define required document types (bank statements, tax returns, or a custom document type)
  * Agent will help streamline document collection via email or SMS

<Frame>
  <img src="https://mintcdn.com/omniai/mVJIVtQPNa61aa_S/images/use-cases/document-collection-email/checklist-setup.png?fit=max&auto=format&n=mVJIVtQPNa61aa_S&q=85&s=5ff04c41a377d9aedd18a6a71fedcf17" alt="Checklist Setup" width="1558" height="1652" data-path="images/use-cases/document-collection-email/checklist-setup.png" />
</Frame>

<Note>
  You can also add custom validation rules to each checklist item. When the
  agent receives a document, it will try to classify the document and see if it
  matches one of the checklist items. If yes, then it will apply the validation
  rules to the document.
</Note>

### 3️⃣ Send emails to agent

Omni's agent monitors its email inbox for incoming emails. For each email received, the agent will:

1. **Find or create a lead**:

   * If new email, it will create a new lead
   * If existing email from the lead list, retrieve the existing lead

2. **Extract & update checklist items** from email message

3. **Process attachments** using document intelligence (step 4)

4. **Auto-generate a response** to the message
   * If agent is on `Autopilot` mode, it will directly send the response without permission
   * If agent is on `Listen` mode, it will draft a response and admin can review and edit it

### 4️⃣ Document intelligence

For each attachment in the email message, our agent will perform the following action in order:

1. **Use OCR** to convert document to markdown
2. **Classify the document** into one of the document requirements (bank statements, etc.)
3. **Apply validation rules** to the document if any
4. **Extract lead's checklist values** from documents

<Frame>
  <img src="https://mintcdn.com/omniai/mVJIVtQPNa61aa_S/images/use-cases/document-collection-email/document-intelligence.png?fit=max&auto=format&n=mVJIVtQPNa61aa_S&q=85&s=d16f2742eba11084be69bab78fafb6e0" alt="Document Intelligence" width="1854" height="1520" data-path="images/use-cases/document-collection-email/document-intelligence.png" />
</Frame>

### 5️⃣ Automated follow-up

If agent is on `Autopilot` mode, after agent sends the response, it will generate a follow up message and schedule a follow-up email if it doesn't hear back from the leads.

## Benefits

* **Automated Processing**: Documents are processed automatically without manual intervention
* **Real-time Validation**: Instant feedback on document quality and completeness
* **Intelligent Classification**: Documents are automatically matched to checklist requirements
* **Data Extraction**: Key information is extracted from documents automatically
* **Multi-channel Support**: Works with both email and SMS

## Related Guides

<CardGroup cols={2}>
  <Card title="Checklist Setup" href="/ai-agent/checklist">
    Learn how to configure your checklist
  </Card>

  <Card title="Fine-tuning" href="/ai-agent/fine-tuning">
    Fine-tune agent behavior
  </Card>

  <Card title="Document Vault" href="/leads/document-vault">
    View and manage collected documents
  </Card>

  <Card title="Timeline" href="/leads/timeline">
    Track all document collection activity
  </Card>
</CardGroup>
