I'm still not understanding, why not have a single...
# 🌎general
q
I'm still not understanding, why not have a single choice capture and flow out of the options?
e
Hey let's talk here
q
ok, sorry for the spam haha
e
No problem!
q
So are we capturing multiple variable values in one go?
e
You would have a Raw Input to extract the intent, then after sorting the intent you would transition to a flight-booking node, where you would ask for more information
And you can have an AI Task before asking again, that analyses the input to see if the user has answered the questions already, and if so, set the variables you are going to prompt
Yes!
Here's an outline for you:
q
Ok, so i would need to check if those values have been filled out before continuing (which i could check in an execute or something)
e
Yes! I would use an ai task to be sure
1. Add Intent transitions in the first node for all the possible actions the user might take 2. Add nodes/workflows for each action 3. In the specific node/workflow, add an AI Task that analyses the user message to extract certain values. The input for the ai task will look like:
User input: {{event.preview}}
4. Add the desired variables (like flightNumber as output in the task) 5. Create a capture card for all the information you need and that the user might not have mentioned yet and enable the "Skip if already filled" option
Then you are good to go!
q
Hmm, so now i'm not sure again haha. Isn't the AI task just looking directly at the history to find the variable. In which case, why do we need entities?
don't i just need a variable and ask the AI to try to find the value of that variable in the past message?
from the documentation, it almost seems like you're able to assign an entity to an intent. "The place-order intent contains the following entities". How do we do this?
e
The AI task has no access to the history unless you add it as an input
You don't need entities haha
I think mey are saying entities but not referring to the actual Entity variable type
q
Oh, I mean the entity that's in the library. It seems you can write multiple synonyms for the same word
Ok I think I get it. You assign a raw input capture to a variable of type entity, you define the entity for all possible options and give synonyms so that answers will be filtered down to a few options instead of way too much. The only thing I don't get is why this is related to intent.
Ok, i did more testing but there seems to be a bug:
I'll add to the help section
e
I can help you out there no problem, give me a bit
Out here*
Hey @quick-sunset-51605 what are you trying to achieve again, please?
q
Hey @early-train-33247, with my current understanding of entities, which if I've got wrong please let me know, I should be able to write it synonyms for something and if a user enters a synonym, botpress will replace with the original synonym. In my example, I set Toronto as a synonym for Montreal. Then I said Toronto as the use and botpress changed it to new york
e
I have answered in that post! 😉