html head:
<script src="https://de-demo-chatbot.zoral.net/static/js/zoral-chatbot.v2.js"></script>
html body (inside "script" tag):
zoralChatbot.init({
api_path: "/api/v2/chat/cl",
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: 500,
app_amount_max: 5000,
app_duration_max: 270,
app_journey_url: "https://de-journey-demo.host/?workflow=WorkflowName&workflowParams=",
app_journey_url_existing: "https://de-journey-demo.host/?workflow=WorkflowName&workflowParams="
});
on some action (button onclick for instance):
zoralChatbot.clear();
zoralChatbot.sayAsUser("hi", true);
zoralChatbot.show();