Specific recipient SMS / WhatsApp

147 views
Skip to first unread message

A

unread,
Sep 27, 2022, 4:56:17 AM9/27/22
to Automate
Hi,

Would like to check how to do a block that waits for a specific "known" recipient (i.e. no need to choose manually) SMS and copy its text?

And how do we set WhatsApp to send to a specific "known" (i.e. no need to choose manually) WhatsApp Group Chat (e.g. Group Chat name: "Hello World")?

Does this specific "known" recipient works for SMS and WhatsApp from e.g. Banks with their name only e.g. "BANK ABC" (i.e. can't see their number)?

Thanks in advance.

A

Henrik "The Developer" Lindqvist

unread,
Sep 28, 2022, 7:44:58 AM9/28/22
to Automate
The SMS received block has an sender phone number output variable, compare it to what's consider "known", or the Contact query block to check if it's a known contact.

For how to send to a particular WhatsApp, try looking at the other community made flows does it, e.g.:

The SMS received block only return the sender phone number, if that's not "BANK ABC" then there's currently no way to get it, i'll investigate if its possible to add such a feature.
There's no built-in way to receiving WhatsApp messages, so i don't know if it's possible to get the name of the sender. As said, look at teh community made flows.

A

unread,
Sep 29, 2022, 3:13:48 AM9/29/22
to Automate
Thanks Henrik. Will explore how the other community does the WhatsApp. However, would like to check, how to know the XPath values to put - as in how to interpret the XPath values what it mean? Any guide or links I can refer to?

Noted currently that the SMS receive block only accepts phone number only, and is unable to get the From Recipient without number (e.g. "BANK ABC"). This will be a possible feature in future? Looking forward to it. :)

For the SMS send block, it can only send to 1 number and unable to send to multiple numbers within the same block? E.g. the input arguments: phone number field is unable to accept multiple phone numbers e.g. 1234567, 2234567, 3334567, etc?

Thanks much again.

A

Henrik "The Developer" Lindqvist

unread,
Sep 29, 2022, 11:44:49 AM9/29/22
to Automate
Sorry, i don't use WhatsApp so i can't tell what XPath  to use, it also depends on for what, in which app/Android version, etc.. As said, try finding a community made example.

Indeed the SMS send block only take a single phone number, as does the Android for sending SMS, so you have to execute teh block multiple times, once for each recipient. e.g. use the For each block with an array of phone numbers.

A

unread,
Sep 30, 2022, 5:17:33 AM9/30/22
to Automate
Ya, will try to figure out the WhatsApp xpath example.

Noted on the SMS send block. Thanks much Henrick. :)

Reply all
Reply to author
Forward
0 new messages