-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
38 lines (36 loc) · 1.13 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<div>
<script src="https://hml-bp-embedded-chatbot.lappis.rocks/assets/modules/channel-web/inject.js"></script>
<script>
window.botpressWebChat.init({
host: "https://hml-bp-embedded-chatbot.lappis.rocks",
botId: "chatbot_botao_v2_18_06",
extraStylesheet: "https://hml-bp-embedded-chatbot.lappis.rocks/assets/modules/channel-web/style.css",
showPoweredBy: false,
enableTranscriptDownload: false,
enableConversationDeletion: false,
enableReset: false,
showConversationsButton: false,
enablePersistHistory: false})
window.addEventListener('message', function(event) {
if (event.data.name === 'webchatReady') {
window.botpressWebChat.sendEvent({
type: 'proactive-trigger',
channel: 'web',
payload: { text: 'oi' }
})
}
})
</script>
<script>
</script>
</div>
</body>
</html>