← ActiveCampaign

New Automation Webhook from ActiveCampaign API

Pipedream makes it easy to connect APIs for ActiveCampaign and 900+ other apps remarkably fast.

Trigger workflow on
New Automation Webhook from the ActiveCampaign API
Next, do this
Connect to 900+ APIs using code and no-code building blocks
No credit card required
Into to Pipedream
Watch us build a workflow
Watch us build a workflow
7 min
Watch now ➜
Trusted by 250,000+ developers from startups to Fortune 500 companies:
Trusted by 250,000+ developers from startups to Fortune 500 companies

Developers Pipedream

Getting Started

Trigger a workflow on New Automation Webhook with ActiveCampaign API. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Configure the New Automation Webhook trigger
    1. Connect your ActiveCampaign account
    2. Configure timer
    3. Optional- Select one or more Automations
  2. Add steps to connect to 900+ APIs using code and no-code building blocks
  3. Deploy the workflow
  4. Send a test event to validate your setup
  5. Turn on the trigger

Integrations

Send Message with Discord Webhook API on New Automation Webhook from ActiveCampaign API
ActiveCampaign + Discord Webhook
 
Try it
Add Multiple Rows with Google Sheets API on New Automation Webhook from ActiveCampaign API
ActiveCampaign + Google Sheets
 
Try it
Get Film with SWAPI API on New Automation Webhook from ActiveCampaign API
ActiveCampaign + SWAPI - Star Wars
 
Try it
Create Multiple Records with Airtable API on New Automation Webhook from ActiveCampaign API
ActiveCampaign + Airtable
 
Try it
Custom Request with HTTP / Webhook API on New Automation Webhook from ActiveCampaign API
ActiveCampaign + HTTP / Webhook
 
Try it

Details

This is a pre-built, open source component from Pipedream's GitHub repo. The component is developed by Pipedream and the community, and verified and maintained by Pipedream.

To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.

New Automation Webhook on ActiveCampaign
Description:Emit new event each time an automation sends out webhook data.
Version:0.0.4
Key:activecampaign-new-automation-webhook

Code

import activecampaign from "../../activecampaign.app.mjs";
import common from "../common/base.mjs";

export default {
  ...common,
  name: "New Automation Webhook",
  key: "activecampaign-new-automation-webhook",
  description: "Emit new event each time an automation sends out webhook data.",
  version: "0.0.4",
  type: "source",
  dedupe: "unique",
  props: {
    ...common.props,
    timer: {
      type: "$.interface.timer",
      default: {
        intervalSeconds: 60 * 15,
      },
    },
    automations: {
      propDefinition: [
        activecampaign,
        "automations",
      ],
    },
  },
  methods: {
    isWatchedAutomation(automation) {
      return (
        this.automations?.length === 0 ||
        this.automations?.includes(automation.id)
      );
    },
    isAutomationRelevant(automation) {
      if (!this.isWatchedAutomation(automation)) {
        return false;
      }

      const entered = this.db.get(automation.id) || 0; // number of times automation has run

      if (parseInt(automation.entered) <= entered) {
        return false;
      }

      this.db.set(automation.id, parseInt(automation.entered));

      return true;
    },
    getMeta(automation) {
      return {
        id: `${automation.id}${automation.entered}`,
        summary: automation.name,
        ts: Date.now(),
      };
    },
  },
  async run() {
    let resources = [];
    let offset = 0;
    let total = 1;

    do {
      const response =
        await this.activecampaign.paginateResources({
          requestFn: this.activecampaign.listAutomations,
          requestArgs: {
            params: {
              offset,
            },
          },
          resourceName: "automations",
          mapper: (resource) => resource,
        });

      const { options: nextResources } = response;
      ({
        offset, total,
      } = response.context);

      resources = resources.concat(nextResources);

      resources.forEach((resource) => {
        if (this.isAutomationRelevant(resource)) {
          this.$emit(resource, this.getMeta(resource));
        }
      });

    } while (resources.length < total);
  },
};

Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
LabelPropTypeDescription
ActiveCampaignactivecampaignappThis component uses the ActiveCampaign app.
N/Adb$.service.dbThis component uses $.service.db to maintain state between component invocations.
timer$.interface.timer
Automationsautomationsstring[]Select a value from the drop down menu.

Authentication

ActiveCampaign uses API keys for authentication. When you connect your ActiveCampaign account, Pipedream securely stores the keys so you can easily authenticate to ActiveCampaign APIs in both code and no-code steps.

You can find your Base URL and API Key in your Developer Settings in your account. See the ActiveCampaign API docs for more info.

About ActiveCampaign

Email marketing, marketing automation, and CRM tools

More Ways to Use ActiveCampaign

Triggers

Campaign Link Clicked (Instant) from the ActiveCampaign API

Emit new event when a link from a campaign is clicked (will only run once for each unique link).

 
Try it
Campaign Opened (Instant) from the ActiveCampaign API

Emit new event when a contact opens a campaign (will trigger once per contact per campaign).

 
Try it
Campaign Starts Sending (Instant) from the ActiveCampaign API

Emit new event each time a campaign starts sending.

 
Try it
New Campaign Bounce (Instant) from the ActiveCampaign API

Emit new event when a contact email address bounces from a sent campaign.

 
Try it
New Campaign Unsubscribe (Instant) from the ActiveCampaign API

Emit new event when a contact unsubscribes as a result of a campaign email sent to them.

 
Try it

Actions

Activecampaign - Get contact by email with the ActiveCampaign API

Retrieves contact data from the ActiveCampaign CRM by email address

 
Try it
ActiveCampaign - Remove Contact Tag with the ActiveCampaign API
 
Try it
Add Contact to Automation with the ActiveCampaign API

Adds an existing contact to an existing automation.

 
Try it
Create Account with the ActiveCampaign API

Create a new account. See the docs here.

 
Try it
Create Contact with the ActiveCampaign API

Create a new contact. See the docs here.

 
Try it