Practical recipes for opening the widget, sending messages, and attaching metadata.
These recipes cover the most common Client API integrations. They all assume the embed script is installed — see the overview and configuration.
Wait until the API is ready
The embed dispatches browser events when it is ready. Prefer listening for these instead of polling.If your code might run before or after the embed is ready, check once and then listen: