Truste Chatbot Demo
Test with different tenants and URLs • Style Dashboard
Configuration
Integration Code
Basic integration (defaults to production):
<script src="/widget/truste-chatbot.min.js" data-auto-init="true" data-tenant-id="YOUR_TENANT_ID" data-environment="prod"> </script>
For test environment:
<script src="/widget/truste-chatbot.min.js" data-auto-init="true" data-tenant-id="YOUR_TENANT_ID" data-environment="test"> </script>
Note: The data-environment attribute determines which API endpoint to use. Options: prod (default), test, or development
GTM Script (Advanced)
For Google Tag Manager with SPA navigation support:
(https://chatbot-ui-env-test-truste.vercel.app/widget/truste-chatbot.min.js)
<script>
if (!window.TrusteChatbot || !window.TrusteChatbot.isInitialized()) {
var s = document.createElement('script');
s.src = "https://chatbot-ui-env-test-truste.vercel.app/widget/truste-chatbot.min.js";
s.setAttribute('data-auto-init', 'true');
s.setAttribute('data-tenant-id', 'YOUR_TENANT_ID');
s.setAttribute('data-environment', 'test');
document.head.appendChild(s);
}
</script>Tip: The environment toggle above changes the data-environment attribute value in the GTM script.
Powered by Truste AI
[DEV LOG]
0 entries
--- No entries yet ---
Send a message to capture metadata