Skip to main content

Files & Attachments

Files are first-class citizens in MeetLoyd. You can upload documents to conversations, attach files in chat, and let agents generate documents on the fly. Every file is security-scanned before processing.

How It Works

When you attach a file in chat, MeetLoyd:

  1. Scans the file through a zero-trust security pipeline
  2. Parses the content automatically (text extraction from PDFs, DOCX, XLSX, etc.)
  3. Injects the full parsed content into the agent's prompt
  4. Stores a compact summary in conversation history

The agent can immediately read, analyze, and reference your documents -- no manual download needed.

Supported Formats

FormatExtensionsMax Size
PDF.pdf50 MB
Word.docx25 MB
Excel.xlsx25 MB
PowerPoint.pptx100 MB
CSV.csv10 MB
Text.txt5 MB
Markdown.md5 MB
JSON.json10 MB
Images.png, .jpg, .gif, .webp20 MB
Blocked formats

Legacy Office formats (.doc, .xls, .ppt) are blocked because they use the OLE Compound format which can contain hidden macros and embedded executables. Convert to modern formats (DOCX, XLSX, PPTX) before uploading.

Security Pipeline

Every uploaded file goes through a zero-trust security pipeline before it is stored:

CheckWhat It Does
Magic bytes verificationVerifies file content matches the claimed MIME type
Macro detectionBlocks files containing VBA macros or executable code
Zip bomb detectionDetects compression bombs in Office documents
XXE preventionBlocks XML External Entity attacks in Office XML
Path traversal blockingPrevents directory traversal in file names
Embedded executable detectionFinds hidden executables inside documents
Script injection detectionCatches script tags, event handlers, and JS protocol URIs

If a file fails the scan, it is quarantined (saved to a secure location, not accessible) and the upload returns an error with details about the threat.

Content Injection

When you attach files to a chat message, MeetLoyd does not just send the agent a download link -- it injects the full parsed content directly into the agent's prompt.

Token Budgets

To prevent excessively long prompts, injected content is token-budgeted per model:

Model SizeToken Budget
Large (Claude Opus/Sonnet, Gemini Pro)~16,000 tokens
Medium (GPT-4o)~12,000 tokens
Small (Haiku, Mini)~6,000 tokens

If a file exceeds the budget, content is truncated. When multiple files are attached, the budget is split evenly.

What the Agent Sees vs. What is Stored

Content
Agent promptFull document text (e.g., the complete text of your PDF)
Conversation historyA compact summary (e.g., [Attached: Q4.pdf (3 pages, 2.1k words)])

This keeps conversation history lightweight while giving agents full context when they need it.


Conversations
How chat conversations work in MeetLoyd
Document Generation
Let agents create documents on the fly
Memory
How agents remember across conversations