Webhook for Bot Auto Responder is a new feature that was created and developed to add a function in providing reply messages that are replied to by the Bot according to the existing menu/trigger.
This feature is available on IDEVWA - WhatsApp Notification Module version 1.2.0 or newer and WhatsApp Gateway v1.6.15 or newer. And here are the features of the webhook for bot auto responder:
- Sending default auto-reply messages.
- Sending messages by menus/triggers you have set.
- Sends "Bot Not Found" message if the menu/trigger is not available.
How to enable webhook on WhatsApp Gateway
- Stop whatsapp gateway service using:
systemctl stop kirimwa_server.service
systemctl stop kirimwa_sender.service
*For old installation version use:
systemctl stop kirimwa.service
- Open /opt/kirimwa/config_server.yaml and /opt/kirimwa/config_sender.yaml then add or change the value with the line marked by the blue line
*For old installation version use: /opt/kirimwa/config.yaml
- Change value webhook.enabled to 1, webhook.header_key with value on token_name (config.yaml), webhook.header_value with value on token_value (config.yaml), webhook.url with value on webhook url (config.yaml)
- Start whatsapp gateway service using:
systemctl start kirimwa_server.service
systemctl start kirimwa_sender.service
*For old installation version use:
systemctl start kirimwa.service
- Now, webhook on your whatsapp gateway is enabled.
How to enable webhook on WHMCS Module
- Login to your WHMCS Administrator Dashboard
- Go to Addons > IDEVWA WhatsApp API
- Click "System Settings" tabs on IDEVWA WhatsApp API Dashboard
- Scroll down and search "Webhook Management", you will see Token Name and Token Value
- Fill Token Name and Token value based on your WhatsApp Gateway Webhook Configuration that you have set.
- Save.
- Now, you can Add Bot Menu Templates on "Bot Responder Template", So if your client chat to your whatsapp gateway number then they will get response from your bot based on available menu/trigger templates.
WhatsApp Notification Module for WHMCS
* If you encounter any problems, don't hesitate to contact us :)