JavaScript API

Pass customer context into AI and live support without breaking the workflow.

MyLiveChat includes a flexible JavaScript API that lets you shape widget behavior after the monitor code is installed. Use it to pass profile data, product context, and secure communication details into the AI and chat workflow so both automation and agents have better context.

Customer context

Pass identity and profile links so support teams can move from chat into the right customer record faster.

Product context

Open the right product or account pages directly from the support experience with your own URL patterns.

Secure transport

Protect integration data with encryption settings so context can move into the chat flow more safely.

What teams use this for

Three integration wins that make support smarter.

Show the right customer record

Give agents a direct jump from the conversation into the user profile or account page in your own system.

Carry product or page context

Tie the chat session to a product, plan, or internal object so support has better context when AI needs help.

Keep integrations safer

Use encryption settings and predictable URL formats to avoid loose, fragile integrations that are hard to trust.

Integration playbook

How technical teams usually wire this up.

1. Install the widget: add the monitor code first so the site can load MyLiveChat reliably.
2. Pass stable identifiers: map your user or product keys into the widget so support can open the right destination page later.
3. Secure the handoff: enable encryption when you need stronger protection around context moving into the support workflow.
4. Test with real pages: make sure the agent-side links and AI support flow still feel right when opened from actual customer journeys.
Need code samples? Browse the integration demos and then mirror the same patterns in your implementation.
Settings Demo

Manage integration behavior

Use these fields to define how your site communicates with MyLiveChat and where agents should jump for more customer or product context. This public page is a demo of the integration settings experience.