First-party app
ActiveCampaign

ActiveCampaign

Manage ActiveCampaign contacts, deals, campaigns and automations.

stable MarketingCustomer Relationship Management

About

ActiveCampaign ships in the w6w first-party pack. It declares 13 actions, 3 health checks, and the host runs its code in a sandbox that never sees the credential.

App id
io.w6w.activecampaign
Version
0.1.2
Author
w6w
Licence
MIT
Categories
Marketing · Customer Relationship Management

Overview

ActiveCampaign combines email marketing, CRM and marketing automation in one account, and this app gives a workflow a direct line into all three: create, update and remove contacts, create and track deals, and look up campaigns as they go out.

Automations stay something built in ActiveCampaign’s own editor — the vendor’s API doesn’t allow creating or editing them — but a workflow can list existing automations and enroll a contact into one the moment some other system says they qualify, which covers the common case of triggering a sequence from an external event without duplicating its logic elsewhere.

Because ActiveCampaign issues each account its own API hostname rather than a single fixed endpoint, that address is collected once alongside the credential, so every action reaches the right account automatically and a workflow never has to track the URL itself.

Build with ActiveCampaign

Three routes to the same 13 actions. The Workflow tab is generated from ActiveCampaign's own manifest and carries its real ids, so it is copy-pasteable; the Code and CLI examples are the same call for any action on any app, so every app-specific value in them is a blank you fill in.

Add Contact to Automation

add-contact-to-automation

Enroll an existing contact into an existing automation.

Create Contact

create-contact

Create a new contact. Email or phone is required (per your account's settings).

Create Deal

create-deal

Create a new deal. One of Contact ID / Account ID is required, and one of Pipeline ID / Stage ID is required.

Delete Contact

delete-contact

Permanently delete a contact.

Get Automation

get-automation

Retrieve a single automation by ID.

Get Campaign

get-campaign

Retrieve a single email campaign by ID.

Get Contact

get-contact

Retrieve a single contact by ID.

Get Deal

get-deal

Retrieve a single deal by ID.

List Automations

list-automations

List automations. Automations themselves are read-only via the API.

List Campaigns

list-campaigns

List email campaigns, optionally filtered to those sent from one automation.

List Contacts

list-contacts

List contacts, optionally filtered by email, list, tag or status.

List Deals

list-deals

List deals, optionally filtered by pipeline stage, pipeline or status.

Update Contact

update-contact

Update fields on an existing contact. Only set fields are changed.

A workflow step names the app and the action, and the editor fills in the connection when you pick one. This is the Step shape from the workflow spec, carrying ActiveCampaign's real ids.

{
  "manifestVersion": "2",
  "name": "activecampaign-example",
  "steps": [
    {
      "id": "add-contact-to-automation",
      "uses": {
        "app": "io.w6w.activecampaign",
        "action": "add-contact-to-automation",
        "connection": "conn_YOUR_CONNECTION_ID"
      },
      "with": {
        "contactId": "<contactId>",
        "automationId": "<automationId>"
      }
    }
  ]
}

Here are some of the things you can do

  • Add Contact to Automation

    perform
    add-contact-to-automation
  • Create Contact

    perform
    create-contact
  • Create Deal

    perform
    create-deal
  • Get Automation

    read
    get-automation
  • Get Campaign

    read
    get-campaign

+8 more actions available

Every app-specific value here is a blank you have to fill in. An app action is reached through the connection that authenticates it, so the address is a connection id, not the app id — and connections belong to your account, so a public page cannot know yours. Create one for ActiveCampaign, then fill in the three blanks: conn_YOUR_CONNECTION_ID, the action key, and the parameters that action declares. The call itself is real — the shape is transcribed from the studio's own snippet builder, which prints the same kind of blanks — but nothing in it is specific to ActiveCampaign. The Workflow tab is where this app's real ids are.

Install
npm install @w6w/sdk
yarn add @w6w/sdk
pnpm add @w6w/sdk
deno add npm:@w6w/sdk
Code
import { W6wClient, isActionRun } from "@w6w/sdk";

// Reads W6W_BASE_URL and W6W_TOKEN from the environment when omitted.
const client = new W6wClient();

const envelope = await client.run({
  urn: "conn_YOUR_CONNECTION_ID",
  action: "create-contact",
  payload: {
    // email: "<value>",
    // phone: "<value>",
    // firstName: "<value>",
    // lastName: "<value>",
    // fieldValues: "<value>",
  },
});

if (isActionRun(envelope)) console.log(envelope.value);
Install the CLI
npm install -g @w6w/cli
CLI
w6w run conn_YOUR_CONNECTION_ID --action create-contact --payload '{}'

Give an AI agent ActiveCampaign — without giving it ActiveCampaign's credentials. One MCP endpoint exposes every app, function and workflow the caller is entitled to, as tools it can discover and run. Access is granted per team while we onboard.

One tool call
{
  "name": "w6w_invoke",
  "arguments": {
    "ref": "app:io.w6w.activecampaign#add-contact-to-automation",
    "input": {
      "contactId": "<contactId>",
      "automationId": "<automationId>"
    }
  }
}

Every tool names its target with a single ref. The app: form above doesn't name a connection at all — the host resolves which of the caller's ActiveCampaign connections to sign with, and refuses rather than guesses when the answer is ambiguous.

What the agent gets

Credentials it can't read

The token is attached host-side, at the moment of the call. It is never a tool argument, never in the model's context, and never in a transcript — so a prompt injection has nothing to exfiltrate.

A tool surface scoped to the caller

Tools are derived per end user from what that person has actually connected and is entitled to — not one shared bot identity carrying the union of everyone's access.

A durable workflow in one call

Multi-step work runs on the workflow engine and returns a run handle the agent can poll — retries, branching and state survive the conversation that started them.

Health-aware discovery

ActiveCampaign's declared health checks are on the surface too, so an agent can tell "the vendor is down" from "your credential expired" before it burns a retry on either.

The MCP surface is part of the hosted platform. ActiveCampaign itself is MIT, and the runtime that executes it is source-available (FSL).

Request MCP access

Health checks

ActiveCampaign declares its own checks, so its health is a property of the app rather than something the host guesses at.

service

ActiveCampaign platform status

Atlassian Statuspage rollup for status.activecampaign.com, with per-component, per-region detail. Unauthenticated and unsigned.

dependency

API host reachable

Unauthenticated request to this connection's ActiveCampaign API host. A 401/403 passes — it proves the host is serving; credential validity is the `auth:*` check's job.

quota

API rate-limit headroom

Requests remaining this second, read off the `RateLimit-*` headers. ActiveCampaign meters 5 requests/second per account.