Task to answer WhatsApp call

1,596 views
Skip to first unread message

Thomas keim

unread,
May 9, 2020, 9:11:27 AM5/9/20
to Tasker
I wear long gloves when cycling and cannot click the screen. I would like to accept an incoming WhatsApp call by voice.
I have finished the profile: I activate the voice recognition with a BT button. Autovoice Recognized then triggers my task.
Now I still need the task:
I want to take the call. Then turn on the speaker. I have already tried it with autoinput, but was not successful.

Logan Fury

unread,
May 9, 2020, 8:59:07 PM5/9/20
to Tasker
Standard Tasker commands can do this easily

Take Call

and

Speakerphone

Task options should be all you need. Both can be easily found using the search field.

You can also automate with End Call.

Is knowing the commands enough for you to proceed or do you need help scripting the Task?

Jimmy Jimmy

unread,
May 10, 2020, 10:12:24 AM5/10/20
to Tasker
Unfortunately, the Take Call doesn't work on WhatsApp Calls. If you have tried AutoInput's Swipe action and it didn't work, try the AutoNotification Actions action. A WhatsApp call creates a notification with an Answer button. Use AN Query to get the button action and then AN Actions action to click it.

Thomas keim

unread,
May 11, 2020, 6:53:47 AM5/11/20
to Tasker
Yes, autoinput is not possible. tried Action / Click and gesture / swipe. At swipe I took the position below and above (end of swipe) (x, y)
I get a notification in the status bar during the call. Reject and accept field.
Now I have installed Autonotfication. What should I do now.
I just want to automatically click the (accept) field with a task. The profile with the trigger is already finished.

Jimmy Jimmy

unread,
May 11, 2020, 6:56:11 PM5/11/20
to Tasker
What context are you using to detect the call?

Sindhi Dry Fruits

unread,
May 12, 2020, 12:40:59 AM5/12/20
to tas...@googlegroups.com
If A whatsaApp call is missed, I want to drop a canned response. 

Secondly, i want the tasker to send a canned response if call (WhatsApp or Regular) is missed FROM SIM 1 and not SIM 2. 

Thirdly, if a single canned response is sent, I dont want to send the same message on replies. 

I am also using Autoresponder for WhatsApp. 


Please help me out. 
Thanks in advance

On Tue, 12 May 2020 at 04:26 Jimmy Jimmy <jmjc...@gmail.com> wrote:
What context are you using to detect the call?

--
You received this message because you are subscribed to the Google Groups "Tasker" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/c6edcf13-b1a4-4696-bf67-b1abf55540bd%40googlegroups.com.
--
photo
Sanjay Kataria
Proprietor, Sindhi Dry Fruits

011-40018195 | +91-8178474593 | sindhidry...@gmail.com

https://sindhidryfruits.business.site

K 14 A Lajpat Nagar 2 New Delhi 110024
"Life is 10% what happens to you and 90% how you react to it." - Charles R. Swindoll.
Be like me, be Carbon free - don't print this and save a tree

Thomas keim

unread,
May 12, 2020, 2:02:45 PM5/12/20
to Tasker
The first option is the popup in Figure 1. The green button must be swiped up. I tried that with autoinput (already written above)
The second option is: In the status bar at the top there is a message when you call. If I pull down the status bar and tap on the little arrow next to the time, the picture 2 comes.
Here I can accept (green) and the conversation begins.
Can I simulate this field with autoinput (action / click)? Or do I have to do that via autonotfication. If so, how exactly.

Figure 1 .jpg

Figure 2.jpg

Jimmy Jimmy

unread,
May 13, 2020, 4:41:18 AM5/13/20
to Tasker
For your use case, AutoNotification will be a better choice.

You need two actions in your task:

Action #1:
AutoNotification Query
Apps: WhatsApp
Text: eingehender videoanruf (or Incoming voice call in German)

Action #2:
AutoNotification Actions
Advanced -> Intercept Action ID: %anbutton2action (This is the accept button. If you want to reject, use %anbutton1action)

That is all.


Thomas keim

unread,
May 13, 2020, 8:56:23 AM5/13/20
to Tasker
Thank you very much, it worked with incoming voice call.
One more question: there are incoming voice call and incoming video call. How can I do it so that both are recognized.
At the moment I have text "Incoming voice call" in it. Can I write both texts in there and with an "or" in between
Or do I have to do a second query?

Jimmy Jimmy

unread,
May 13, 2020, 9:03:33 AM5/13/20
to Tasker
Yes, you can put this in the text field:
Incoming voice call|Incoming video call

The "|" means or in a regex statement

Make sure you check the Use Regex field

Reply all
Reply to author
Forward
0 new messages