🎉 Pipedream raises $20M Series A 🎉
Read the blog post and TC Techcrunch article.
← ActiveCampaign

New Automation Webhook from ActiveCampaign API

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

Trigger workflow on
New Automation Webhook from the ActiveCampaign API
Next, do this
Connect to 700+ APIs using code and no-code building blocks
No credit card required
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 700+ 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


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.


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

export default {
  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: {
    timer: {
      type: "$.interface.timer",
      default: {
        intervalSeconds: 60 * 15,
    automations: {
      propDefinition: [
  methods: {
    isWatchedAutomation(automation) {
      return (
        this.automations?.length === 0 ||
    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: {
          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);


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.
ActiveCampaignactivecampaignappThis component uses the ActiveCampaign app.
N/Adb$.service.dbThis component uses $.service.db to maintain state between component invocations.
Automationsautomationsstring[]Select a value from the drop down menu.


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

About Pipedream

Stop writing boilerplate code, struggling with authentication and managing infrastructure. Start connecting APIs with code-level control when you need it — and no code when you don't.

Into to Pipedream
Watch us build a workflow
Watch us build a workflow
7 min
Watch now ➜
"The past few weeks, I truly feel like the clichéd 10x engineer."