instantly-core-workflow-a
Build and launch an Instantly.ai cold email campaign end-to-end. Use when creating campaigns, adding leads, configuring sequences, and launching outreach via the Instantly API v2. Trigger with phrases like "instantly campaign", "launch instantly campaign", "create instantly outreach", "instantly cold email", "instantly send campaign".
Best use case
instantly-core-workflow-a is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Build and launch an Instantly.ai cold email campaign end-to-end. Use when creating campaigns, adding leads, configuring sequences, and launching outreach via the Instantly API v2. Trigger with phrases like "instantly campaign", "launch instantly campaign", "create instantly outreach", "instantly cold email", "instantly send campaign".
Teams using instantly-core-workflow-a should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/instantly-core-workflow-a/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How instantly-core-workflow-a Compares
| Feature / Agent | instantly-core-workflow-a | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Build and launch an Instantly.ai cold email campaign end-to-end. Use when creating campaigns, adding leads, configuring sequences, and launching outreach via the Instantly API v2. Trigger with phrases like "instantly campaign", "launch instantly campaign", "create instantly outreach", "instantly cold email", "instantly send campaign".
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
AI Agent for Cold Email Generation
Discover AI agent skills for cold email generation, outreach copy, lead personalization, CRM support, and sales-adjacent messaging workflows.
Best AI Skills for Claude
Explore the best AI skills for Claude and Claude Code across coding, research, workflow automation, documentation, and agent operations.
ChatGPT vs Claude for Agent Skills
Compare ChatGPT and Claude for AI agent skills across coding, writing, research, and reusable workflow execution.
SKILL.md Source
# Instantly Core Workflow A: Campaign Launch Pipeline
## Overview
Build the core Instantly outreach pipeline: create a campaign with email sequences, add leads with personalization, assign sending accounts, and launch. This is the primary money-path workflow for cold email outreach via Instantly API v2.
## Prerequisites
- Completed `instantly-install-auth` setup
- At least one warmed-up email account in Instantly
- Lead data (CSV or programmatic) with email + first name at minimum
- API key with `campaigns:all` and `leads:all` scopes
## Instructions
### Step 1: Create a Campaign with Sequences
```typescript
import { instantly } from "./src/instantly";
interface CreateCampaignPayload {
name: string;
campaign_schedule: {
start_date: string;
end_date?: string;
schedules: Array<{
name: string;
timing: { from: string; to: string };
days: Record<string, boolean>;
timezone: string;
}>;
};
sequences: Array<{
steps: Array<{
type: "email";
delay: number;
delay_unit?: "minutes" | "hours" | "days";
variants: Array<{ subject: string; body: string }>;
}>;
}>;
daily_limit?: number;
stop_on_reply?: boolean;
stop_on_auto_reply?: boolean;
email_gap?: number;
link_tracking?: boolean;
open_tracking?: boolean;
}
async function createCampaign() {
const payload: CreateCampaignPayload = {
name: "Q1 Outbound — Decision Makers",
campaign_schedule: {
start_date: "2026-04-01",
schedules: [
{
name: "Business Hours",
timing: { from: "09:00", to: "17:00" },
days: { "1": true, "2": true, "3": true, "4": true, "5": true, "0": false, "6": false },
timezone: "America/New_York",
},
],
},
// sequences array takes ONE element — add steps inside it
sequences: [
{
steps: [
{
type: "email",
delay: 0, // first email — no delay
variants: [
{
subject: "{{firstName}}, quick question about {{companyName}}",
body: `Hi {{firstName}},\n\nI noticed {{companyName}} is scaling its outbound — we help teams like yours book 3x more meetings without adding headcount.\n\nWorth a 15-min call this week?\n\nBest,\n{{senderName}}`,
},
{
subject: "Idea for {{companyName}}",
body: `Hey {{firstName}},\n\nSaw that {{companyName}} is growing fast. We helped [similar company] increase reply rates by 40%.\n\nOpen to a quick chat?\n\n{{senderName}}`,
},
],
},
{
type: "email",
delay: 3,
delay_unit: "days",
variants: [
{
subject: "Re: {{firstName}}, quick question about {{companyName}}",
body: `Hi {{firstName}},\n\nJust following up on my last note. Would love to share how we helped [company] with a similar challenge.\n\nHappy to work around your schedule.\n\n{{senderName}}`,
},
],
},
{
type: "email",
delay: 4,
delay_unit: "days",
variants: [
{
subject: "Re: {{firstName}}, quick question about {{companyName}}",
body: `Hi {{firstName}},\n\nI know you're busy — just wanted to check if improving outbound results is a priority right now.\n\nIf not, no worries at all. If so, I'd love 15 minutes.\n\nBest,\n{{senderName}}`,
},
],
},
],
},
],
daily_limit: 50,
stop_on_reply: true,
stop_on_auto_reply: false,
email_gap: 120, // seconds between emails
link_tracking: false, // disable for better deliverability
open_tracking: true,
};
const campaign = await instantly<{ id: string; name: string; status: number }>(
"/campaigns",
{ method: "POST", body: JSON.stringify(payload) }
);
console.log(`Campaign created: ${campaign.name} (${campaign.id})`);
return campaign;
}
```
### Step 2: Add Leads to the Campaign
```typescript
interface Lead {
email: string;
first_name?: string;
last_name?: string;
company_name?: string;
website?: string;
phone?: string;
personalization?: string;
custom_variables?: Record<string, string>;
}
async function addLeads(campaignId: string, leads: Lead[]) {
// POST /api/v2/leads — one at a time
// For bulk: POST /api/v2/leads with list_id or loop
const results = [];
for (const lead of leads) {
const created = await instantly("/leads", {
method: "POST",
body: JSON.stringify({
campaign: campaignId,
email: lead.email,
first_name: lead.first_name,
last_name: lead.last_name,
company_name: lead.company_name,
website: lead.website,
personalization: lead.personalization,
custom_variables: lead.custom_variables,
skip_if_in_workspace: true, // avoid duplicates
verify_leads_on_import: true,
}),
});
results.push(created);
}
console.log(`Added ${results.length} leads to campaign ${campaignId}`);
return results;
}
// Example lead data
const sampleLeads: Lead[] = [
{
email: "jane@acmecorp.com",
first_name: "Jane",
last_name: "Smith",
company_name: "Acme Corp",
custom_variables: { companyName: "Acme Corp", senderName: "Alex" },
},
{
email: "bob@techstart.io",
first_name: "Bob",
last_name: "Johnson",
company_name: "TechStart",
custom_variables: { companyName: "TechStart", senderName: "Alex" },
},
];
```
### Step 3: Map Sending Accounts to Campaign
```typescript
async function assignAccounts(campaignId: string) {
// Get available warmed-up accounts
const accounts = await instantly<{ email: string; warmup_status: string }[]>(
"/accounts?limit=50"
);
const warmedUp = accounts.filter((a) => a.warmup_status === "active");
console.log(`Found ${warmedUp.length} warmed-up accounts`);
// Check current account-campaign mappings
for (const account of warmedUp.slice(0, 3)) {
const mappings = await instantly(
`/account-campaign-mappings/${encodeURIComponent(account.email)}?limit=10`
);
console.log(`${account.email} mapped to ${Array.isArray(mappings) ? mappings.length : 0} campaigns`);
}
// Accounts are assigned to campaigns in the Instantly dashboard or
// via the PATCH campaign endpoint with email_list
await instantly(`/campaigns/${campaignId}`, {
method: "PATCH",
body: JSON.stringify({
email_list: warmedUp.slice(0, 3).map((a) => a.email),
}),
});
console.log(`Assigned ${Math.min(3, warmedUp.length)} accounts to campaign`);
}
```
### Step 4: Launch the Campaign
```typescript
async function launchCampaign(campaignId: string) {
// Activate (start) the campaign
await instantly(`/campaigns/${campaignId}/activate`, { method: "POST" });
console.log(`Campaign ${campaignId} is now ACTIVE`);
// Verify sending status
const status = await instantly<{ sending: boolean; reason?: string }>(
`/campaigns/${campaignId}/sending-status`
);
console.log(`Sending status:`, status);
}
// Full pipeline
async function main() {
const campaign = await createCampaign();
await addLeads(campaign.id, sampleLeads);
await assignAccounts(campaign.id);
await launchCampaign(campaign.id);
console.log("\nCampaign launched successfully!");
}
main().catch(console.error);
```
## Key API Endpoints Used
| Method | Path | Purpose |
|--------|------|---------|
| `POST` | `/campaigns` | Create campaign with sequences |
| `PATCH` | `/campaigns/{id}` | Update campaign settings |
| `POST` | `/campaigns/{id}/activate` | Start sending |
| `POST` | `/campaigns/{id}/pause` | Stop sending |
| `GET` | `/campaigns/{id}/sending-status` | Check if actively sending |
| `POST` | `/leads` | Add a lead to campaign |
| `GET` | `/accounts` | List email accounts |
| `GET` | `/account-campaign-mappings/{email}` | Check account assignments |
## Error Handling
| Error | Cause | Solution |
|-------|-------|----------|
| `400 Bad Request` on create | Invalid schedule or sequence format | Ensure `days` keys are strings `"0"`-`"6"`, timing is `HH:MM` |
| Campaign stuck in Draft | No sending accounts assigned | Assign via `PATCH /campaigns/{id}` with `email_list` |
| Leads not receiving emails | Accounts not warmed up | Enable warmup first (see `instantly-core-workflow-b`) |
| `422` on lead add | Duplicate email in workspace | Set `skip_if_in_workspace: true` |
| Low open rates | Poor subject lines or spam folder | Disable link tracking, test with inbox placement |
## Resources
- [Create Campaign API](https://developer.instantly.ai/api/v2/campaign/createcampaign)
- [Campaign Schemas](https://developer.instantly.ai/api/v2/schemas)
- [Instantly Deliverability Guide](https://help.instantly.ai/en/articles/6222396-campaign-options)
## Next Steps
For account warmup and analytics, see `instantly-core-workflow-b`.Related Skills
calendar-to-workflow
Converts calendar events and schedules into Claude Code workflows, meeting prep documents, and standup notes. Use when the user mentions calendar events, meeting prep, standup generation, or scheduling workflows. Trigger with phrases like "prep for my meetings", "generate standup notes", "create workflow from calendar", or "summarize today's schedule".
workhuman-core-workflow-b
Workhuman core workflow b for employee recognition and rewards API. Use when integrating Workhuman Social Recognition, or building recognition workflows with HRIS systems. Trigger: "workhuman core workflow b".
workhuman-core-workflow-a
Workhuman core workflow a for employee recognition and rewards API. Use when integrating Workhuman Social Recognition, or building recognition workflows with HRIS systems. Trigger: "workhuman core workflow a".
wispr-core-workflow-b
Wispr Flow core workflow b for voice-to-text API integration. Use when integrating Wispr Flow dictation, WebSocket streaming, or building voice-powered applications. Trigger: "wispr core workflow b".
wispr-core-workflow-a
Wispr Flow core workflow a for voice-to-text API integration. Use when integrating Wispr Flow dictation, WebSocket streaming, or building voice-powered applications. Trigger: "wispr core workflow a".
windsurf-core-workflow-b
Execute Windsurf's secondary workflow: Workflows, Memories, and reusable automation. Use when creating reusable Cascade workflows, managing persistent memories, or automating repetitive development tasks. Trigger with phrases like "windsurf workflow", "windsurf automation", "windsurf memories", "cascade workflow", "windsurf slash command".
windsurf-core-workflow-a
Execute Windsurf's primary workflow: Cascade Write mode for multi-file agentic coding. Use when building features, refactoring across files, or performing complex code tasks. Trigger with phrases like "windsurf cascade write", "windsurf agentic coding", "windsurf multi-file edit", "cascade write mode", "windsurf build feature".
webflow-core-workflow-b
Execute Webflow secondary workflows — Sites management, Pages API, Forms submissions, Ecommerce (products/orders/inventory), and Custom Code via the Data API v2. Use when managing sites, reading pages, handling form data, or working with Webflow Ecommerce products and orders. Trigger with phrases like "webflow sites", "webflow pages", "webflow forms", "webflow ecommerce", "webflow products", "webflow orders".
webflow-core-workflow-a
Execute the primary Webflow workflow — CMS content management: list collections, CRUD items, publish items, and manage content lifecycle via the Data API v2. Use when working with Webflow CMS collections and items, managing blog posts, team members, or any dynamic content. Trigger with phrases like "webflow CMS", "webflow collections", "webflow items", "create webflow content", "manage webflow CMS", "webflow content management".
veeva-core-workflow-b
Veeva Vault core workflow b for REST API and clinical operations. Use when working with Veeva Vault document management and CRM. Trigger: "veeva core workflow b".
veeva-core-workflow-a
Veeva Vault core workflow a for REST API and clinical operations. Use when working with Veeva Vault document management and CRM. Trigger: "veeva core workflow a".
vastai-core-workflow-b
Execute Vast.ai secondary workflow: multi-instance orchestration, spot recovery, and cost optimization. Use when running distributed training, handling spot preemption, or optimizing GPU spend across multiple instances. Trigger with phrases like "vastai distributed training", "vastai spot recovery", "vastai multi-gpu", "vastai cost optimization".