node-red-contrib-googlehome-actions-v2-piyanggoon
Version:
Google Home Actions V2 (fork by piyanggoon)
41 lines (38 loc) • 1.52 kB
HTML
<script type="text/javascript">
RED.nodes.registerType('googlehome-controller',{
category: 'Google Assistant',
defaults: {
name: {value: ""},
},
paletteLabel: "Controller",
icon: 'googlehome.png',
outputs: 2,
inputs: 1,
label: function() {
return (this.name !== "" ? "Controller (" + this.name + ")" : "Google Home Controller");
}
});
</script>
<script type="text/x-red" data-template-name="googlehome-controller">
<div class="form-row">
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
</script>
<script type="text/x-red" data-help-name="googlehome-controller">
<p>This is the Google Home Controller.</p>
<h3>Input</h3>
<p>It must be connected to a http node (POST) with the same path/url you informed at DialogFlow fulfillment.</p>
<h3>Outputs</h3>
<ol class="node-ports">
<li>Intent Nodes
<p>It must be directly connected to one or more Intent Nodes. As configured at DialogFlow.</p>
</li>
<li>http response node
<p>It must be connected to a http response node</p>
</li>
</ol>
<h3>Details</h3>
<p>This is the first node to be created on the flow. It will control Google Home API, initialize intents and Answers.</p>
<p>Intents will be connected to it's first output directly.</p>
</script>