How to trigger custom event?

I want to use my website’s call back data to trigger an event for a customer on whatsapp? I tried several ways to do it but not able to achieve that. Any help appreciated