Message Types: Outgoing

Text

{
    "type": "text",
    "text": "Hello"
}

Image

{
    "type": "image",
    "originalUrl": "https://i.picsum.photos/id/502/200/300.jpg?hmac=aHrprSZ5m8KmqTIrgi4dr8YmRjrN_BppdP5jCNrXB0E",
    "caption": "Deadpool"
}

Audio

{
    "type": "audio",
    "url": "https://www.buildquickbots.com/whatsapp/media/sample/audio/sample02.mp3",
    "duration": "175000"
}

Video

{
    "type": "video",
    "url": "https://www.buildquickbots.com/whatsapp/media/sample/video/sample02.mp4",
    "previewUrl": "https://i.imgur.com/LMcKBUI.jpeg"
}

Sticker

{
    "type": "sticker",
    "url": "http://www.buildquickbots.com/whatsapp/stickers/SampleSticker01.webp",
    "previewUrl": "http://www.buildquickbots.com/whatsapp/stickers/SampleSticker01.webp"
}

Location

{
    "type": "location",
    "longitude": -122.425332,
    "latitude": 37.758056,
    "name": "Gupshup",
    "address": "Mumbai"
}

Contact

{
    "type": "contact",
    "contact": {
        "name": {
            "firstName": "James",
            "lastName": "Bond"
        },
        "phones": [
            {
                "phone": "+1 (940) 007-1234"
            }
        ]
    }
}

Quick Reply

{
    "type": "quick_reply",
    "msgid": "qr0998",
    "title": "choose any one of the following",
    "content": {
        "type": "text",
        "text": "What's your favourite color?"
    },
    "options": [
        "Red",
        "Green",
        "Yellow"
    ]
}

Survey

{
    "type": "survey",
    "question": "What is your hobby?",
    "options": [
        "Sleeping",
        "Eating",
        "Coding"
    ]
}

Request Contact

{
    "type": "request_contact",
    "text": "Please share your contact to continue!",
    "buttonText": "Share Contact"
}