Instantly Auto-Reply
Goal
Auto-generate intelligent replies to incoming emails from Instantly campaigns using campaign-specific knowledge bases.
Scripts
- •
./scripts/instantly_autoreply.py- Main auto-reply script
How It Works
- •Receives incoming email thread from Instantly webhook
- •Looks up campaign ID in knowledge base sheet
- •Retrieves campaign context (offers, credentials, tone)
- •Generates contextual reply using Claude
- •Sends reply through Instantly API
Knowledge Base
Spreadsheet: 1QS7MYDm6RUTzzTWoMfX-0G9NzT5EoE2KiCE7iR1DBLM
Each row contains:
- •Campaign ID
- •Campaign Name
- •Knowledge Base (service details, offers, credentials)
- •Reply Examples (tone/style guidance)
Usage
bash
# Process incoming thread python3 ./scripts/instantly_autoreply.py --thread_id <id>
Environment
code
INSTANTLY_API_KEY=your_key ANTHROPIC_API_KEY=your_key