https://discord.gg/botpress logo
#🌎general
Title
# 🌎general
m

millions-motorcycle-83398

07/04/2023, 4:22 PM
is it just execute code workflow.MyVariable == "quote" (if a user's intent was to get a quote for example)
e

early-train-33247

07/06/2023, 6:48 PM
Hey @millions-motorcycle-83398, the best way to manage user intent is by creating actual Intent cards
First you create an Intent card, and add some training phrases
Then you add the actual transitions
m

millions-motorcycle-83398

07/06/2023, 6:51 PM
yep, I was just wondering if you were able to assign a variable once the users intent is figured out
Sort of like you can for single choice where you choose a variable to assign
Didn’t know if you code do something similar but in an execute code
e

early-train-33247

07/06/2023, 6:52 PM
Sure, you would need a execute card
In the first node where you are certain of the intent
Make sure to create that variable first
m

millions-motorcycle-83398

07/06/2023, 6:53 PM
Gotcha thank ya!
e

early-train-33247

07/06/2023, 6:53 PM
Anytime!