Install the Web SDK

To install the PLuG SDK on your website or web application, insert the code snippet provided below on every page where you want the SDK to be active. Once the SDK is installed, the chat widget appears by default.

Getting your unique app ID

You can access your app ID from your DevRev account by following these steps:

  1. In DevRev, go to Settings > Support > PLuG Settings via the settings icon in the top-left corner.

  2. If the PLuG feature is not already enabled, click Enable PLuG.

  3. Under the Configuration tab, copy the Unique App ID.

Place the following code in the <head> section of your HTML page:

1<script
2 type="text/javascript"
3 src="https://plug-platform.devrev.ai/static/plug.js"
4></script>

Place the following code in the <body> section of your HTML page:

1<script>
2 window.plugSDK.init({
3 // Please ensure you replace the app_id with your unique app id
4 app_id: "<your_unique_app_id>",
5 });
6</script>

The PLuG widget should now be installed on your website. If you experience any issues, you can reach out to us using our PLuG chat widget in the bottom right corner of your screen.

After the widget is installed on your website, every visitor is considered an anonymous user. Anonymous users are those who have not yet logged in or shared any personal information.

After integrating the PLuG widget, you can personalize and contextualize customer engagement. Learn how to identify your customers and update their information.

Once the SDK is installed, the chat widget appears by default. If you are not using the PLuG SDK for support or chat-related flows, you can disable the chat widget by setting the disable_plug_chat_window input to true.

<script>
window.plugSDK.init({
app_id: '<your_unique_app_id>',
disable_plug_chat_window: true,
});
</script>