# Instantly Autoreply

> Auto-generate intelligent replies to incoming Instantly email threads using knowledge bases. Use when user asks about email auto-replies, Instantly responses, or automated email handling.

- Skill: `aiagentwithdhruv/instantly-autoreply` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add aiagentwithdhruv/instantly-autoreply`
- Raw SKILL.md: https://api.skillmd.com/api/skills/aiagentwithdhruv/instantly-autoreply/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Productivity
- Author: aiagentwithdhruv (https://skillmd.com/u/aiagentwithdhruv)
- Updated: 2026-09-10
- Page: https://skillmd.com/skills/aiagentwithdhruv/instantly-autoreply

---


# 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
1. Receives incoming email thread from Instantly webhook
2. Looks up campaign ID in knowledge base sheet
3. Retrieves campaign context (offers, credentials, tone)
4. Generates contextual reply using Claude
5. 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
```
INSTANTLY_API_KEY=your_key
ANTHROPIC_API_KEY=your_key
```

---

## Schema

### Inputs
| Name | Type | Required | Description |
|------|------|----------|-------------|
| `thread_id` | string | Yes | Instantly thread ID to reply to |

### Outputs
| Name | Type | Description |
|------|------|-------------|
| `reply_sent` | boolean | Whether reply was sent successfully |

### Credentials
| Name | Source |
|------|--------|
| `INSTANTLY_API_KEY` | .env |
| `ANTHROPIC_API_KEY` | .env |

### Composable With
Skills that chain well with this one: `instantly-campaigns`

### Cost
Claude API per reply

