enable conversations chat for some users only via widget
ART-15504_KNOWLEDGE_NODE-4
[identify your customers](/sdks/web/user-identity) and update their information.\n\n##### \n\nOnce 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`.\n\n```\n|  |\n| --- |\n| <script> |\n| window.plugSDK.init({ |\n| app_id: \'<your_unique_app_id>\', |\n| disable_plug_chat_window: true, |\n| }); |\n| </script> |\n```\n\nTo ensure
Install the Web SDK | DevRev | Docs
ART-2893_KNOWLEDGE_NODE-4
update their information.\n\n#####\n\nOnce 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`.\n\n[code]\n\n    <script>  \n    ---  \n        window.plugSDK.init({  \n            app_id: \'<your_unique_app_id>\',  \n            disable_plug_chat_window: true,  \n        });  \n    </script>\n[/code]  \n  \nTo ensure seamless
Install the Web SDK — DevRev | Docs
ART-2894_KNOWLEDGE_NODE-4
2|     window.plugSDK.init({  \n    3|         app_id: \'<your_unique_app_id>\',  \n    4|         disable_plug_chat_window: true,  \n    5|     });  \n    6|   \n    7|     window.plugSDK.onEvent((payload) => {  \n    8|     if (payload.type === \'ON_PLUG_WIDGET_READY\') {  \n    9|         window.plugSDK.initSearchAgent();  \n    10|     }  \n    11|     });  \n    12| </script>\n[/code]  \n  \nTo toggle `searchAgent`, call the following method on any event required:\n\n[code]\n\n
Install PLuG search — DevRev | Docs
ART-15509_KNOWLEDGE_NODE-4
5 | }, []); |\n```\n\nThe `init()` method can accept multiple inputs, which are explained below:\n\n| Input parameter | Description | Values |\n| --- | --- | --- |\n| `app_id` | The unique identifier for your Plug SDK. This parameter is required. | String |\n| `disable_plug_chat_window` | The chat widget is enabled by default. Use this option if you want to disable the chat widget. | Boolean (True or False) |\n| `enable_default_launcher` | Show/hide the default Plug widget launcher. | Boolean
Methods | DevRev | Docs
ART-2897_KNOWLEDGE_NODE-5
window.plugSDK.init({  \n    3|       app_id: <your_unique_app_id>,  \n    4|     });  \n    5|   }, []);\n[/code]  \n  \nThe `init()` method can accept multiple inputs, which are explained below:\n\nInput parameter| Description| Values  \n---|---|---  \n`app_id`| The unique identifier for your PLuG SDK. This parameter is required.| String  \n`disable_plug_chat_window`| The chat widget is enabled by default. Use this option if you want to disable the chat widget.| Boolean (True or False)
Methods — DevRev | Docs
ART-1466_KNOWLEDGE_NODE-20
plugSDK. toggleTheme ( \' light | dark \' ) ;\n\nCalling toggleTheme() switches between the current themes. Specifying a theme as a parameter allows you to toggle directly to that specific theme.\n\nThe theme specified in this method takes precedence over the theme configured in the PLuG settings in your DevRev app.\n\nToggle widget.\n\nThe toggleWidget method allows you to control the visibility of the PLuG chat widget.\n\nPassing true opens the chat widget.\n\nPassing false closes the chat
Methods — DevRev | Docs
ART-15509_KNOWLEDGE_NODE-10
`dark`.\n\n```\n|  |  |\n| --- | --- |\n| 1 | window.plugSDK.toggleTheme(\'light | dark\'); |\n```\n\nCalling `toggleTheme()` switches between the current themes. Specifying a theme as a parameter allows you to toggle directly to that specific theme.\n\n##### \n\nThe theme specified in this method takes precedence over the theme configured in the Plug settings in your DevRev app.\n\nToggle widget\n-------------\n\nThe `toggleWidget` method allows you to control the visibility of the Plug chat
Methods | DevRev | Docs
ART-2897_KNOWLEDGE_NODE-18
search agent on your website. This initialization is required before performing any other actions with the PLuG widget SDK.\n\n[code]\n\n    1| useEffect(() => {  \n    ---|---  \n    2|   window.plugSDK.init({  \n    3|     app_id: \'<your_unique_app_id>\',  \n    4|     disable_plug_chat_window: true,  \n    5| });  \n    6|   \n    7|   window.plugSDK.onEvent((payload) => {  \n    8|     if (payload.type === \'ON_PLUG_WIDGET_READY\') {  \n    9|       window.plugSDK.initSearchAgent();  \n
Methods — DevRev | Docs