instantly-webhooks-events
Implement Instantly webhook signature validation and event handling. Use when setting up webhook endpoints, implementing signature verification, or handling Instantly event notifications securely. Trigger with phrases like "instantly webhook", "instantly events", "instantly webhook signature", "handle instantly events", "instantly notifications".
Install
mkdir -p .claude/skills/instantly-webhooks-events && curl -L -o skill.zip "https://mcp.directory/api/skills/download/2745" && unzip -o skill.zip -d .claude/skills/instantly-webhooks-events && rm skill.zipInstalls to .claude/skills/instantly-webhooks-events
About this skill
Instantly Webhooks & Events
Overview
Handle Instantly webhooks for real-time email outreach event notifications. Instantly fires webhooks when emails are sent, opened, replied to, bounced, or when leads change status.
Prerequisites
- Instantly account with API access enabled
- Instantly API key stored in
INSTANTLY_API_KEYenvironment variable - HTTPS endpoint for receiving webhook deliveries
- Active email campaigns configured in Instantly
Webhook Event Types
| Event | Trigger | Payload |
|---|---|---|
email.sent | Email delivered | Lead email, campaign ID, step |
email.opened | Recipient opens email | Lead email, open count, timestamp |
email.replied | Recipient replies | Lead email, reply text, sentiment |
email.bounced | Email bounced | Lead email, bounce type, reason |
email.unsubscribed | Recipient unsubscribes | Lead email, campaign |
lead.interested | Lead marked interested | Lead data, campaign context |
lead.meeting_booked | Meeting scheduled | Lead data, calendar details |
Instructions
Step 1: Configure Webhook Endpoint
import express from "express";
const app = express();
app.use(express.json());
app.post("/webhooks/instantly", async (req, res) => {
const apiKey = req.headers["x-api-key"] as string;
if (apiKey !== process.env.INSTANTLY_WEBHOOK_SECRET) {
return res.status(401).json({ error: "Unauthorized" }); # HTTP 401 Unauthorized
}
const { event_type, data, timestamp } = req.body;
res.status(200).json({ received: true }); # HTTP 200 OK
await handleInstantlyEvent(event_type, data);
});
Step 2: Route and Process Events
async function handleInstantlyEvent(eventType: string, data: any) {
switch (eventType) {
case "email.replied":
await handleReply(data);
break;
case "email.opened":
await handleOpen(data);
break;
case "email.bounced":
await handleBounce(data);
break;
case "lead.interested":
await handleInterestedLead(data);
break;
case "lead.meeting_booked":
await handleMeetingBooked(data);
break;
}
}
async function handleReply(data: any) {
const { lead_email, campaign_id, reply_text, reply_sentiment } = data;
console.log(`Reply from ${lead_email} (sentiment: ${reply_sentiment})`);
// Sync to CRM
await crmClient.updateLead(lead_email, {
status: reply_sentiment === "positive" ? "interested" : "replied",
lastActivity: new Date(),
lastReply: reply_text,
});
// Notify sales team for positive replies
if (reply_sentiment === "positive") {
await slackNotify("#sales-leads", {
text: `Positive reply from ${lead_email}!\nCampaign: ${campaign_id}`,
});
}
}
async function handleBounce(data: any) {
const { lead_email, bounce_type, reason } = data;
// Remove hard bounces from all campaigns
if (bounce_type === "hard") {
await fetch("https://api.instantly.ai/api/v1/lead/delete", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Authorization": `Bearer ${process.env.INSTANTLY_API_KEY}`,
},
body: JSON.stringify({
email: lead_email,
delete_from_all_campaigns: true,
}),
});
}
}
Step 3: Register Webhook via API
set -euo pipefail
curl -X POST https://api.instantly.ai/api/v1/webhooks \
-H "Authorization: Bearer $INSTANTLY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"webhook_url": "https://api.yourapp.com/webhooks/instantly",
"event_types": ["email.replied", "email.bounced", "lead.interested"],
"secret": "your-webhook-secret"
}'
Step 4: Track Campaign Analytics
async function handleOpen(data: any) {
const { lead_email, campaign_id, open_count } = data;
await analyticsDb.trackEvent({
event: "email_opened",
campaignId: campaign_id,
leadEmail: lead_email,
openCount: open_count,
timestamp: new Date(),
});
}
async function handleMeetingBooked(data: any) {
const { lead_email, meeting_time, calendar_link } = data;
await crmClient.createDeal({
contactEmail: lead_email,
stage: "meeting_scheduled",
meetingTime: meeting_time,
});
}
Error Handling
| Issue | Cause | Solution |
|---|---|---|
| Missing events | Webhook not registered | Verify webhook URL in Instantly dashboard |
| Duplicate replies | Retry delivery | Deduplicate by lead_email + timestamp |
| Invalid API key | Key expired | Regenerate in Instantly settings |
| High bounce rate | Bad lead list | Clean list with email verification service |
Examples
Campaign Performance Dashboard
async function getCampaignStats(campaignId: string) {
const response = await fetch(
`https://api.instantly.ai/api/v1/analytics/campaign?campaign_id=${campaignId}`,
{ headers: { "Authorization": `Bearer ${process.env.INSTANTLY_API_KEY}` } }
);
return response.json();
}
Resources
Next Steps
For deployment setup, see instantly-deploy-integration.
Output
- Configuration files or code changes applied to the project
- Validation report confirming correct implementation
- Summary of changes made and their rationale
More by jeremylongshore
View all skills by jeremylongshore →You might also like
flutter-development
aj-geddes
Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.
drawio-diagrams-enhanced
jgtolentino
Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.
godot
bfollington
This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.
ui-ux-pro-max
nextlevelbuilder
"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."
nano-banana-pro
garg-aayush
Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.
fastapi-templates
wshobson
Create production-ready FastAPI projects with async patterns, dependency injection, and comprehensive error handling. Use when building new FastAPI applications or setting up backend API projects.
Related MCP Servers
Browse all serversAccess official Microsoft Docs instantly for up-to-date info. Integrates with ms word and ms word online for seamless wo
Protect your MCP with AIM Guard—advanced threat detection software for unauthorized access, botnet, and malware detectio
Spec-Driven Development integrates with IBM DOORS software to track software licenses, automate requirements, and enforc
Integrate notifications into your workflow with DingTalk. Send messages, updates, and team alerts via secure webhook con
Break down complex problems with Sequential Thinking, a structured tool and step by step math solver for dynamic, reflec
Build persistent semantic networks for enterprise & engineering data management. Enable data persistence and memory acro
Stay ahead of the MCP ecosystem
Get weekly updates on new skills and servers.