UNPKG

node-red-contrib-viseo-dialogflow

Version:

VISEO Bot Maker - Dialogflow server and NLP

41 lines (38 loc) 1.65 kB
<script type="text/javascript"> RED.nodes.registerType('dialogflow-config',{ category: 'config', defaults: { name: { value: undefined } }, credentials: { clienttoken: { type:"text" }, devtoken: { type:"text" } }, label: function() { return this.name || "Dialogflow's tokens"; } }); </script> <script type="text/x-red" data-template-name="dialogflow-config"> <div class="form-row"> <label for="node-config-input-name"><i class="icon-tag"></i> Name</label> <input type="text" id="node-config-input-name" placeholder="Name"> </div> <div class="form-row"> <label for="node-config-input-clienttoken"><i class="fa fa-lock"></i> Client token</label> <input type="text" id="node-config-input-clienttoken" placeholder=""> </div> <div class="form-row"> <label for="node-config-input-devtoken"><i class="fa fa-lock"></i> Dev. token</label> <input type="text" id="node-config-input-devtoken" placeholder=""> </div> </script> <script type="text/x-red" data-help-name="dialogflow-config"> <p>Client token (Query API) and Dev. token (Manage API) for Dialogflow.</p> <h3>References</h3> <ul> <li><a href="https://dialogflow.com/docs/reference/agent/intents">Intents API</a> - reference</li> <li><a href="https://dialogflow.com/docs/reference/agent/entities">Entities API</a> - reference</li> <li><a href="https://github.com/NGRP/node-red-contrib-viseo/">VISEO BotMaker</a> - the nodes github repository</li> </ul> </script>