Matching lists with a scheduled API workflow on a list

What I’m trying to achieve:

  1. 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)
  2. Then I want this user to be matched with all existing users within a certain group ( =registered for same event)
  3. 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):

  1. Trigger: when new user signs up to event X (sign up process includes saving their interests/categories/languages to the database) → this works
  2. Action: Schedule API workflow on a list (1st image) → this starts,
  3. API endpoint triggered (2nd image) → this starts
  4. 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:

  1. Name
  2. Email
  3. Interest (list) - multiselect from static option set list
  4. Category (list) - multiselect from static option set list
  5. Event (list: as they can attend more than one event)
  6. Language (list) - multiselect from static option set list

The datatype Events has the following fields:

  1. Event date
  2. Name

The datatype Matches has the following fields:

  1. Attendee 1 (current user)
  2. Attendee 2 (this user)
  3. Matched category (list)
  4. Matched interest (list)
  5. Matched language (list)
  6. Match strength
  7. 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 :slightly_smiling_face: :pray:

After Seach for Users you may useminus item and select current user.
But your workflow will create matches by the number of users attending the event (not just 2 or 3) even if there are no Intersecting categories or interests or languages.

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.