Vercel

Chat SDK Update Adds Context-Aware Mentions and Direct API Access


Executive Summary

An update to the Chat SDK provides developers with two significant new capabilities for building more powerful bots. Bots can now retrieve the context of the parent issue or pull request when mentioned in a GitHub or Linear comment. Furthermore, the update grants direct access to the underlying platform SDKs for GitHub, Linear, and Slack, allowing developers to call any provider-specific API directly from their bot.

Key Takeaways

* Context-Aware Mentions: When a bot is mentioned in a comment on GitHub or Linear, it can now access the parent issue's data (title, status, URL) via the `message.subject` property.

* Direct SDK Access: Developers can now get direct, unabstracted access to the native SDKs of integrated platforms, including GitHub's `octokit`, Linear's `linearClient`, and Slack's `webClient`.

* Expanded Bot Capabilities: This direct access enables bots to perform a wider range of platform-specific actions, such as adding labels to a GitHub issue, creating a new Linear issue, or pinning a message in Slack.

* Platform Specificity: The contextual mention feature is designed for platforms with parent resources like GitHub and Linear and is not applicable to standard chat platforms like Slack.

Strategic Importance

This update empowers developers to build more sophisticated and deeply integrated bots, moving beyond generic chat functions to create powerful, workflow-specific automations on each platform.

Original article