Overview
Every Trix account gets a unique inbound email address (e.g., [email protected]). Send emails to this address to:
- Store - Save information as memories
- Search - Find existing memories
- Ask - Get AI-powered answers from your memories
- List - Browse your memories with filters
- Help - Get usage instructions
Getting Your Email Address
# Via CLI
trix email
# Via API
curl -X GET https://api.trixdb.com/v1/email/address \
-H "Authorization: Bearer YOUR_API_KEY"{
"id": "550e8400-e29b-41d4-a716-446655440000",
"email": "[email protected]",
"localPart": "abc12xyz",
"domain": "mail.trixdb.com",
"isActive": true,
"createdAt": "2024-01-15T10:30:00Z"
}Store Command
Save information to your Trix memories.
Subject Line Format
Subject: STORE: Your content here
Subject: [store] Your content hereBody Format
/store Your content hereFull Example
To: [email protected]
Subject: STORE: Meeting notes from Q1 planning @work #meeting #q1 p1
- Discussed budget allocation for new features
- Agreed on hiring 2 new engineers
- Next review in MarchMetadata Modifiers
| Modifier | Description | Example |
|---|---|---|
@space | Target space | @work, @personal |
#tag | Add tags (multiple allowed) | #meeting #important |
p1/p2/p3 | Priority (1=high, 3=low) | p1 |
Search Command
Find memories matching your query.
To: [email protected]
Subject: SEARCH: Q1 budget meetingYou'll receive an email with matching memories:
Found 3 results:
1. Meeting notes from Q1 planning - Discussed budget allocation...
Tags: meeting, q1
2. Budget review email from finance - Approved budget of $50k...
Tags: budget, finance
3. Q1 goals document - Key objectives include...
Tags: goals, q1Ask Command
Get AI-powered answers synthesized from your memories.
To: [email protected]
Subject: ASK: What was decided about the Q1 budget?Response:
Based on your memories, the Q1 budget meeting resulted in:
1. A total budget of $50,000 was approved
2. $30,000 allocated to engineering
3. $20,000 for marketing initiatives
4. Review scheduled for March 15
---
Based on 3 memoriesParsing Strategies
Trix uses three strategies to understand your emails, tried in order:
1. Structured Body Format (Highest Priority)
Commands starting with / in the email body:
/store Remember to call John about the project
/search project deadlines
/ask What's the status of the project?2. Subject Line Commands
Recognized patterns in the subject line:
STORE: content here
SEARCH: query here
ASK: question here
[store] content here3. AI Natural Language (Fallback)
If no explicit command is detected, Trix will analyze your email to determine intent:
- "Remember this: ..." → Store
- "Find my notes about..." → Search
- "What did I write about...?" → Ask
The AI parser requires 60% confidence to act automatically. Low-confidence results may request confirmation.
Address Management
Address Rotation
Rotate your email address for security while maintaining a grace period for the old address:
# Via CLI
trix email rotate --grace-period 30
# Via API
curl -X POST https://api.trixdb.com/v1/email/address/rotate \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"gracePeriodDays": 30}'During the grace period (0-90 days):
- New address is active and primary
- Old address continues to accept emails
- After grace period, old address stops working
Sender Rules
Control who can send emails to your Trix address.
Rule Types
| Type | Behavior |
|---|---|
allow | Only accept emails from matching patterns |
block | Reject emails from matching patterns |
Pattern Formats
| Pattern | Matches |
|---|---|
[email protected] | Exact email address |
*@domain.com | Any user at domain |
*@*.domain.com | Any user at any subdomain |
# Add a block rule
curl -X POST https://api.trixdb.com/v1/email/senders \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"emailPattern": "*@spam.com",
"ruleType": "block",
"reason": "Known spam domain"
}'Email Digests
Receive scheduled summaries of your memories.
curl -X POST https://api.trixdb.com/v1/email/digests \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Weekly Work Summary",
"scheduleType": "weekly",
"timezone": "America/New_York",
"includeNewMemories": true,
"includeHighlights": true,
"maxItems": 10,
"tags": ["meeting", "project"],
"isActive": true
}'Schedule Types
| Type | Default Schedule |
|---|---|
daily | Every day at 8 AM |
weekly | Every Monday at 8 AM |
custom | User-defined cron expression |
Reactions (IFTTT-Style)
Create automated email triggers based on memory events.
curl -X POST https://api.trixdb.com/v1/email/reactions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Important Meeting Alert",
"triggerType": "memory_created",
"triggerConditions": {
"tags": ["important", "meeting"],
"contentContains": "deadline"
},
"emailSubjectTemplate": "Alert: New Important Memory",
"emailBodyTemplate": "A memory matching your criteria was created.",
"cooldownMinutes": 60,
"maxPerDay": 10
}'Trigger Types
memory_created- Fires when a new memory is createdmemory_matched- Fires when a memory matches specific criteriascheduled- Fires on a schedule
Rate Limits
| Limit | Value | Window |
|---|---|---|
| Emails per minute | 10 | 1 minute |
| Emails per hour | 100 | 1 hour |
These limits are per-account and can be customized via environment variables.
Troubleshooting
Email Not Processing
- Check email history for status and errors
- Verify sender rules aren't blocking the sender
- Check rate limits haven't been exceeded
- Ensure address is active and not deactivated
Command Not Recognized
- Use explicit command format:
STORE:,SEARCH:,ASK: - Place command at the beginning of subject or body
- Avoid complex formatting that may confuse parsing