megachangelog
Feature

Chat SDK now supports callback URLs on buttons and modals

Chat SDK cards can now pause runs and resume them when users click buttons or submit forms by using a new callbackUrl prop that sends event payloads to your webhook endpoint. This callback flow works for buttons on most platforms and for modals on Slack and Teams.

You can now pause a run on a Chat SDK card and resume it when someone clicks a button. The same flow works for form submissions. Buttons and modals accept a new prop, and the event payload is sent to that endpoint.WorkflowcallbackUrl

To build a card like this, create a and pass its URL to each button's prop inside your component:workflow webhookcallbackUrl<Card>

For the component, the form data is in the payload. works for buttons on most platforms with an , and for modals on Slack and Teams.<Modal>callbackUrlofficial adapter

Read the or to start building.documentationwalkthrough guide

Read more

chat-sdkwebhooksbuttonsmodalsapi

Source: original entry ↗