Adding Popup Widget in Chatwoot for Lead Generation

TLDR Deleted User inquired about incorporating a popup widget into chatwoot. sojan_official provided JavaScript and chatwoot SDK APIs to create the desired functionality.

Photo of Deleted User
Deleted User
Thu, 07 Apr 2022 06:27:32 UTC

Any possibility of popup widget addition into chatwoot which appears after a few seconds, it's basically better for lead generation & if one only wants customer to be directed to live chat sojan_official

Photo of sojan_official
Thu, 07 Apr 2022 13:11:58 UTC

you will have to write the javascript for conditional logic.but once the condition is satisfied you can use the chatwoot sdk apis to popout the window as a new page / open the widget in same page using the following methods ``` window.$chatwoot.toggle('open'); // To open widget window.$chatwoot.popoutChatWindow(); ``` ref: