Uploading Documents
Adding documents to Airmailer is straightforward. This guide covers everything you need to know about uploading files to build your AI agent's knowledge base.
Getting Started
- Navigate to Documents in the sidebar
- Click the Upload Document button
- Select your file or drag and drop
- Configure document settings
- Click Upload
Upload Methods
Drag and Drop
Simply drag a file from your computer and drop it onto the upload area.
File Browser
- Click Upload Document
- Click Choose File
- Navigate to and select your file
- Click Open
Supported File Types
| Format | Extension | Best For |
|--------|-----------|----------|
| Markdown | .md | Structured documentation |
| HTML | .html | Web page exports |
| Plain Text | .txt | Simple content |
Markdown Files
Recommended for most use cases:
- Preserves formatting (headings, lists, links)
- Easy to create and edit
- Best structure for AI understanding
HTML Files
Great for importing existing web content:
- Automatically converted to Markdown
- Navigation and boilerplate removed
- Main content extracted
Plain Text
For simple content without formatting:
- Direct text content
- No special formatting preserved
- Good for short documents
Configuring Your Upload
Document Title
Give your document a clear, descriptive title:
✓ "30-Day Return Policy"
✓ "Product Sizing Guide"
✓ "Shipping FAQs"
✗ "Document 1"
✗ "Policy"
✗ "Untitled"
Document Type
Select the category that best fits:
- Terms: Legal terms and conditions
- Privacy: Privacy policy documents
- Returns: Return and refund policies
- FAQ: Frequently asked questions
- Other: Everything else
Source URL (Optional)
If your document came from a webpage, you can record the source URL for reference.
File Requirements
| Requirement | Limit | |-------------|-------| | Maximum file size | 2 MB | | Encoding | UTF-8 | | Maximum documents | Varies by plan |
HTML Processing
When you upload an HTML file, Airmailer:
- Parses the HTML structure
- Removes navigation elements (menus, sidebars)
- Removes headers/footers (site chrome)
- Extracts main content (article body)
- Converts to Markdown for storage
- Preserves formatting (headings, lists, links)
This means you can export pages directly from your website without manual cleanup.
Upload Progress
During upload, you'll see:
- Uploading: File transfer in progress
- Processing: Converting and extracting content
- Complete: Document ready for use
Large files may take a few seconds to process.
After Upload
Once uploaded, your document is immediately available:
- Your AI agent can use it to answer questions
- It appears in your Documents list
- You can edit the title or type anytime
- You can delete it if needed
Batch Uploads
To upload multiple documents:
- Upload them one at a time
- Each upload processes immediately
- No waiting for batch completion
Troubleshooting
Upload fails immediately
- Check file size (max 2 MB)
- Verify file format (MD, HTML, or TXT)
- Ensure file isn't corrupted
Content looks wrong after upload
- HTML conversion may not preserve all formatting
- Consider using Markdown format instead
- Edit the document if needed
Document not appearing in list
- Refresh the page
- Check if upload completed
- Verify you're viewing the correct brand
File encoding issues
- Save file as UTF-8 encoding
- Avoid special characters in filename
- Re-export from source application
Best Practices
- Use descriptive filenames: Makes documents easier to find
- One topic per document: Better for agent retrieval
- Include context: Don't assume prior knowledge
- Update regularly: Keep information current