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
34 lines (27 loc) • 1.03 kB
HTML
<script type="text/javascript">
RED.nodes.registerType('mc-user-payload', {
category: 'Mission Control',
color: '#6699CC',
defaults: {
name: {
value: ''
}
},
inputs: 1,
outputs: 1,
paletteLabel: 'MC User Payload',
icon: 'chatbot-command.png',
label: function() {
return 'MC User Payload' + (this.name !== null && this.name !== '' ? ' (' + this.name + ')' : '');
}
});
</script>
<script type="text/x-red" data-template-name="mc-user-payload">
<div class="form-row">
<label for="node-input-topic"><i class="icon-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
</script>
<script type="text/x-red" data-help-name="mc-user-payload"><p>Merge the <strong>Node-RED</strong> message payload into the current chatbot user’s payload.</p>
<p><img src="https://raw.githubusercontent.com/guidone/node-red-contrib-chatbot/master/docs/images/user-3.png" alt="User custom payload"></p>
</script>