Developer integrations
Install the web SDK, identify customers, send product events, receive webhooks, and integrate with Bettercom APIs.
16 articles
- Developer quickstart for a website integrationGo from a workspace slug to a working widget, a recorded event, and a verified customer session.›
- Install the Bettercom chat widget on your websiteCopy your workspace’s embed snippet and verify a customer can reach your Inbox from the live site.›
- Load the widget asynchronously and queue early SDK callsAdd the embed script once and preserve calls made before the widget finishes loading.›
- Track product events from the browserSend an event when a visitor completes an action, even before they open Messenger.›
- Send a customer event from your backendPost a confirmed business event with a stable customer ID and timestamp and safely retry delivery.›
- Identify a signed-in customer for browser eventsExchange your backend event key for a short-lived customer token, then boot event tracking in the browser.›
- Connect signed-in users to MessengerIssue a Messenger identity from your backend, boot the widget, and clear the session when the user signs out.›
- Update Messenger on route changes in a single-page appReevaluate website workflows, attribution, and launcher visibility after client-side navigation.›
- Open Messenger or a Help article from your own buttonConnect a website’s Contact support or Help button to the installed Bettercom widget.›
- Troubleshoot missing or rejected eventsDiagnose invalid payloads, expired identity tokens, missing contacts, and ambiguous email addresses.›
- Subscribe to contact-created webhooksReceive a signed notification on your backend when a contact is created in your workspace.›
- Verify webhook signatures and handle duplicate deliveriesAuthenticate the raw request body on your receiver and use the event ID to make retries safe.›
- Read articles and collections through the Articles APIList public article records, inspect published translations, and discover placement IDs.›
- Create and publish an article with the Articles APISave a draft, place it in a collection, and publish changes using its revision.›
- Connect an authenticated JSON lookup to BettercomMap a response from your service into named scalar fields and test it in the workspace.›
- Capture UTM attribution from a storefront visitAssociate campaign parameters with the contact who starts chat or signs in on your website.›