# Push Notifications

### Installation

To get started with web push notifications, follow these steps:

1. Download the [CrowdPower Service Worker](https://app.crowdpower.io/service-worker.js).
2. Install the service worker in the root of your website; typically the /public directory.
3. Install the [CrowdPower JavaScript Tag](/getting-started/javascript-tag.md).
4. Execute the **push** command to request for permission to send push notifications. This only needs to be called once per customer. For example, upon sign up.

### Usage

To send a push notification to a customer, simply add the Push Notification action to an automation. If the customer has granted access to send them push notifications, they will receive it. Push notifications may have a **title**, **body**, and **URL**, and may include dynamic information about the customer, using variables.


---

# Agent Instructions: 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:

```
GET https://docs.crowdpower.io/resources/push-notifications.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
