Chat SDK adds Linq support
Mirrored from Vercel — AI for archival readability. Support the source by reading on the original site.
Chat SDK now supports Linq with the new vendor-official adapter.
Build bots that send and receive texts in both direct messages and group chats, with bidirectional media and native iMessage tapback reaction support. Replies use the standard Chat SDK thread and message APIs, with HMAC-verified webhooks and stable threading.
import { Chat } from "chat";import { createMemoryState } from "@chat-adapter/state-memory";import { createLinqAdapter } from "@linqapp/chat-sdk-adapter";
export const bot = new Chat({ userName: "Linq Bot", adapters: { linq: createLinqAdapter({ apiKey: process.env.LINQ_API_KEY, signingSecret: process.env.LINQ_WEBHOOK_SECRET, }), }, state: createMemoryState(),});
bot.onDirectMessage(async (thread, message) => { await thread.subscribe(); await thread.post(`You said: ${message.text}`);});
bot.onReaction(["thumbs_up"], async (event) => { await event.thread.post("Appreciate the tapback 🫡");});Configure the adapter to respond to @-mentions and iMessage tapbacks
The adapter maps each Linq chat to a Chat SDK thread, each text to a message, and each iMessage tapback to a reaction, so subscriptions, handlers, posts, and reactions work the same as with any other Chat SDK adapter.
Read the Linq documentation to get started.
The Complete Guide to Chat SDK
Learn how Chat SDK works end-to-end: from core concepts to building your first bot to deploying it across Slack, Teams, and more.
Read the guide
Discussion (0)
Sign in to join the discussion. Free account, 30 seconds — email code or GitHub.
Sign in →No comments yet. Sign in and be the first to say something.