red-contrib-dialogflow-serviceaccount-connection
v1.0.0
Published
Dialogflow node for Nore-RED. Support API v2 dialogflow.com
Downloads
7
Maintainers
Readme
README
Dialogflow node for Node-RED. Uses new version API V2. Receives a text request for input. As a result, we get the full response from Dialogflow API.
The code for the node was slightly modified from .
Install
Install latest release: npm i red-contrib-dialogflow-serviceaccount-connection
Inputs
msg.payload
string
The text of our request for NLP
Outputs
msg._dialogflow
Object
Returns the following object:
{
"fulfillmentMessages": [{
"platform": "PLATFORM_UNSPECIFIED",
"text": {
"text": [
"STRING"
]
},
"message": "text"
}],
"outputContexts": [{
"name": "STRING",
"lifespanCount": INT,
"parameters": {
"fields": {
"FIELD-NAME": {
"listValue": {
"values": [{
"stringValue": "",
"kind": "stringValue"
}]
},
}
}
}
}],
"queryText": "STRING",
"speechRecognitionConfidence": 0,
"action": "STRING",
"parameters": {
"fields": {
"FIELD-NAME": {
"listValue": {
"values": [{
"stringValue": "",
"kind": "stringValue"
}]
},
}
}
},
"allRequiredParamsPresent": true,
"fulfillmentText": "STRING",
"webhookSource": "",
"webhookPayload": null,
"intent": {
"inputContextNames": [
],
"events": [
],
"trainingPhrases": [
],
"outputContexts": [
],
"parameters": [
],
"messages": [
],
"defaultResponsePlatforms": [
],
"followupIntentInfo": [
],
"name": "STRING",
"displayName": "STRING",
"priority": 0,
"isFallback": false,
"webhookState": "WEBHOOK_STATE_UNSPECIFIED",
"action": "",
"resetContexts": false,
"rootFollowupIntentName": "",
"parentFollowupIntentName": "",
"mlDisabled": false
},
"intentDetectionConfidence": 1,
"diagnosticInfo": null,
"languageCode": "es"
}
Details
msg.payload
Not affected or processed. The output remains the same.