Algorithm so that user doesn't watch a content he has already seen before

Hi everyone,

I’m building a TikTok like with bubble.

I’d like when my users are binge watching content, to not see a content they have already seen in the past.

Ex :

  • My app has 3 videos : A, B, C
  • User sees video A → hence only videos he can see next are either B or C

How would you do it on bubble ?

Thanks!

Create a list on User in the database and add each UID of the videos he clicks on to watch there. Then add conditionals where if this videos uid is in current users list of video uids then make invisible or something

Thanks for feedback.

I forgot to mention that actually right now the video displayed in feed (TikTok like) is via random:

“Search for Video random:item”

I’m glad with this but I’d also like that the user doesn’t see a video he has already seen before.

So what I’d like is this :

  • Each time user sees a video :
    add uid in User’s data “already seen video”

  • Video to display :
    Search for Video random:item where UID not in User’s “already seen” video

Would that work ?

This is what I did for now :

  1. Added “watched_videos” on Users table

  2. Made a rule to add in “watched_videos” the ID of video when user plays it

  1. Regarding the rule to display a random video → I want it to also exclude all videos the user has already watched. Does anyone know how I can do this ?

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