← Back to Skills Marketplace
polzer1999

get-some-leads

by Polzer1999 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
156
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install instantly-campaign-builder
Description
Create and manage Instantly.ai email campaigns via API. Use when the user wants to create a cold email campaign, add leads to Instantly, configure email sequ...
README (SKILL.md)

Instantly Campaign Builder

Build and manage Instantly.ai cold email campaigns via API v2.

Auth

All requests require:

Authorization: Bearer {INSTANTLY_API_KEY}
Content-Type: application/json
Base URL: https://api.instantly.ai

Workflow — Follow this order

Step 1: Create the campaign

POST /api/v2/campaigns

Required fields:

  • name — campaign name
  • email_list — array of sender email addresses
  • sequences — message steps (see Step 2)

Optional but recommended:

  • daily_limit — max emails per day
  • daily_max_leads — max new leads contacted per day
  • email_gap — seconds between sends
  • open_tracking, link_tracking — boolean
  • stop_on_reply, stop_on_auto_reply, stop_for_company — boolean
  • text_only, first_email_text_only — boolean
  • campaign_schedule — object with start_date, end_date, schedules (times/days/timezone)

Step 2: Configure sequences (messages)

The sequences field is an array but only the first element is used. Put all steps in one item.

Each step has:

  • type: always "email"
  • delay: number (wait before this step)
  • delay_unit: "minutes", "hours", or "days"
  • variants: array of message variants (A/B testing)

Each variant has:

  • subject: email subject line
  • body: email body (HTML or plain text)
  • v_disabled: boolean (set true to disable a variant)

Variable syntax in subject and body: {{variableName}}

Core variables: {{firstName}}, {{lastName}}, {{companyName}}, {{email}}, {{phone}}, {{website}}

Custom variables: any name, e.g. {{city}}, {{offer}}, {{icebreaker}}

Example 3-step ARA sequence:

{
  "sequences": [
    {
      "steps": [
        {
          "type": "email",
          "delay": 0,
          "delay_unit": "days",
          "variants": [
            {
              "subject": "{{firstName}}, {{offer}}",
              "body": "Bonjour {{firstName}},\
\
{{icebreaker}}\
\
Nous proposons {{offer}} pour les entreprises à {{city}}.\
\
Cordialement"
            }
          ]
        },
        {
          "type": "email",
          "delay": 3,
          "delay_unit": "days",
          "variants": [
            {
              "subject": "Re: {{firstName}}, suite à mon message",
              "body": "{{firstName}},\
\
Je me permets de relancer..."
            }
          ]
        },
        {
          "type": "email",
          "delay": 5,
          "delay_unit": "days",
          "variants": [
            {
              "subject": "Dernière relance {{firstName}}",
              "body": "{{firstName}},\
\
Dernier message de ma part..."
            }
          ]
        }
      ]
    }
  ]
}

Step 3: Declare campaign variables

POST /api/v2/campaigns/{campaign_id}/variables

{
  "variables": ["firstName", "companyName", "city", "offer", "icebreaker"]
}

Declare every custom variable name used in your sequences here.

Step 4: Add leads

Single lead: POST /api/v2/leads

{
  "email": "[email protected]",
  "first_name": "Jean",
  "last_name": "Dupont",
  "company_name": "Acme SAS",
  "campaign": "campaign-uuid",
  "custom_variables": {
    "city": "Paris",
    "offer": "audit IA gratuit",
    "icebreaker": "J'ai vu votre post LinkedIn sur la transformation digitale"
  }
}

Bulk (max 1000 per request): POST /api/v2/leads/add

{
  "campaign_id": "campaign-uuid",
  "leads": [
    {
      "email": "[email protected]",
      "first_name": "Jean",
      "last_name": "Dupont",
      "company_name": "Acme SAS",
      "custom_variables": { "city": "Paris", "offer": "audit IA gratuit" }
    },
    {
      "email": "[email protected]",
      "first_name": "Marie",
      "last_name": "Martin",
      "company_name": "Beta Corp",
      "custom_variables": { "city": "Lyon", "offer": "démo chatbot" }
    }
  ]
}

Notes:

  • Use campaign_id OR list_id, not both
  • If campaign is provided on single lead, email is required
  • Deduplication flags: skip_if_in_campaign, skip_if_in_workspace, skip_if_in_list

Step 5: Activate the campaign

POST /api/v2/campaigns/{campaign_id}/activate

Only activate after leads are added and sequences are configured.

Modifying an existing campaign

PATCH /api/v2/campaigns/{campaign_id}

Same sequences structure as creation. Use this to update messages after campaign is created.

A/B Testing

Add multiple variants per step:

{
  "type": "email",
  "delay": 0,
  "delay_unit": "days",
  "variants": [
    {
      "subject": "Version A — {{firstName}}",
      "body": "Approche directe...",
      "v_disabled": false
    },
    {
      "subject": "Version B — {{firstName}}",
      "body": "Approche soft...",
      "v_disabled": false
    }
  ]
}

Required API Scopes

  • Leads: leads:create, leads:all, all:create, or all:all
  • Campaigns: campaigns:create, campaigns:all, all:create, or all:all
  • Campaign update: campaigns:update, campaigns:all, all:update, or all:all

Checklist before activation

  1. Campaign created with sequences and variables in subject/body
  2. Variables declared via /campaigns/{id}/variables
  3. Leads added with matching custom_variables
  4. Sender emails configured and warmed up
  5. Schedule set if needed
  6. Campaign activated via /campaigns/{id}/activate
Usage Guidance
This is an instruction-only adapter for Instantly.ai and appears internally consistent. Before installing: (1) only provide an INSTANTLY_API_KEY with the minimum scopes needed (prefer campaign/lead-specific scopes instead of 'all:all'); (2) be aware that the skill will send lead data (personal data) to Instantly — confirm this complies with your privacy policies and GDPR/other laws as applicable; (3) consider whether you want the skill to be allowed to invoke autonomously (platform default) because it could create/activate campaigns if triggered; (4) rotate and monitor the API key and audit Instantly account activity. If you need higher assurance, request the skill author supply an explicit list of required API scopes and example responses for safety testing.
Capability Analysis
Type: OpenClaw Skill Name: instantly-campaign-builder Version: 1.0.0 The skill bundle contains standard documentation and workflow instructions for an AI agent to interact with the Instantly.ai API. It provides legitimate API endpoints (api.instantly.ai), request structures, and variable definitions for managing email campaigns, with no evidence of malicious intent, data exfiltration, or prompt injection attacks.
Capability Assessment
Purpose & Capability
The name/description claim building and managing Instantly.ai campaigns; the only required credential is INSTANTLY_API_KEY and the SKILL.md documents Instantly API endpoints — this is proportionate and coherent.
Instruction Scope
The runtime instructions only describe constructing API requests to api.instantly.ai (creating campaigns, declaring variables, adding leads, activating campaigns). They do not instruct reading unrelated files, other env vars, or sending data to other endpoints. The header note that the skill 'triggers on any mention...' is a routing hint but does not expand the agent's access scope.
Install Mechanism
No install spec and no code files — instruction-only skill. There is nothing written to disk or downloaded during install, which minimizes risk.
Credentials
Only INSTANTLY_API_KEY is required (declared as primary). This is appropriate. The SKILL.md lists possible API scopes and includes very broad scopes (e.g., 'all:all'); users should prefer least-privilege scopes (campaigns:create, leads:create) when issuing the key.
Persistence & Privilege
always is false and the skill is user-invocable; it does not request persistent system privileges or to modify other skills. Autonomous invocation is allowed by platform default but not elevated by this skill.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install instantly-campaign-builder
  3. After installation, invoke the skill by name or use /instantly-campaign-builder
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
- Initial release of Instantly Campaign Builder. - Create and manage Instantly.ai cold email campaigns via API. - Set up sequences with custom variables and A/B testing variants. - Add single or bulk leads with personalized data. - Handle campaign activation and post-creation editing. - Includes detailed workflow and API usage instructions.
Metadata
Slug instantly-campaign-builder
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is get-some-leads?

Create and manage Instantly.ai email campaigns via API. Use when the user wants to create a cold email campaign, add leads to Instantly, configure email sequ... It is an AI Agent Skill for Claude Code / OpenClaw, with 156 downloads so far.

How do I install get-some-leads?

Run "/install instantly-campaign-builder" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is get-some-leads free?

Yes, get-some-leads is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does get-some-leads support?

get-some-leads is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created get-some-leads?

It is built and maintained by Polzer1999 (@polzer1999); the current version is v1.0.0.

💬 Comments