Hi All!
I want do demonstrate different phrases to user after actions in app.
So i generate few variants of short phrases with Ai and make separate table with them.
But how to randomize choise of row to show notification?
what i did looks for me not so best solution. Maybe i can have good advise.
Here is my solution:
I add table with columns - “phrase” and “nr” with 60 variants of fhrases and numbers 0-59
In user table i add columns:
"current second" - math column with formula Second(now)
so it shows different values from 0 to 59 each second.
rel_Phrase - relation “current second” → “nr” from phrases table (1 value)
lookup_phrase - lookup from rel_Phrase which gives different text each second.
And so in all action workflows i add action “show notification” from user profile column lookup_phrase.
Now any time users do actions they receive different variants of praise phrases.