> For the complete documentation index, see [llms.txt](https://docs.zipy.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.zipy.ai/product-features/alerts/live-alerts.md).

# 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:**

```javascript
const title = "Payment Failure Alert";
const message = "Payment failed for John Doe User"; 
zipy.sendAlertOnSlack(title, message);
```

**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.

```javascript
const title = "Payment Failure Alert";
const message = "Payment failed for 'John Doe' User";
zipy.sendAlertOnSlack(title, message);
```

**Note**: Backslashing double quotes in the message is not supported. eg. Below will not work as a message.

```javascript
const title = "Payment Failure Alert";
const message = "Payment failed for \"John Doe\" User";
zipy.sendAlertOnSlack(title, 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.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfolrZsTTagPGEdK52jdLrOl_4szifAy4Bjmfwa8ef6bijPSjvNZNTx9qIUFy5M8QZ4ovN0hSNmNMERdTo_eJLc8YYgGnbvdMHjsL5gXorN6rOdETgpznU0CTGHNu_8oi9loUnlhW6fSduytRwPGNp4pi5H?key=fE_JW6XeGG87SOh_REmRDw" alt=""><figcaption></figcaption></figure>

### Slack Integration Steps:&#x20;

\
To get the alert on Slack, [integrate slack with Zipy](/product-features/alerts/slack-alerts.md).\
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.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.zipy.ai/product-features/alerts/live-alerts.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
