Webhook Data Format

The Click to Chat plugin supports webhook integration to send event data such as button clicks and form submissions to external applications or services.

By default, the webhook data is sent as a JSON object.

If your integration requires a stringified JSON payload, you can change the format in the plugin settings.

Changing the Webhook Data Format

Navigate to Click to Chat → Analytics → Webhooks → Webhook data format.

  • String (Stringify JSON) – Sends the webhook data as a JSON string.
  • JSON – Sends the webhook data as a JSON object (default).
Webhook data format menu with JSON and String options

Purpose of Webhooks

Webhooks in the Click to Chat plugin are primarily used for analytics and automation. They allow you to:

  • Track user interactions by capturing clicks on the WhatsApp icon.
  • Collect form input from users who submit the Greetings Form before initiating a chat.

Choose the format your integration requires under Click to Chat → Analytics → Webhooks.