Sign In
Sign In
  1. Home
  2. APIs
  3. Receber uma mensagem
  4. Exemplos de corpo
APIs
37 articles
WhatsApp Push v1.03
Transfert d’agent v1.04
API de conformidade de dados4
API JavaScript do widget4
Message Trigger v1.12
Messaging v1.14
Enviar uma mensagem2
Receber uma mensagem4
Payloads de anexos
Assinatura de autenticidade da solicitação
Código de resposta esperado
Exemplos de corpo
Introdução
Histórico de alterações

Exemplos de corpo

Revise exemplos de payloads do corpo do webhook para mensagens de texto, imagem, modelo genérico e pesquisas CSAT.

Updated on 24 de setembro de 2026

Mensagem de texto

JSON
{
  "end_user_token": "df6a0edc-b31d-461x-ydcx-f7d5f02cd3d0",
  "message": {
    "quick_replies": [],
    "text": "A text message"
  },
  "request_id": "33cf5e95-d39e-428a-96a8-fa5de30ebc1c",
  "sender_type": "bot"
}

Mensagem de texto com imagem

O exemplo acima resulta de 2 chamadas ao webhook, uma com a mensagem de texto e outra com a imagem:

JSON
{
  "end_user_token": "df6a0edc-b31d-461x-ydcx-f7d5f02cd3d0",
  "message": {
    "attachment": null,
    "quick_replies": [],
    "text": "Enjoy the Eiffel tower:"
  },
  "request_id": "33cf5e95-d39e-428a-96a8-fa5de30ebc1c",
  "sender_type": "bot"
}
JSON
{
  "end_user_token": "df6a0edc-b31d-461x-ydcx-f7d5f02cd3d0",
  "message": {
    "attachment": {
      "type": "image",
      "payload": {
        "url": "http://url_or_the_image",
        "alt_text": "http://url_or_the_image",
      }
    },
    "text": "",
    "quick_replies": []
  },
  "request_id": "33cf5e95-d39e-428a-96a8-fa5de30ebc1c",
  "sender_type": "bot"
}

Mensagem de vídeo

JSON
{
  "end_user_token": "df6a0edc-b31d-461x-ydcx-f7d5f02cd3d0",
  "message": {
    "attachment": {
      "type": "video",
      "payload": {
        "url": "http://url_or_the_video"
      }
    },
    "text": "",
    "quick_replies": []
  },
  "request_id": "33cf5e95-d39e-428a-96a8-fa5de30ebc1c",
  "sender_type": "bot"
}

Mensagem de texto com respostas rápidas

JSON
{
  "end_user_token": "df6a0edc-b31d-461x-ydcx-f7d5f02cd3d0",
  "message": {
    "quick_replies": [
      {
        "payload": "{\"title\": \"Thank you 😉\", \"target_intent_id\": 22450}",
        "title": "Thank you 😉"
      },
      {
        "payload": "{\"title\": \"🚩 Change city\", \"target_intent_id\": 22451}",
        "title": "🚩 Change city"
      }
    ],
    "text": "It is sunny in Paris"
  },
  "request_id": "33cf5e95-d39e-428a-96a8-fa5de30ebc1c"
}

Mensagem de texto com modelo genérico (com um elemento)

O exemplo acima resulta de 2 chamadas ao webhook, uma com a mensagem de texto e outra com o modelo genérico:

JSON

{
  "end_user_token": "df6a0edc-b31d-461x-ydcx-f7d5f02cd3d0",
  "message": {
    "attachment": null,
    "quick_replies": [],
    "text": "It is sunny in Paris"
  },
  "request_id": "33cf5e95-d39e-428a-96a8-fa5de30ebc1c",
  "sender_type": "bot"
}
JSON
{
  "end_user_token": "df6a0edc-b31d-461x-ydcx-f7d5f02cd3d0",
  "message": {
    "attachment": {
      "type": "template",
      "payload": {
        "template_type": "generic",
        "elements": [
          {
             "title": "Paris",
             "subtitle": "Eiffel tower",
             "image_url": "http://url_or_the_image",
             "buttons": [
               {
                  "title": "Book a hotel",
                  "type": "web_url",
                  "payload": "http://link_to_redirect_to" 
               },
               {
                  "title": "Thank you 😉",
                  "type": "postback",
                  "payload": "{\"title\": \"Thank you 😉\", \"target_intent_id\": 22451}"
               }
             ]
          }
        ]
      }
    },
    "text": ""
  },
  "request_id": "33cf5e95-d39e-428a-96a8-fa5de30ebc1c"
}

Mensagem de texto com modelo genérico (com vários elementos)

O exemplo acima resulta de 2 chamadas ao webhook, uma com a mensagem de texto e outra com o modelo genérico:

JSON
{
  "end_user_token": "df6a0edc-b31d-461x-ydcx-f7d5f02cd3d0",
  "message": {
    "attachment": null,
    "quick_replies": [],
    "text": "Check out the weather in those European cities:"
  },
  "request_id": "33cf5e95-d39e-428a-96a8-fa5de30ebc1c",
  "sender_type": "bot"
}
JSON
{
  "end_user_token": "df6a0edc-b31d-461x-ydcx-f7d5f02cd3d0",
  "message": {
    "attachment": {
      "type": "template",
      "payload": {
        "template_type": "generic",
        "elements": [
          {
             "title": "London",
             "subtitle": "Big Ben",
             "image_url": "http://url_or_the_image"
          },
          {
             "title": "Paris",
             "subtitle": "Eiffel tower",
             "image_url": "http://url_or_the_image",
             "buttons": [
               {
                  "title": "Book a hotel",
                  "type": "web_url",
                  "payload": "http://link_to_redirect_to" 
               },
               {
                  "title": "Thank you 😉",
                  "type": "postback",
                  "payload": "{\"title\": \"Thank you 😉\", \"target_intent_id\": 22451}"
               }
             ]
          },
          {
             "title": "Madrid",
             "subtitle": "Plaza Mayor",
             "image_url": "http://url_or_the_image"
          }
        ]
      }
    },
    "text": ""
  },
  "request_id": "33cf5e95-d39e-428a-96a8-fa5de30ebc1c"
}

Anexo com modelo de lista

JSON
{
  "end_user_token": "df6a0edc-b31d-461x-ydcx-f7d5f02cd3d0",
  "message": {
    "attachment": {
      "type": "template",
      "payload": {
        "template_type": "list",
        "elements": [
          {
             "title": "Title Element 1",
             "subtitle": "Subtitle Element 1",
             "image_url": "http://url_or_the_image",
             "buttons": [
               {
                  "title": "Button",
                  "type": "web_url",
                  "payload": "http://link_to_redirect_to" 
               }
             ]
          },
          {
             "title": "Title element 2",
             "subtitle": "Subtitle element 2",
             "image_url": "http://url_or_the_image",
          },
          {
             "title": "Title element 3",
             "subtitle": "Subtitle element 3",
             "image_url": "http://url_or_the_image"
          }
        ]
      }
    },
    "text": ""
  },
  "request_id": "33cf5e95-d39e-428a-96a8-fa5de30ebc1c"
}

Mensagem de texto com CSAT

Se a pesquisa CSAT estiver ativada em uma etapa da plataforma, o chatbot enviará o seguinte payload ao endpoint do webhook:

JSON
{
    "end_user_token": "df6a0edc-b31d-461x-ydcx-f7d5f02cd3d0",
    "request_id": "be94586d-96cc-46ac-a70a-df5b12c807d2",
    "event": {
        "type": "csat_activation_event",
        "meta_content": {
            "message_id": "ecafc028-f92e-459b-a172-2bdffb13e867",
            "service_record_id": 17,
            "case_statement_record_id": 11
        },
    },
}

Was this article helpful?

On this page
  • Mensagem de texto
  • Mensagem de texto com imagem
  • Mensagem de vídeo
  • Mensagem de texto com respostas rápidas
  • Mensagem de texto com modelo genérico (com um elemento)
  • Mensagem de texto com modelo genérico (com vários elementos)
  • Anexo com modelo de lista
  • Mensagem de texto com CSAT

Made from France 💙

Categories

  • ANÁLISE
  • CONSTRUIR
  • LOUIS AI
  • INTEGRAR

🔗 Useful Links

  • Sign In
  • Website
  • Terms & Conditions

© 2026

MindsayPowered by Mindsay

Search the help center…

Search help center articles