{
  "workflow_name": "Add a note in ActiveCampaign when a ClickUp client task is done",
  "workflow_steps": {
    "steps": [
      {
        "id": "1",
        "position": {
          "x": 0,
          "y": 0
        },
        "data": {
          "label": "Task Status Updated",
          "app": {
            "key": "clickup",
            "fm_app": "clickup"
          },
          "eventSlug": "taskStatusUpdated",
          "eventTitle": "Task Status Updated",
          "layoutDirection": "horizontal",
          "stepNumber": 1
        },
        "targetPosition": "bottom",
        "type": "trigger",
        "stepNumber": 1,
        "expanded": true,
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "application": "clickup",
        "stepID": "1",
        "action": "taskStatusUpdated",
        "nodeType": "step",
        "actionAppArgs": [],
        "captureResponse": {
          "event": "taskStatusUpdated",
          "task_id": "86b2xk4qp",
          "webhook_id": "4b67ac88-e506-4a29-9d42-26e504e3435e",
          "history_items_0_before_status": "in review",
          "history_items_0_after_status": "complete"
        },
        "responses": [
          {
            "letter": "A",
            "time": "01/07/2026, 10:00:00",
            "response": {
              "event": "taskStatusUpdated",
              "task_id": "86b2xk4qp",
              "webhook_id": "4b67ac88-e506-4a29-9d42-26e504e3435e",
              "history_items_0_before_status": "in review",
              "history_items_0_after_status": "complete"
            }
          }
        ],
        "activeResponseIndex": 0
      },
      {
        "id": "2",
        "position": {
          "x": 175,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Filter Conditions",
          "layoutDirection": "horizontal",
          "stepNumber": 2,
          "app": {
            "key": "filter",
            "fm_app": "filter"
          },
          "eventSlug": "continue_if",
          "eventTitle": "Continue If Condition Meet",
          "customLabel": "Only completed tasks"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "filterConditions": {
            "1": [
              {
                "key": "{clickup1.history_items_0_after_status}",
                "condition": "contain_text",
                "value": "complete"
              }
            ]
          }
        },
        "application": "filter",
        "action": "continue_if",
        "nodeType": "step",
        "stepID": "2",
        "filterConditions": {
          "filterConditions": {
            "1": [
              {
                "key": "{clickup1.history_items_0_after_status}",
                "condition": "contain_text",
                "value": "complete"
              }
            ]
          }
        }
      },
      {
        "id": "3",
        "position": {
          "x": 350,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Get the task details",
          "layoutDirection": "horizontal",
          "stepNumber": 3,
          "app": {
            "key": "clickup",
            "fm_app": "clickup"
          },
          "eventSlug": "get_task",
          "eventTitle": "Get Task by Task ID"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "task_id": "{clickup1.task_id}"
        },
        "application": "clickup",
        "action": "get_task",
        "nodeType": "step",
        "stepID": "3"
      },
      {
        "id": "4",
        "position": {
          "x": 525,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Find or create the client contact",
          "layoutDirection": "horizontal",
          "stepNumber": 4,
          "app": {
            "key": "activecampaign",
            "fm_app": "activecampaign"
          },
          "eventSlug": "create_or_update_contact",
          "eventTitle": "Create or Update Contact"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "email": "{clickup3.custom_fields_0_value}"
        },
        "application": "activecampaign",
        "action": "create_or_update_contact",
        "nodeType": "step",
        "stepID": "4"
      },
      {
        "id": "5",
        "position": {
          "x": 700,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Log the finished task",
          "layoutDirection": "horizontal",
          "stepNumber": 5,
          "app": {
            "key": "activecampaign",
            "fm_app": "activecampaign"
          },
          "eventSlug": "add_contact_note",
          "eventTitle": "Add Contact Note"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "contact_id": "{activecampaign4.contact_id}",
          "note": "ClickUp task completed: {clickup3.name}\n{clickup3.url}"
        },
        "application": "activecampaign",
        "action": "add_contact_note",
        "nodeType": "step",
        "stepID": "5"
      },
      {
        "id": "main_end_placeholder",
        "position": {
          "x": 875,
          "y": 0
        },
        "type": "placeholder",
        "data": {
          "label": "+",
          "layoutDirection": "horizontal",
          "stepNumber": null,
          "app": []
        },
        "measured": {
          "width": 40,
          "height": 82
        },
        "stepID": "main_end_placeholder",
        "nodeType": "placeholder",
        "actionAppArgs": []
      }
    ],
    "edges": [
      {
        "id": "e-1-2",
        "source": "1",
        "target": "2",
        "type": "step",
        "data": []
      },
      {
        "id": "e-2-3",
        "source": "2",
        "target": "3",
        "type": "step",
        "data": []
      },
      {
        "id": "e-3-4",
        "source": "3",
        "target": "4",
        "type": "step",
        "data": []
      },
      {
        "id": "e-4-5",
        "source": "4",
        "target": "5",
        "type": "step",
        "data": []
      },
      {
        "id": "e-5-main_end_placeholder",
        "source": "5",
        "target": "main_end_placeholder",
        "type": "placeholder",
        "data": []
      }
    ]
  },
  "workflow_settings": {
    "name": "Add a note in ActiveCampaign when a ClickUp client task is done",
    "folder": "all",
    "description": "When a ClickUp task moves to complete, the workflow reads the task, finds the client by the email stored in a custom field and adds a note to their ActiveCampaign contact. Agencies and service teams keep delivery history next to the client's marketing record. After import, set the list in the trigger and map the custom field that holds the client email.",
    "status": "off",
    "user_email": "",
    "webhook_queue": "disabled",
    "workflow_auth_key": "",
    "builder_version": "v2",
    "time": "",
    "ai_generated": "yes"
  }
}