T
traeai
Sign in
返回首页
Vercel News

Chat SDK adds message subjects and direct SDK access

6.5Score
Chat SDK adds message subjects and direct SDK access

TL;DR · AI Summary

Vercel Chat SDK adds message subject functionality and direct SDK access, allowing developers to read parent issues or pull requests when bots are mentioned in Linear or GitHub comments, improving integration experience.

Key Takeaways

  • Chat SDK now supports message.subject property to read parent issues or PRs
  • New direct SDK access feature improves developer experience
  • Applies to robot integration scenarios in Linear and GitHub comments

Outline

Jump quickly between sections.

  1. §Chat SDK Feature Update

    Vercel Chat SDK adds message subject functionality and direct SDK access.

  2. Developers can now read parent issues or pull requests through message.subject when bots are mentioned.

  3. This feature supports robot integration in Linear and GitHub comment scenarios.

Mindmap

See how the topics connect at a glance.

查看大纲文本(无障碍 / 无 JS 友好)
  • Vercel Chat SDK更新
    • 消息主题功能
      • message.subject属性
    • 平台集成
      • Linear支持
      • GitHub支持

Highlights

Key sentences worth saving and sharing.

#Vercel#Chat SDK#AI#GitHub#Linear
Open original article

Chat SDK adds message subjects and direct SDK access - Vercel

Skip to content

[](https://vercel.com/home)

  • Products
  • ##### Core Platform
  • Resources
  • ##### Company
  • ##### Learn
  • ##### Open Source
  • Solutions
  • ##### Use Cases
  • ##### Tools
  • ##### Users

Ask AI

Ask AI

Log In

Sign UpSign Up

Dashboard

Image 1

Blog/Changelog

Chat SDK adds message subjects and direct SDK access

![Image 2 Ben Sabic Content Engineer](https://twitter.com/bensabic)![Image 3 Josh Singh Software Engineer](https://twitter.com/nishimiya)

1 min read

Copy URL

May 20, 2026

You can now read the parent issue or pull request when your bot is mentioned in a Linear or GitHub comment. message.subject resolves to that parent with title, status, URL, and the full typed payload.

lib/bot.ts

code
bot.onNewMention(async (thread, message) => {  const subject = await message.subject;
  if (subject) {    await thread.post(      `This is about: ${subject.title} (${subject.status})\n${subject.url}`    );  }});

Reply to a mention with the parent issue's title, status, and URL

message.subject is cached per message, so repeated access only hits the API once. It resolves to null on Slack and other chat platforms, where there's no parent resource.

[Link to heading](https://vercel.com/changelog/chat-sdk-adds-message-subjects-and-direct-sdk-access#direct-access-to-platform-sdks)Direct access to platform SDKs

The GitHub, Linear, and Slack adapters now expose their underlying platform SDKs. Use them to extend your bot by calling provider APIs directly.

code
// Add a "triaged" label to issue #42const { octokit } = bot.getAdapter("github");await octokit.rest.issues.addLabels({ owner: "vercel", repo: "chat", issue_number: 42, labels: ["triaged"] });
// Create a new issue in a teamconst { linearClient } = bot.getAdapter("linear");await linearClient.createIssue({ teamId: "TEAM_ID", title: "Investigate flaky test" });
// Pin a message in a channelconst { webClient } = bot.getAdapter("slack");await webClient.pins.add({ channel: "C123ABC", timestamp: "1234567890.123456" });

Add a GitHub label, create a Linear issue, or pin a Slack message

The previous .client getter remains as a @deprecated alias on the adapters.

Read the documentation to get started, or explore one of our templates.

**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

Ready to deploy?Start building with a free account. Speak to an expert for your _Pro_ or Enterprise needs.

Start DeployingTalk to an Expert

Explore Vercel Enterprise with an interactive product tour, trial, or a personalized demo.

Explore Enterprise

Get Started

Build

Scale

Secure

Resources

Learn

Frameworks

SDKs

Use Cases

Company

Community

[](https://vercel.com/home)

Loading status…Select a display theme:system light dark

Products

AI Gateway One endpoint, all your models

Sandbox Isolated, safe code execution

Vercel Agent An agent that knows your stack

AI SDK The AI Toolkit for TypeScript

v0 Build applications with AI

CI/CD Helping teams ship 6× faster

Content Delivery Fast, scalable, and reliable

Fluid Compute Servers, in serverless form

Workflow Long-running workflows at scale

Observability Trace every step

Bot Management Scalable bot protection

BotID Invisible CAPTCHA

Platform Security DDoS Protection, Firewall

Web Application Firewall Granular, custom protection

Resources

Customers Trusted by the best teams

Blog The latest posts and changes

Changelog See what shipped

Press Read the latest news

Events Join us at an event

Docs Vercel documentation

Academy Linear courses to level up

Knowledge Base Find help quickly

Community Join the conversation

Next.js The native Next.js platform

Nuxt The progressive web framework

Svelte The web’s efficient UI framework

Turborepo Speed with Enterprise scale

Solutions

AI Apps Deploy at the speed of AI

Composable Commerce Power storefronts that convert

Marketing Sites Launch campaigns fast

Multi-tenant Platforms Scale apps with one codebase

Web Apps Ship features, not infrastructure

Marketplace Extend and automate workflows

Templates Jumpstart app development

Partner Finder Get help from solution partners

Platform Engineers Automate away repetition

Design Engineers Deploy for every idea

AI may generate inaccurate information. Please verify important content.