Executive Summary
A new feature update for the Chat SDK enables developers to build interactive, stateful workflows within chat interfaces. By adding a `callbackUrl` property to buttons and modals, a workflow can now pause its execution until a user provides input, such as clicking an approval button. This allows for the creation of more complex, asynchronous processes like approval flows directly within chat applications.
Key Takeaways
* New `callbackUrl` Property: The `<Button>` and `<Modal>` components in the Chat SDK now accept a `callbackUrl` prop.
* Pause and Resume Workflows: This feature allows a running workflow to pause and wait for a user to interact with a chat card or modal.
* Interactive Use Cases: It is designed for building multi-step processes such as approvals, status updates, and interactive forms directly in chat.
* Platform Support: The `callbackUrl` for buttons works on most platforms with an official adapter, while modal support is currently available for Slack and Teams.
* Implementation: Developers use a `createWebhook` function to generate the URL that the workflow will listen on for the user's response.
Strategic Importance
This update significantly enhances the Chat SDK's capabilities, moving it from a tool for simple notifications to a platform for building complex, application-like business processes within chat environments.