Hi Guys,
I had a question around how I could set up backend workflows to match users based on a couple of conditions.
My app (a debating app) currently collects users’ survey data and place each of their answers into the database as a thing ‘Answer’. Below is an example of the answers belonging to user X (forgive my formatting )
Step 1. I want a backend workflow to place user X in a chat with user Y at a specific time of the day. User Y can be any user that:
-
Has filled out the survey (I could use answer count > 0 here)
-
**Has an answer that directly opposes an answer that user X has. For example, User Y should Strongly Agree with the question Sport 3 (it can be any question they have both answered). Bubble then uses the selected ‘Trigger Question’ for Step 2 below **
Step 2. If the random selection was based on Sport 3, the final step would be to push one of a list of specific ‘Sport 3’ news stories to that conversation.
The second condition of Step 1 (text in bold) is turning out to be quite difficult for me, so any help on it would be much appreciated.
Also, is there any way to fetch (Step 2) news stories using an API, so that I don’t have to manually update the database of available news stories that my workflow picks from?
Many thanks in advance!
Sam