Skip to content

Invalid messages #1

Description

@asdfff711

Hi there,

Really cool chatbot interface!

I'm a student experimenting with chatbots.

Been trying out the webhook feature for flow ai and have been having trouble sending a response back to flow ai. The JSON I'm looking to send is the Carousel one. If you could please take a quick look and identify what's wrong, it will be greatly appreciated. Cheers!

I've referred to https://github.com/flow-ai/flowai-js-templates/blob/master/JSON.md and https://docs.flow.ai/reference/webhook_replies.html.

Been receiving this message:

Webhook
error:Received invalid messages. Please check your JSON data.

This is the format of the JSON response I'm trying to send back.

    "messages": [
        {
            "fallback": "Fallback message here",
            "responses": [
                {
                    "type": "carousel",
                    "payload": {
                        "cards": [
                            {
                                "title": "Item1",
                                "subtitle": "",
                                "media": {
                                    "url": "image1_url",
                                    "type": "image"
                                }
                            },
                            {
                                "title": "Item2",
                                "subtitle": "",
                                "media": {
                                    "url": "image2_url",
                                    "type": "image"
                                }
                            }
                        ],
                        "delay": 0
                    }
                }
            ]
        }
    ],
    "verifyToken": "token_value"
}```

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions