MacroDroid read incoming mail and send auto whatsapp message

RunoD

Member
Yes here are the examples:

%name% Naam (is name of the booking)
%date% Datum (is date)
%time% Time (is time that is booked)
%employee% (is name of the employee)
%service% Service (service of the appoitment)
%duration% Duur (time that booking takes)

These things will also be in the notification.
 

Attachments

  • Scherm­afbeelding 2024-11-27 om 16.24.13.png
    Scherm­afbeelding 2024-11-27 om 16.24.13.png
    100.1 KB · Views: 4

RunoD

Member
Let me know if you want to know how it looked like in the notification bar if all these things happen, i did not provice a printscreen before how it looked like.
 

Jacob L

Moderator (Lawsonator)
You'll have to test because the examples provided don't include test data.
 

Attachments

  • Email_to_WhatsApp.macro
    8.9 KB · Views: 2

RunoD

Member
Hi Jacob,

I tried it out but its picking a random contact again like in the video you have seen and not the number in the notification. I also tried the one who normaly worked and the same happend there, it just picked a random contact out of the send list in whatsapp try to send the massage to the random contact but does not send it and goes back to macro again.
 
Last edited:

RunoD

Member
But the strang thing is, that when i turn on force email what is also in the catogory it works. It picks up the number in the notification and send it to whatsapp with that correct number. I did not try to force with the macro above what u just send.
 

RunoD

Member
I works also with the force macro notification what you wrote, the force notification works with all 2 macro. Bbut the mail notificaton picks up a random number and try to send it but does not send it.

I am going to reboot my phone maybe that will help. UPDATE: rebooting does not work, it still picks up a random number in the whatsapp list and then returns to macro again.

The force notification is also in the logg so dont confuse by it says send message in the log.
 

Attachments

  • WhatsApp Image 2024-11-29 at 08.14.02.jpeg
    WhatsApp Image 2024-11-29 at 08.14.02.jpeg
    96.8 KB · Views: 2
  • WhatsApp Image 2024-11-29 at 08.14.03 (1).jpeg
    WhatsApp Image 2024-11-29 at 08.14.03 (1).jpeg
    121.5 KB · Views: 1
  • WhatsApp Image 2024-11-29 at 08.14.03 (2).jpeg
    WhatsApp Image 2024-11-29 at 08.14.03 (2).jpeg
    91.9 KB · Views: 1
  • WhatsApp Image 2024-11-29 at 08.14.03.jpeg
    WhatsApp Image 2024-11-29 at 08.14.03.jpeg
    128.4 KB · Views: 2
  • WhatsApp Image 2024-11-29 at 08.18.23.jpeg
    WhatsApp Image 2024-11-29 at 08.18.23.jpeg
    277.6 KB · Views: 2
Last edited:

Jacob L

Moderator (Lawsonator)
Is there a word that comes before the number? If so, we can just use that. Turn off all the other macros and use the latest one. They may be mixing
 

RunoD

Member
Hi Jacob, I can try only use the macro you made adobe to try it.

What do u mean with is there a word that comes before the number?
the notification starts as: New booking in dutch: Nieuwe boeking. Then name of the customer.
 

Attachments

  • WhatsApp Image 2024-11-29 at 09.51.51.jpeg
    WhatsApp Image 2024-11-29 at 09.51.51.jpeg
    74.4 KB · Views: 4
  • WhatsApp Image 2024-11-29 at 09.55.50.jpeg
    WhatsApp Image 2024-11-29 at 09.55.50.jpeg
    111.3 KB · Views: 4

Jacob L

Moderator (Lawsonator)
What's after the op? There seems to be different words after it. That's going to make it slightly harder to catch the correct number
 

RunoD

Member
after the OP is the customers name, that name (ere) is just filled in by me just to make a quick test for the notification.

Tell me how you want to notification to be I can put the number before the name if that makes it easier?

At this moment the notification looks like this: Nieuwe boeking op > Name customer > Phone number > Employee name > Booking hours > ... ,,, ,,,

I can switch the name that the phone number comes first.
 

Jacob L

Moderator (Lawsonator)
after the OP is the customers name, that name (ere) is just filled in by me just to make a quick test for the notification.

Tell me how you want to notification to be I can put the number before the name if that makes it easier?

At this moment the notification looks like this: Nieuwe boeking op > Name customer > Phone number > Employee name > Booking hours > ... ,,, ,,,

I can switch the name that the phone number comes first.
So it would be Nieuwe boeking op Jacob +4400000 ename 1 Duur?
 

Jacob L

Moderator (Lawsonator)
Perhaps if I was better at Regex, it wouldn't be an issue but if you can get Nieuwe boeking op number for now. Lets get the number extracted properly before I work on the other stuff, I know I've got them wrong
 

RunoD

Member
I changed it: check printscreen
 

Attachments

  • Scherm­afbeelding 2024-11-29 om 23.18.04.png
    Scherm­afbeelding 2024-11-29 om 23.18.04.png
    143.2 KB · Views: 1
  • Scherm­afbeelding 2024-11-29 om 23.18.14.png
    Scherm­afbeelding 2024-11-29 om 23.18.14.png
    130.6 KB · Views: 1

Jacob L

Moderator (Lawsonator)
I've slightly modified the macro category if you can import it again? There's a new log entry action. If you press the User log once the macro has completed, you can then see the number that's extracted
 

Attachments

  • Aaa.category
    10.6 KB · Views: 1

RunoD

Member
No, it picked again a random number in the send message to list.

Here is log and printscreen.

HAHA wait what the hell, it now just fill's a random phone number in whatsapp send section that has been never contact with my phone tries to send the whatsapp message to that number dont sends it and goes back to macro. (so the same happends stil but this time the number is just a random number)
 

Attachments

  • WhatsApp Image 2024-11-29 at 23.47.37.jpeg
    WhatsApp Image 2024-11-29 at 23.47.37.jpeg
    99.9 KB · Views: 4
  • WhatsApp Image 2024-11-29 at 23.48.53.jpeg
    WhatsApp Image 2024-11-29 at 23.48.53.jpeg
    109.5 KB · Views: 4
  • WhatsApp Image 2024-11-29 at 23.56.54.jpeg
    WhatsApp Image 2024-11-29 at 23.56.54.jpeg
    96.7 KB · Views: 4
Last edited:

Jacob L

Moderator (Lawsonator)
MacroDroid has a user log from it's home screen, I put the number that the macro sees in there. Does it show anything?
 
Top