SDK methods
After the SDK loads (via script embed or ES module), a globalwindow.tinytalk object is available for programmatic control.
More methods will be added soon.
toggle()
PostMessage events
The messenger emits events viapostMessage that you can listen to from the parent page. This lets you react to user actions — for example, tracking conversions, triggering analytics, or showing a confirmation.
Listening for events
Available events
Example: track new conversations
Styling and Shadow DOM
The messenger widget renders inside a Shadow DOM. This means:- Your page’s CSS cannot override the messenger’s styles — custom stylesheets, global resets, and CSS frameworks like Tailwind or Bootstrap will not affect the widget.
- The messenger’s styles won’t leak into your page — no risk of conflicts with your existing design.
Live demo
See the SDK in action — script embed, iframe embed, toggle button, and postMessage events — in this interactive CodePen:Tiny Talk Demo
Live example with messenger widget, iframe embed, and event listeners.