Guides
Alerts & Webhooks

Real-time Alerts

5min

Real-time Usage and Revenue Alerts

Amberflo can send alerts via email and webhooks.

An alert can be defined for a specific customer or for all customers.

An alert trigger condition can be defined as exceeding a constant number, or a percentage change of metered data over time.

Alerts can be defined for billing data as well, and be used to help your sales and finance teams take action at the right time.

Some examples:

  1. Get an email for any customer that exceeds 1000 hours per week.
  2. Get a Slack message for any customer that used 20% less week over week.
  3. The account manager receives an email whenever customer usage surpasses the number of prepaid credits in their wallet.
  4. The Head of Finance receives email alerts when 25, 50, 75, and 90 percent of the quarterly revenue target is reached.

You can find the Alerts API reference here.

The easiest way to configure Alerts is via the UI. When configuring an alert in the UI, there are three primary steps.

Step 1 - Select the alert type

Select the alert type from one of the five options provided.



Document image


Step 2 - Name & configure the alert

Some configuration options for the alert will depend on the alert type. For all alert types, you must define the scope. Select whether the alert should be applied to:

  1. All customers (across the customer base as a whole)
  2. Each customer individually
  3. A specific customer

The screenshot below shows the options when the Meter Usage alert type is selected.

Document image


Step 3 - Select the notification frequency and method

The notification frequency determines how often an alert message will be sent once the conditions are met.

The notification method determines how the alert will be delivered once the conditions are met. The default option is email. There is also an option to create a webhook to automate downstream action in a third-party system or integrate it with another messaging tool like Slack.

Document image


When an alert condition is met, the alert can be sent as an email, a webhook, or both. A webhook payload and headers can be customized using context variables. See Alert Webhooks for details.

Sample email:



Document image


Sample webhook for Slack:



Document image