How to Find a Random Open Chat Room

I’m trying to make it so that when you press a button in my web app, a person is sent to a random room where they will chat (messaging) 1 on 1 with another person. Here’s what my workflow looks like for when they press the button:


I was trying to add the current user to a chat room “only when” the room has 0 or 1 people in it. Is that the correct way of doing it? If so, I can’t really figure out how to do that, there aren’t really options for it. Here’s what happens when I press the more button that you see above:

Any help would be appreciated (and if you do 1 on 1s, even better)!

You’ll want to add constraints to your “Search for chats” to indicate that Users in the Chat </= 1, and then use a :first item is not empty operator to round the expression out. :slight_smile:

Hey Eve,

What do you mean by “and then use a :first item is not empty operator to round the expression out”? So far I’ve added the constraint like you said:

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