forked from guidone/node-red-contrib-chatbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
chatbot-analytics.html
46 lines (44 loc) · 1.59 KB
/
chatbot-analytics.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
39
40
41
42
43
44
45
46
<script type="text/javascript">
RED.nodes.registerType('chatbot-analytics',{
category: 'RedBot Platforms',
color: '#FFCC66',
defaults: {
platform: {
value: 'dashbot'
},
token: {
value: ''
}
},
inputs: 1,
outputs: 1,
paletteLabel: 'Analytics',
icon: 'chatbot-analytics.png',
label: function() {
return 'Analytics';
}
});
</script>
<script type="text/x-red" data-template-name="chatbot-analytics">
<div class="form-row">
<label for="node-input-platform"><i class="icon-flag"></i> Service</label>
<select id="node-input-platform" placeholder="Analytics platform">
<option value="dashbot">Dashbot.io</option>
</select>
</div>
<div class="form-row">
<label for="node-input-place"><i class="icon-wrench"></i> Token</label>
<input type="text" id="node-input-token" placeholder="Token">
<div style="max-width: 460px;font-size: 12px;color: #999999;line-height: 14px;margin-top:5px;">
Api token for the analytics platform, get a valid API key from the analytics control panel.
</div>
</div>
</script>
<script type="text/x-red" data-help-name="chatbot-analytics">
<p>
Track chatbot activities with external services, currently only Dashbot.io is supported <em>[Telegram, Facebook, Smooch, Slack]</em>.
</p>
<p>
This is a pass-through node, it will track the node in the selected analytics platform and forward the unmodified message to the output. Place the node just after a receiver (for example a <code>Telegram Receiver Node</code>) and just before sender (for example a <code>Telegram Sender Node</code>).
</p>
</script>