What I’m trying to achieve:
- A user selects one or more inputs from an option set and this is saved to their profile as a list when they sign up (this happen for 3 lists: interests, categories, languages)
- Then I want this user to be matched with all existing users within a certain group ( =registered for same event)
- If there is a match then create a Match in the database with the matched users and their shared (intersected) items from each respective list.
How I’ve set it up (in a way that’s apparently not working):
- Trigger: when new user signs up to event X (sign up process includes saving their interests/categories/languages to the database) → this works
- Action: Schedule API workflow on a list (1st image) → this starts,
- API endpoint triggered (2nd image) → this starts
- Action: Create matches → 3 matches are created, but that should be 2, as the current user shouldn’t match with themselves. But the matches are empty apart from the event_id.
Above: I am assuming that “this user” refers to each user on the list of “do a search for users” and “current user” refers to the user whose signup triggered this workflow.
Datatypes and fields relevant for this question:
The datatype Attendees has the following fields:
- Name
- Interest (list) - multiselect from static option set list
- Category (list) - multiselect from static option set list
- Event (list: as they can attend more than one event)
- Language (list) - multiselect from static option set list
The datatype Events has the following fields:
- Event date
- Name
The datatype Matches has the following fields:
- Attendee 1 (current user)
- Attendee 2 (this user)
- Matched category (list)
- Matched interest (list)
- Matched language (list)
- Match strength
- Event
I’m a bit lost on how to set this up exactly, also because my experience with backend APIs is fairly limited. I’ve watched over a dozen videos on YT and I’ve scoured the Bubble Forum for a possible answer, but I haven’t found it so far.
Thanks