Send a random picture from a file

20 views
Skip to first unread message

adri...@gmail.com

unread,
Mar 29, 2018, 3:21:40 PM3/29/18
to Automate
Hello,
I want to creat a little flow in order to send a random picture from a file when someone text me "sendpic".

1) Flow beginning
2) SMS received
3) message = "sendpic"
4) Send MMS to phone

What can I write in "ATTACHMENT" in the 4) ?

Thank you

Adrien

Henrik "The Developer" Lindqvist

unread,
Mar 29, 2018, 8:37:59 PM3/29/18
to Automate
It depends on the file names the pictures.
If you have a directory with pictures, use the File list block to get a list of them, then use the shuffle function, e.g.
shuffle(files)[0]
Reply all
Reply to author
Forward
0 new messages