html head:
<script src="https://de-demo-chatbot.zoral.net/static/js/zoral-chatbot.v2.js"></script>
html body (inside "script" tag):
zoralChatbot.init({
language: "en", // supported languages: en, es, de, fr, pt, uk
audio: false, // supported languages: en, es, de, fr, pt
app_amount_currency: "USD",
app_amount_min: 100,
app_amount_max: 100000,
app_duration_max: 270,
app_journey_url: "...",
app_products_url: "..."
});
on some action (button onclick for instance):
zoralChatbot.clear();
zoralChatbot.sayAsUser("hi", true);
zoralChatbot.show();