# Nostr

### Prerequesites

Include our relay by connecting to `wss://nostr-01.bolt.observer` on your nostr client. Here is an example taken from an iris.to:

<figure><img src="https://1042602664-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmGGbJoPTvKkAmLqqpdCK%2Fuploads%2Flz0iyiSsJUXPDfM0VDwl%2Fnostr1.png?alt=media&#x26;token=a6daed7a-92c3-439e-9c2b-37d556bc2439" alt=""><figcaption><p>nostr setup: Add a relay</p></figcaption></figure>

In Settings > Network, add bolt.observer relay and click **Add**. Don't forget to click on **Save relays publicly** button.

<figure><img src="https://1042602664-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmGGbJoPTvKkAmLqqpdCK%2Fuploads%2FkuOxXu8tnnlskxgyIRIa%2Fnostr2.png?alt=media&#x26;token=154c0912-537b-4faf-8e46-4159a062e566" alt=""><figcaption><p>nostr setup: add a relay</p></figcaption></figure>

Lastly, make sure to follow the *bolt.observer alerts* account with the `npub1qqqqqur6gc4nmtjke9gpncntwuf32xkrwud8wq5gwjp07n6qkhasv5qkpv` pubkey.

<figure><img src="https://1042602664-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmGGbJoPTvKkAmLqqpdCK%2Fuploads%2F6XeVsR4BThr4rRzwIjVt%2FFollow%20account.png?alt=media&#x26;token=14328dad-d5bd-4838-908a-e44ec4700970" alt=""><figcaption><p>nostr setup: follow account</p></figcaption></figure>

### Setup

There are two ways to create nostr notifications on bolt.observer. The first option is during the [workflow creation](#workflow-with-notification-on-nostr). Alternatively, you can also create notifications on the [Notification page](#notification-page).&#x20;

#### Option 1: Workflow with notification on nostr

When creating a workflow on bolt.observer, enter your nostr public key in npub format in the designated "Nostr Pubkey (npub)" field as shown below:

<figure><img src="https://1042602664-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmGGbJoPTvKkAmLqqpdCK%2Fuploads%2FTmDB9OC9lfxDfZkxEpkA%2Fnostr.png?alt=media&#x26;token=faa0badc-a944-489d-9ee9-b7b685700580" alt=""><figcaption><p>Nostr integration</p></figcaption></figure>

Don't forget to click on **Save Workflow.**&#x20;

#### Option 2: Notification page

In the notification page, click on **Add notification**

<figure><img src="https://1042602664-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmGGbJoPTvKkAmLqqpdCK%2Fuploads%2F4ulgy53ymfRaBVcaqlmI%2FNewIntegration%20Nostr.png?alt=media&#x26;token=ff2beed6-f94f-4282-b662-e7d12f313886" alt=""><figcaption><p>Nostr notification setup</p></figcaption></figure>

Select nostr as a notification type as illustrated below:&#x20;

<figure><img src="https://1042602664-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmGGbJoPTvKkAmLqqpdCK%2Fuploads%2FiroIbX7nKIRKlYgixTyO%2FNewIntegration%20Nostr2.png?alt=media&#x26;token=ee8f4d7d-92e4-456e-88a1-a64d7a84f182" alt=""><figcaption><p>Nostr notification setup</p></figcaption></figure>

Enter your account's pubkey and click on **Save**.

<figure><img src="https://1042602664-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmGGbJoPTvKkAmLqqpdCK%2Fuploads%2FwL8Wu4sD6cm7YhcUY2TF%2FNewIntegration%20Nostr3.png?alt=media&#x26;token=242113e2-4284-47f5-96db-b7387c0defcb" alt=""><figcaption></figcaption></figure>

### Test

To perform a test on your recently created nostr notification, navigate to the Notifications page and click on the Test button associated with your notification.

<figure><img src="https://1042602664-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmGGbJoPTvKkAmLqqpdCK%2Fuploads%2Fgcldxxue7Hk89LXk4R1m%2Ftest.png?alt=media&#x26;token=20376b6b-ccb8-4245-8d3b-35e0bb917074" alt=""><figcaption></figcaption></figure>

You will receive an alert test notification in your nostr DMs.

<figure><img src="https://1042602664-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmGGbJoPTvKkAmLqqpdCK%2Fuploads%2FpFBGzqDr2OaNxgTxsQLV%2Fimage.png?alt=media&#x26;token=50ccf023-ff0a-4e3a-a431-a7658b8095f8" alt=""><figcaption></figcaption></figure>

```
```
