Autobotchat supports webhooks that can alert you to an incoming message via a callback URL

How to set the Webhook/Callback URL?

  1. Click on 'Webhooks' on the left navigation

  2. Click on + Add Webhook, add the webhook URL, and set the status as 'Enabled'

  1. When a message is received, a callback happens on your webhook URL with the below payload
{
  "id": "1691139472",
  "sender_id": "91xxxxxxxxxx",
  "receiver": "91xxxxxxxxxx",
  "display_name": "Name",
  "type": "text",
  "text": {
    "body": "Hi"
  },
  "dt": "2023-08-04 14:27:52",
  "date": "2023-08-04 14:27:52",
  "created": "2023-08-04 14:27:52",
  "eventtype": "message",
  "whts_ref_id": "wamid.HBgMOTE4ODc4NTg4NTk5FQIAEhggODUwMjJGOTFDREUwRDEzRUNCQzkyNkRDRDA2QjgyRTMA",
  "from": "91xxxxxxxxx",
  "wabaNumber": "91xxxxxxxxx",
  "timestamp": "2023-08-04 14:27:52",
  "context": {
    "id": "wamid.HBgMOTE4ODc4NTg4NTk5FQIAEhggODUwMjJGOTFDREUwRDEzRUNCQzkyNkRDRDA2QjgyRTMA"
  }
}

3a) The type could be text or image.

3b) In the case of Image, media name could be append with URL
"https://wa20.nuke.co.in/v5/assets/webhook/filename"