Response with custom payload / richContent

Created on 16 January 2023, almost 2 years ago
Updated 28 February 2023, over 1 year ago

Problem/Motivation

I would like to respond to the Intent with a custom payload/rich-content message in my Drupal/custom_module/src/Plugin/Chatbot/Intent/MyIntent. Something like as shown here: https://cloud.google.com/dialogflow/es/docs/fulfillment-webhook#custom_p...

Also, is it possible to set the Dialogflow-context from the Drupal-plugin?

{
  "fulfillmentMessages": [
    {
      "payload": {
        "richContent": [ // for Dialogflow Messenger integration
          [
            {
              "type": "image",
              "rawUrl": "https://example.com/images/logo.png",
              "accessibilityText": "Example logo"
            }
          ]
        ],
        // custom integration payload here
      }
    }
  ]
}
✨ Feature request
Status

Fixed

Version

2.1

Component

Code

Created by

🇩🇪Germany dotist

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024