NGRP / node-red-contrib-viseo

Node-RED nodes OpenSourced by VISEO Technologies
Apache License 2.0
227 stars 83 forks source link

Help to configure Dialogflow with Viseo #106

Open godestalbin opened 5 years ago

godestalbin commented 5 years ago

I installed: npm install node-red-contrib-viseo-dialogflow (actually it was probably already installed). I created a first Dialogflow. In Fullfillment I just specified the URL: Screen copy If I tried to access the configured URL: https://godestalbin.geocen.org/dialogflow-server I just got: Cannot GET /dialogflow-server: This should be OK. If I use Postman to send a post request, I have a reply identical to the one I got in the Diagnostic (see below): Additionnaly in the Diagnostic info of the Fullfillment I have the error: "error": "Cannot read property 'accessToken' of undefined" Webhook call failed. Error: 500 Internal Server Error In my flow I have just dialogflow-server node and a debug node. I noticed after there is also a dialogflow node but I don't thing I should use it. I saw that in server-dialogflow.js we have data.user.accessToken = data.message.request.user.accessToken; But there is no such data in the post made by Dialogflow. What is the problem ?

Klervix commented 5 years ago

Hi @godestalbin What do you want to do?

godestalbin commented 5 years ago

My goal is to use Sarah v5 to control my smart home box (eedomus). So I would like first to use my phone Google assistant to say: Allumes la lumière du salon