I'm trying to create a bot that should allow this kind of interaction:
(U = user, B = bot)
Case A:
- U: Create a new
XXX
analysis - B: Got it! Let's create a new
XXX
analysis - B: What's your first name?
- U: Joe Doe
- B: etc, etc...
Case B:
- U: Create a new
YYY
analysis - B: Got it! Let's create a new
YYY
analysis - B: What's your favourite color?
- U: Red
- B: etc, etc...
So, I need to trigger a different question depending by what the user told me in the first interaction.
Right now I properly get the type of analysis (XXX or YYY), but I can't figure out how to trigger a different follow-up intent depending by the type value.
What's the proper way to do it?
I was counting to write the bot using Node.js so if the answer requires to write a backend please I'd like to get referenced to the Node.js docs and resources.