How do I use a webhook to create a list of contacts with completed deal tasks?

In this article, we’ll show you how you can use a webhook in order to create a list of all contacts with Deal tasks marked as “Complete.” You may want to do this if you wish to later create your own Deal report that lists out the total number of completed tasks per contact.

To get started, you will need the following:
ActiveCampaign account on either the Plus, Professional, or Enterprise plan
Zapier account
Google Sheets (or any other spreadsheet software that integrates with Zapier)

To get started:

  1. In your ActiveCampaign account, click your avatar and click “My Settings.”

    Account_my_settings.png

  2. Select Developer from the left side menu.

    Select_developer.png

  3. Click “Manage Webhooks.”

    manage_webhooks_2.png

  4. Click “Add.”

    Webhook_click_add.png
  5. Open a separate tab or window and log into your Zapier account then click "Make a Zap."
  6. Select Webhooks as your trigger and click “Catch Hook.” Click “Save + Continue.”

    click_catch_hook.png

  7. Click “Continue” again.
  8. Copy the webhook URL to your clipboard by clicking the “Copy to Clipboard” button.

    copy_webhook_to_clipboard.png

  9. Go back to the Webhook page in your ActiveCampaign account.
  10. Select which list will be associated with this webhook. In this example, we’re going to choose “All Lists.”
  11. Give your webhook a name and paste the webhook URL generated by Zapier into the URL bar.

    name_webhook.png
  12. Click the Deal Task Completed checkbox to select it.
  13. Select where this webhook will run from by clicking it. In this example, we’re going to select both “by an admin user” and “By system process.” This webhook will run every time an account user marks a task as complete or when a system process, such as an automation action, marks the task as complete.

    webhook_initialize_from.png
  14. Click the “Add” button.
  15. Then create a task for a test contact with an open deal and mark it as complete. This step is necessary in order to test your Zapier trigger.
  16. Go back to Zapier to finish creating your Zap.
  17. Click “Ok I did this” in order to test your trigger.

    click_ok_i_did_this.png

  18. Click “Continue” to proceed with setting up your action.

    test_successful_in_zapier.png

  19. Select Google Sheets from the list of available apps by clicking it.

    select_google_sheets.png

  20. Select “Create Spreadsheet row” by clicking it. Then click “Save + Continue.”
  21. Connect your Google Sheets account to Zapier if it’s not connected already. Then click “Save + Continue.”

    click_save_and_continue.png

  22. Select the spreadsheet and worksheet you wish to update by selecting them from the appropriate dropdowns. Then, map the fields in your Google Sheet with the Contact fields you wish to capture in your ActiveCampaign account. Click “Continue.”

    set_up_google_sheet.png
  23. Test the Zapier action and click “Finish.”

    test_zap_again.png

  24. Give your Zap a name and toggle it to on.

Moving forward, as tasks are marked as complete by users or system process, contacts will be added to your Google Sheet.

Note: Deal Tasks are available for accounts on the Plus, Professional, and Enterprise tiers.

Have more questions? Submit a request