Live Alerts
Overview
Zipy provides you the ability to send custom alerts to your desired Slack channel to track and take quick actions on the activities being performed by the users on your application. You can now send real time alerts for example: alert on a live user visit on your platform, or user landing on your pricing page, or a sign-up failure for a user. This gives you the control to be alerted whenever you want to be and act and communicate with your users faster and while they are there on the platform.
Function Signature
function sendAlertOnSlack(title, message)
Parameters
title (String): The title of the alert.
message (String): The detailed alert message.
Here’s a basic example to get started:
Special Case Handling
If you want to add quoted text eg a name in the message as shown below, you need to use single quotes.
Note: Backslashing double quotes in the message is not supported. eg. Below will not work as a message.
Below is an example of how the Slack alert will appear when using the sendAlertOnSlack function. The title "Payment Failure Alert", is followed by the message "Payment failed for 'John Doe' User". This is a sample alert to demonstrate how notifications are formatted and displayed in Slack.
Slack Integration Steps:
To get the alert on Slack, integrate slack with Zipy. Select a slack workspace and channel where you want to send an alert. Uncheck all the alerts to get the live Alerts from the above function.
Last updated