Where do I find my Live Chat Code Snippet?

Where Do I Find My Live Chat Code Snippet?

Your Social Intents code snippet connects your website to your live chat widget or AI chatbot.

To find it, sign in to your dashboard, open Chat Widgets, click the three-dot menu on the widget you want to install, and select Get code.

Each widget has its own code snippet. If you manage multiple websites or widgets, make sure you copy the code for the correct one.

Find Your Code Snippet in the Social Intents Dashboard

  1. Sign in to Social Intents.
  2. Open Chat Widgets.
  3. Find the widget you want to add to your website.
  4. Click the three-dot menu in the upper-right corner of the widget card.
  5. Select Get code.

The installation window contains the code and installation options for that widget.

Which Installation Option Should I Use?

Choose the option that matches how you want visitors to access your chat.

Option When to use it
Standard code snippet Add the chat widget to your website using the single-line installation code.
Advanced code snippet Initialize supported parameters as part of your installation.
Embedded iframe Display chat inside a specific area of a page instead of using a floating widget.
Standalone chat link Open the chat on its own page through a direct link.
WordPress plugin key Connect your widget through the Social Intents WordPress plugin.

For a typical website installation, use the standard code snippet.

Copy the code provided for your widget rather than using code from a screenshot or another widget.

Add the Code Snippet to Your Website

Paste the standard snippet into your website’s HTML, preferably just before the closing </body> tag.

To display chat across your website, add it to a shared template or your website platform’s site-wide custom code area. To display it only on selected pages, install it on those pages.

If someone else manages your website, send them the code snippet and tell them where you want chat to appear.

After saving and publishing your changes:

  1. Open your website in a new browser window.
  2. Check that the chat widget appears.
  3. Send a test message.
  4. Confirm that your AI chatbot or team can respond.

Install the same widget only once per page. For example, if the WordPress plugin already loads your widget, you do not need to add the same snippet separately to your theme.

Find Your Code Snippet in Microsoft Teams

If you use the Social Intents Microsoft Teams integration, you can also access your installation code from the app’s settings in Teams.

  1. Open the Social Intents Live Chat app in Microsoft Teams.
  2. Open its Live Chat Settings.
  3. Select Install Code Snippet.
  4. Copy the code for the widget you want to install.

If the app is not visible in your Teams navigation, use the app search to find and open the Social Intents app.

[Screenshot: Social Intents in Microsoft Teams with Live Chat Settings visible.]

[Screenshot: Install Code Snippet screen inside Microsoft Teams.]

Each widget has its own installation code, so check that you have selected the correct widget before copying it.

You can also retrieve the code through the Social Intents web dashboard, even if your team answers chats in Microsoft Teams.

Find Your WordPress Plugin Key

If you use WordPress, you can install your widget with the Social Intents Live Chat plugin.

The key used to connect the plugin is available alongside your widget’s installation code.

  1. Sign in to Social Intents and open Chat Widgets.
  2. Open the widget’s three-dot menu and select Get code.
  3. Locate and copy the key provided for the WordPress installation.
  4. Open the Social Intents plugin settings in WordPress.
  5. Paste the key into the plugin’s key field and save.

Use the Social Intents widget key shown in the installation window. This is not an OpenAI or other AI-provider API key.

Visit your website and send a test message to confirm the plugin is connected to the correct widget.

Frequently Asked Questions

Do I need different code for live chat and an AI chatbot?

You use the installation code for your widget. Whether AI, your team, or both answer the conversation depends on that widget’s settings.

Can I get my code without opening Microsoft Teams?

Yes. Sign in to the Social Intents dashboard, open Chat Widgets, and select Get code from your widget’s three-dot menu.

Which snippet should I use if I have multiple widgets?

Use the snippet belonging to the widget you want visitors to interact with. Check the widget’s name and settings before copying the code.

Why isn’t my chat widget appearing?

Start by checking that:

  • You installed the code for the correct widget.
  • Your website changes have been saved and published.
  • The widget is enabled for your site.
  • Its availability and visibility settings allow it to appear.
  • You have refreshed the page and cleared any relevant website cache.

For availability settings, see Live Chat Online and Offline Availability.

What should I do after installing the snippet?

Test a complete conversation from your website. Confirm that messages reach the correct inbox or collaboration tool and that replies appear in the visitor’s chat.

For the remaining setup steps, follow the Live Chat Getting Started Guide.