Live web Chatwoot¶
If you want to offer a communication channel for users. We propose this simple and powerful solution.
Chatwoot is live chat software. It’s open source and has a great community. You can access the code here.
You need a Chatwoot server, you have differents options. If you are interested in self-hosted follow this guide.
Here you will not find a chatwoot manual, only a few steps to embed your widget code.
Once you have the widget you have to paste it in a js file, and add a config to Ravada.
Define widget in rvd_front.conf¶
In /etc/rvd_front.conf
configure the path to widget code. For example, `chatwoot_widget.js`
,widget => '/js/custom/chatwoot_widget.js'
Copy your code in the file: /usr/share/ravada/public/js/custom/chatwoot_widget.js
.
Do not copy the <script> tags, only the javascript code.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | (function(d,t) { var BASE_URL = "https://chatwoot_server"; var g=d.createElement(t),s=d.getElementsByTagName(t)[0]; g.src= BASE_URL + "/packs/js/sdk.js"; s.parentNode.insertBefore(g,s); g.onload=function(){ window.chatwootSettings = { locale: 'ca', type: 'expanded_bubble', launcherTitle: 'Some message', showPopoutButton: true } window.chatwootSDK.run({ websiteToken: 'xxxxxxxxx4Yh7RkXPtt1', baseUrl: BASE_URL }) } })(document,"script"); |


And restart rvd_front service:
systemctl restart rvd_front