Rating bot with database

(Valentin Roschin Kulakov) #1

Hello,
I’m wondering if I can build a bot with FlowXO that does the following:

  1. Welcome message
  2. Ask for ID
  3. User submits an ID (text)
  4. Check if ID exists. If it does, send existing data (number of likes or dislikes, associated user comments) on it to user and go to next step. If doesn’t exist, check if this ID matches a pattern (has a specific character length and combination of letters and numbers), create a new entry on it and go to next step.
  5. Ask to rate this ID (two buttons - like or dislike).
  6. Update an entry by adding +1 like or dislike to it as an attribute.
  7. Ask for other actions (e.g. add comment to this ID).
  8. User adds comment, it gets linked to ID the same way as likes and dislikes.

If not only FlowXO is needed to make this happen, please share your ideas. Thanks.

(Kellsey Shaw) #2

Hi there,

You can use the Bot > Ask a Question to collect data from users and we have filters to allow you to decide if certain tasks should be carried out or not.

We also have validation for answers to questions and you can use the Regex option to set your own pattern to be matched. You can easily increment values using our Number service but you can also use our Attributes to store short pieces of information.

You can send shortcuts along with messages to send buttons to the user for them to start other processes.

:slight_smile: