Vercel

Chat SDK Adds Scheduled Message Functionality for Slack Integrations


Executive Summary

The Chat SDK has been updated to support scheduled messages, enabling developers to send messages at a specified future time. This new functionality is currently exclusive to the Slack adapter and is accessed via the `thread.schedule()` method. Developers can schedule a message with a specific `postAt` date and also have the ability to cancel it before delivery.

Key Takeaways

* New Feature: Messages can be scheduled for future delivery using the `thread.schedule()` method.

* Cancellation: Scheduled messages can be programmatically cancelled before their designated delivery time.

* Platform Limitation: This feature is currently only available for the Slack adapter; attempting to use it with other adapters will result in a `NotImplementedError`.

* Unsupported Content: Streaming and file uploads are not supported within scheduled messages.

Strategic Importance

This update enhances the Chat SDK's utility for developers building Slack-based applications, enabling common automation use cases like reminders and timed announcements.

Original article