Send Interactive Messages

Interactive list messages allow you to present users with a list of options to choose from.

ArgumentsExplanation

type

The type of the message e.g 'text' | 'interactive' | 'file' | 'video' | 'image'

interactive

The body of the interactive message further documentation can be found here Meta Documentation

Construct a request & the expected response using the specified API endpoint

We partially support interactive messages. These messages will appear in the conversation history as encoded JSON within a text-type message, preserving their original structure and content.

{
    "type": "interactive",
    "interactive": {
        "type": "list",
        "header": {
            "type": "text",
            "text": "Survey"
        },
        "body": {
            "text": "How likely are you to recommend whatsapp to a friend?"
        },
        "footer": {
            "text": "Please make your selection"
        },
        "action": {
            "button": "Answers",
            "sections": [
                {
                    "title": "Your score:",
                    "rows": [
                        {
                            "id": "001",
                            "title": "1"
                        },
                        {
                            "id": "002",
                            "title": "2"
                        }
                    ]
                }
            ]
        }
    }
}

The provided YAML configuration below defines an API specification using the OpenAPI (formerly known as Swagger) format.

Last updated