You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on a bot tool that helps people to build a profesional resume. So far I've been succesful to ask the user for basic information (name, contact info, etc.), using the ConversationHandler.
Now, I want the user to be able to select their education level and based on the user input make the bot take different actions. For example:
if user selects College ask just for the college and degree info and store it in context.chat_data. BUT if user selects Masters ask for both, college and masters info to then store it.
It's worth to say that the info i'm looking to store in different variables is:
Degree
Institution
Notable coursework (if any)
Course time period
(So I need the bot to ask fot this info separetly, but correct me if there's a better way).
What I've tried:
Research for Nested Conversation as a possible solution. But maybe in my case, where I need the user to follow a defined chat flow, this won't be the best approach. (Once again, correct me if you see I'm wrong).
Asigned a repetition value to every education level and implemented an internal counter stored in context.chat_data that intended to return to a previuos chat stage if it wasn't met. But it didn't work.
(I leave you here my dummy/test experiment for the second approach)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Context:
I'm working on a bot tool that helps people to build a profesional resume. So far I've been succesful to ask the user for basic information (name, contact info, etc.), using the
ConversationHandler
.Now, I want the user to be able to select their education level and based on the user input make the bot take different actions. For example:
if user selects College ask just for the college and degree info and store it in
context.chat_data
. BUT if user selects Masters ask for both, college and masters info to then store it.It's worth to say that the info i'm looking to store in different variables is:
(So I need the bot to ask fot this info separetly, but correct me if there's a better way).
What I've tried:
context.chat_data
that intended to return to a previuos chat stage if it wasn't met. But it didn't work.(I leave you here my dummy/test experiment for the second approach)
Beta Was this translation helpful? Give feedback.
All reactions