Using times collected from users to send messages

(Tom Spence) #1

Hey guys and girls.

Pretty new here and trying to have a play about with chat bots to see what can be done - out of interest more than anything.

One thing I wanted to try is creating a bot to help me eat a bit better.

I want to ask users when they have specific meals and then every day message these users at these times to see what they are eating and give a bit of a helpful prod to make healthier choices.

Is this possible? - if so, any ideas how it could be done best?

Thanks in advance!

(Karen Barker) #2

Hey Tom,

This should be doable. :thought_balloon:

You can use the Bot > Ask a Question feature to take the initial answers off the user - time the eat Breakfast, time they eat lunch, time they eat Dinner.

You may then want to make use of Attributes in order to store the users given times.

Once the user has answered the questions you could use the Flow service to trigger another flow that then can be used to cover sending the messages each day to the user.

You’ll then need to use the Wait feature to delay sending of messages until this time each day. You may however also need the Date and Time service in order to manipulate the users response into the correct format.

I hope this helps - any problems just shout. :slight_smile: