Menu

Use any Chat SDK adapter with eve - Vercel
📰

Use any Chat SDK adapter with eve - Vercel

Vercel News·Josh Singh·5 days ago
#z5gh1FTr
#vercel#chat#agent#resend#thread
Reading 0:00
15s threshold

eve now supports Chat SDK adapters with the new Chat SDK channel .

One channel connects your eve agent to Facebook Messenger, WhatsApp, Resend, Liveblocks, and any other surface with an adapter . You write normal Chat SDK handler code, and calling send inside a handler hands the message to your agent.

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

import { createResendAdapter } from "@resend/chat-sdk-adapter" ;

import type { Message , Thread } from "chat" ;

import { chatSdkChannel } from "eve/channels/chat-sdk" ;

export const { bot , channel , send } = chatSdkChannel ( {

userName : "Resend Agent" ,

adapters : {

resend : createResendAdapter ( {

fromAddress : "[email protected]" ,

fromName : "Resend Agent" ,

} ) ,

} ,

state : createMemoryState ( ) ,

streaming : false ,

} ) ;

bot . onNewMention ( async ( thread : Thread , message : Message ) => {

await thread . subscribe ( ) ;

await send ( message .…

Continue reading — create a free account

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