Menu

Chat SDK adds Novu support - Vercel
📰

Chat SDK adds Novu support - Vercel

Vercel News·Ben Sabic·5 days ago
#L4ypDut3
#vercel#chat#novu#agent#adapter
Reading 0:00
15s threshold

Chat SDK now supports Novu with the new vendor-official adapter .

One handler set puts your agent on Slack, Microsoft Teams, WhatsApp, Telegram, and email. Novu handles credentials, identity, and delivery, keeping OAuth and tokens outside your app and mapping each channel to one user. Your agent always knows who they're talking to.

Your agent can also send proactive notifications and handle the replies in the same loop, on whichever channel the customer used.

import { Chat } from "chat" ;

import { createMemoryState } from "@chat-adapter/state-memory" ;

import { createNovuAdapter } from "@novu/chat-sdk-adapter" ;

const novu = createNovuAdapter ( ) ;

const chat = new Chat ( {

userName : "support" ,

adapters : { novu } ,

state : createMemoryState ( ) ,

} ) ;

chat . onNewMention ( async ( thread , message ) => {

await thread . post ( ` Hi! You said: ${ message . text } ` ) ;

} ) ;

chat . onSubscribedMessage ( async ( thread , message ) => {

await thread . post ( ` echo: ${ message .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.