> ## Documentation Index
> Fetch the complete documentation index at: https://novu-c5de82d9-docs-homepage-redesign.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Zulip Chat Integration with Novu

> Connect Zulip to Novu to send chat notifications through notification workflows. Step-by-step credential setup.

Zulip does not need any API Key or client ID to push messages in it. All it needs is the webhook URL of the channel you want to send messages to. That itself acts as the credential.

Similar to Discord, the credential for this provider needs to be stored in the subscriber entity.

## Getting a Zulip webhook URL

* Sign up or Login to your Zulip account.

* Click on the Settings icon in the top right corner of the screen, and then click "Personal settings" from the drop-down menu.

<img src="https://mintcdn.com/novu-c5de82d9-docs-homepage-redesign/_Er4ZWa6vVDiKb7d/images/channels-and-providers/chat/zulip/step_01.png?fit=max&auto=format&n=_Er4ZWa6vVDiKb7d&q=85&s=de124175011d7be8384b291540aac91e" alt="Zulip settings menu" width="1920" height="1080" data-path="images/channels-and-providers/chat/zulip/step_01.png" />

* Click "Add a new bot" button in "Bots" tab.

<img src="https://mintcdn.com/novu-c5de82d9-docs-homepage-redesign/_Er4ZWa6vVDiKb7d/images/channels-and-providers/chat/zulip/step_02.png?fit=max&auto=format&n=_Er4ZWa6vVDiKb7d&q=85&s=bdc1bd48bda703bd8ef5bc1e03a32701" alt="Add new bot button" width="1920" height="1080" data-path="images/channels-and-providers/chat/zulip/step_02.png" />

* Set bot type as "Incoming webhook".

<img src="https://mintcdn.com/novu-c5de82d9-docs-homepage-redesign/_Er4ZWa6vVDiKb7d/images/channels-and-providers/chat/zulip/step_03.png?fit=max&auto=format&n=_Er4ZWa6vVDiKb7d&q=85&s=c1699621f7de0db3d4db136ce8870668" alt="Set bot type" width="1920" height="1080" data-path="images/channels-and-providers/chat/zulip/step_03.png" />

* Click the small link icon to generate webhook URL for provider. Set Integration as `Slack compatible webhook`, choose your channel and copy webhook URL.

<img src="https://mintcdn.com/novu-c5de82d9-docs-homepage-redesign/_Er4ZWa6vVDiKb7d/images/channels-and-providers/chat/zulip/step_04.png?fit=max&auto=format&n=_Er4ZWa6vVDiKb7d&q=85&s=49d25b6402db6e104ef6a63e0249044f" alt="Generate webhook URL" width="1920" height="1080" data-path="images/channels-and-providers/chat/zulip/step_04.png" />

## Connecting our subscribers to Zulip

The URL generated above will be the target channel of a subscriber that you want to integrate with. To make this connection, you have to:

1. Copy the URL that you generated above

2. Update the subscriber credentials with this URL using the Zulip provider id. You can do this step by using the `@novu/api` library, as shown below:

## Update credential webhookUrl

<Tabs>
  <Tab title="Node.js">
    ```typescript theme={null}
    import { Novu } from '@novu/api';
    import { ChatOrPushProviderEnum } from "@novu/api/models/components";

    const novu = new Novu({
      secretKey: "<NOVU_SECRET_KEY>",
      // Required if using EU region
      // serverURL: "https://eu.api.novu.co",
    });

    await novu.subscribers.credentials.update(
      {
        providerId: ChatOrPushProviderEnum.Zulip,
        credentials: {
          webhookUrl: "<WEBHOOK_URL>",
        },
        integrationIdentifier: "zulip-MnGLxp8uy",
      },
      "subscriberId"
    );

    ```
  </Tab>

  <Tab title="cURL">
    ```bash theme={null}
    curl -L -X PUT 'https://api.novu.co/v1/subscribers/<SUBSCRIBER_ID>/credentials' \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/json' \
    -H 'Authorization: ApiKey <NOVU_SECRET_KEY>' \
    -d '{
      "providerId": "zulip",
      "credentials": {
          "webhookUrl": "<WEBHOOK_URL>"
      },
      "integrationIdentifier": "zulip-MnGLxp8uy"
    }'
    ```
  </Tab>
</Tabs>

* `subscriberId` is a custom identifier used when identifying your users within the Novu platform.
* `providerId` is a unique provider identifier. We recommend using our ChatOrPushProviderEnum to specify the provider.
* The third parameter is the credentials object, in this case, we use the `webhookUrl` property to specify the Zulip channel webhook URL or by calling the `Update Subscriber Credentials` endpoint on Novu API. Check endpoint details [here](/api-reference/subscribers/update-provider-credentials).

3. You are all set up and ready to send your first chat message via our \`@novu/api package or directly using the REST API.
