Have a look here: https://community.home-assistant.io/t/run-scripts-in-home-assistant-based-on-incoming-normal-or-whatsapp-call/37131