Files
ai-mailer/config.yaml.example

35 lines
1.3 KiB
Plaintext

imap:
server: "imap.gmail.com" # Example for Gmail
port: 993
username: "your-email@gmail.com"
password: "${IMAP_PASSWORD}" # From environment variable, or use "file:///path/to/password.txt"
mailbox_in: "INBOX"
draft_box: "Drafts"
processed_box: "Processed" # Folder where processed emails will be moved
use_tls: true
ai:
openrouter_api_key: "${OPENROUTER_API_KEY}" # From environment variable, or use "file:///path/to/api-key.txt"
model: "anthropic/claude-2" # Other options: "openai/gpt-4", "google/palm-2"
temperature: 0.7 # 0.0 to 1.0, lower for more focused responses
max_tokens: 2000 # Adjust based on your needs and model limits
context:
urls:
- "https://your-company.com/faq"
- "https://your-company.com/about"
- "https://your-company.com/support"
polling:
interval: "5m" # Examples: "30s", "1m", "1h"
processing:
max_tokens: 12000 # Maximum total tokens for API request (system + context + email)
# Recommended: 8000-12000 for most models
# Set to 0 for no limit
# Note: Attachments are automatically stripped before counting
skip_junk_emails: false # Skip emails marked as junk/spam (not yet implemented)
logging:
level: "info" # Options: "debug", "info", "warn", "error"
file_path: "paraclub-ai-mailer.log"