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.
Vercel Chat SDK adds message subject functionality and direct SDK access.
Developers can now read parent issues or pull requests through message.subject when bots are mentioned.
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.
You can now read the parent issue or pull request when your bot is mentioned in a Linear or GitHub comment.
`message.subject`
Chat SDK adds message subjects and direct SDK access - Vercel
[](https://vercel.com/home)
- Products
- ##### AI Cloud
- 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
- ##### Core Platform
- 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
- ##### Security
- Bot Management Scalable bot protection
- BotID Invisible CAPTCHA
- Platform Security DDoS Protection, Firewall
- Web Application Firewall Granular, custom protection
- Resources
- ##### Company
- 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
- ##### Learn
- Docs Vercel documentation
- Academy Linear courses to level up
- Knowledge Base Find help quickly
- Community Join the conversation
- ##### Open Source
- 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
- ##### Use Cases
- 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
- ##### Tools
- Marketplace Extend and automate workflows
- Templates Jumpstart app development
- Partner Finder Get help from solution partners
- ##### Users
Ask AI
Ask AI
Chat SDK adds message subjects and direct SDK access

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
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.
// 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.
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.
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
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
Platform Security DDoS Protection, Firewall
Web Application Firewall Granular, custom protection
Resources
Customers Trusted by the best teams
Blog The latest posts and changes
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