ActiveCampaign API Developer Tutorial: Building a "Sales Gong"

ActiveCampaign API Developer Tutorial: Building a "Sales Gong"

Download/view slides from this presentation on Slideshare

Intro: What will we build?

In this tutorial, I will walk you through how to create a “sales gong.” A sales gong, is some sort of motivational signal that celebrates when a sales team member makes a deal.
In this tutorial, we are going to make a sales “hockey police beacon” that will activate as once a sales team member marks a deal as “closed-won” in ActiveCampaign deals.

Pre-reqs & tools: How will we build it?

This is a developer tutorial meant to introduce several concepts. By the time you are finished, you will have a working prototype. It should be possible for beginner developers to complete this tutorial, and should introduce a few new technologies; the Serverless framework, AWS Lambda, AWS API Gateway,

What is AWS Lambda?

AWS Lambda is a function-as-a-service, sometimes referred to as a microservice. Several of the major cloud hosting providers offer something similar, but we will be focused on the AWS stack.
Lambda is billable by the 100 ms, so you only pay for the amount of compute resources it takes for your project to run, and you can get started exposing “semi” production application w very minimal time spent on infrastructure.

What is API Gateway?

Amazon API Gateway is a fully managed service that makes it easy for developers to create, publish, maintain, monitor, and secure APIs at any scale.

What is Serverless?

The Serverless Framework is a CLI tool that allows users to build & deploy auto-scaling, pay-per-execution, event-driven functions.

What is a Particle Photon?

Particle Photon is a cloud-connected IoT prototyping device. It is built on top of the same chips and technology as an Arduino, but the team has wrapped some cloud functionality around it.

  • It is easily exposed to the cloud
  • It comes with a cloud IDE, allowing you to edit code and publish changes to the firmware over wifi

This tutorial is meant to cover serverless applications and ActiveCampaign webhooks. C++ code is out of the score for this tutorial, however I would encourage you to check out the forums and some getting started guides on

Shopping list:

You will need a few things to complete this lesson.

  • A Particle Photon
  • A “Police Beacon” light
  • A Particle RELY shield
  • An AWS account
  • An ActiveCampaign account
  • Some wire cutters, an old cord,


You will also need to use some developer tools, and have some credentials

Never miss an update