rpaix helprpaix help

AIX.API

home/Documentation/AIX.API
Expand All Collapse All
  • Getting Started
  • Usage
  • Users
    • get-user
    • get-user-by
    • get-user-extra
    • get-user-language
    • get-users
  • Webhooks
    • message-sent
    • email-sent
    • sms-sent
    • new-messages-received
    • bot-message

bot-message

14 views 0 August 23, 2023 Updated on August 30, 2023 rpaix-chat-team

Webhook sent when the Dialogflow send a reply to a user message.

Response


{
    "function": "bot-message",
    "key": "xxxxxxxx",
    "sender-url": "https://example.com"
    "data": {
        "response": {
            "token": "ya29.a0Afkjh8MGRCYeT4BgCy3917xqSDdVvw4mgVHrgrHQcgRk9ajWoQAgdjv5e...",
            "messages": [
                {
                    "message": "Hi! How are you doing?"
                }
            ],
            "response": {
                "responseId": "46d2c906-2a7f-4ca2-bd7d-6636982b8bee-0f0e27e1",
                "queryResult": {
                    "queryText": "hi",
                    "action": "input.welcome",
                    "allRequiredParamsPresent": "true",
                    "fulfillmentText": "Hi! How are you doing?",
                    "fulfillmentMessages": [
                        {
                            "text": {
                                "text": [
                                    "Hi! How are you doing?"
                                ]
                            }
                        }
                    ],
                    "outputContexts": [
                        {
                            "name": "projects/api-project-644417752147/agent/sessions...",
                            "lifespanCount": "1",
                            "parameters": {
                                "no-input": "0",
                                "no-match": "0"
                            }
                        }
                    ],
                    "intent": {
                        "name": "projects/api-project-644417752147/agent/intents...",
                        "displayName": "Default Welcome Intent"
                    },
                    "intentDetectionConfidence": "1",
                    "languageCode": "en"
                },
                "alternativeQueryResults": [
                    {
                        "queryText": "hi",
                        "outputContexts": [
                            {
                                "name": "projects/api-project-644417752147/agent...",
                                "parameters": {
                                    "no-match": "1",
                                    "no-input": "0"
                                }
                            }
                        ],
                        "languageCode": "en"
                    }
                ]
            }
        },
        "message": "Hello",
        "conversation_id": 654321
    }
}

 

Was this helpful?

Yes  No
Related Articles
  • new-messages-received
  • sms-sent
  • email-sent
  • message-sent
  • Webhooks
  • get-users

Didn't find your answer? Contact Us

Previously
new-messages-received
© 2023 rpaix.com. All Rights Reserved.