UNPKG

node-red-contrib-chatbot

Version:

REDBot a Chat bot for a full featured chat bot for Telegram, Facebook Messenger and Slack. Almost no coding skills required

46 lines (43 loc) 1.94 kB
<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 <em>Dashbot.io</em> is supported.</p> <p>This is a pass-through node, it will track the message 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> <p><img src="https://img.shields.io/badge/platform-Telegram-blue.svg?colorB=7cbaea" alt="Telegram"> <img src="https://img.shields.io/badge/platform-Facebook-blue.svg" alt="Facebook"> <img src="https://img.shields.io/badge/platform-Slack-green.svg" alt="Slack"> <img src="https://img.shields.io/badge/platform-Smooch-orange.svg" alt="Smooch"></p> </script>