A simple tutorial to send messages in whatsapp with a google now command. Say: "Ok Google. Whatsapp message to NAME write TEXT".
- What you need:
- Tasker
- AutoVoice, AutoInput, AutoContacts, AutoShortcut- Tasker profile:
Condition: Auto Voice Recognized:
Whatsapp message to (?<name>.+) write (?<text>.+)- Entry Task:
- AutoContacts: Nickname: %name
(to get the full name and the telephone number)
- Variable search and replace to modify the contatcs number: remove spaces by searching for ” ” and replacing it with “”
AutoContacts returns
%acnumber=017 011 234 567
modified:
%newnumber=017011234567
- Whatsapp needs the telephone number starting with the country code (49 for Germany), if you saved your contact’s numbers without you have to modify the number first:
I use search for “01″ and replace with “491″
In Germany cell phone number’s always start with 01 so this works very well.
Example:
%newnumber=017011234567
49 for 0:
%whatsappnumber=4917011234567
or remove 00
%newnumber=004917011234567
%whatsappnumber=4917011234567- Save a variable %intent with the following content:
(dont forget to change the two variable names %whatsappnumber and %acname to your variables !)
- Then add a AutoShortcut task and use %intent variable for the “Shortcut Intent String”. This task opens the Whatsapp contact.
- Set your clipboard to %text variable.
- Use AutoInput to paste it into the whatsapp text field (easy setup works fine)
- If you are sure google always understands everything right: use AutoInput to press the “send” button.

Send Whatsapp messages with Google Now
Send Whatsapp messages to your contacts with a simple voice command through Google Now.