N
Novu2mo ago
Son Tzu

Google Chat Integration Test from UI

Hi. I am trying to send message to a google chat channel from Novu to test it. But I couldn't figure it out. How can i do that from UI? I have a google chat webhook already.
6 Replies
Pawan Jain
Pawan Jain2mo ago
Hi Son

I am Pawan from Novu

Did you get chance to checkout chat webhook provider
Son Tzu
Son TzuOP2mo ago
Yes i have tried that but i couldn't connect given webhook url as it doesnt have a field for it.
Pawan Jain
Pawan Jain2mo ago
import { Novu } from '@novu/api';
import { ChatOrPushProviderEnum } from "@novu/api/models/components";

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

await novu.subscribers.credentials.update(
{
providerId: ChatOrPushProviderEnum.ChatWebhook,
credentials: {
webhookUrl: "<WEBHOOK_URL>",
},
integrationIdentifier: "chat-webhook-123",
},
"subscriberId"
);
import { Novu } from '@novu/api';
import { ChatOrPushProviderEnum } from "@novu/api/models/components";

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

await novu.subscribers.credentials.update(
{
providerId: ChatOrPushProviderEnum.ChatWebhook,
credentials: {
webhookUrl: "<WEBHOOK_URL>",
},
integrationIdentifier: "chat-webhook-123",
},
"subscriberId"
);
@Son Tzu , you will need to add webhook url for each subscriber as shown above
Son Tzu
Son TzuOP2mo ago
Can i test it in ui?
Pawan Jain
Pawan Jain2mo ago
or above sdk method

Did you find this page helpful?