Nicely Pruned Marigolds

    red-contrib-dialogflow-serviceaccount-connection

    1.0.0 • Public • Published

    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.

    Install

    npm i red-contrib-dialogflow-serviceaccount-connection

    DownloadsWeekly Downloads

    6

    Version

    1.0.0

    License

    ISC

    Unpacked Size

    648 kB

    Total Files

    7

    Last publish

    Collaborators

    • reino_de_leon