Hi again 🙂
# 🌎general
w
Hi again 🙂 you can use an execute code card with a bit of code
Copy code
const random_index = Math.floor(Math.random() * workflow.options.length)
const random_sentence = workflow.options[random_index]
workflow.random_sentence = random_sentence
something like that
p
Thanks for this! Where would you store the array with the 10 sentences in that case?
you can create a workflow variable that is an array
p
Amazing!
Just tried and it worked
thank you so much!
w
and if your sentences are not willing to change within a conversation,you can setup directly the sentences in it
awesome !