Is there a way I can store user data into a variable

Is there a way I can store user data into a variable and then later on the filter it from the database and pass it to the user. Eg: User will ask “Show me the sales of 2018” and I will store this text from user to a variable then extract the digits and filter it in SQL database and show the answer to the user

you can use slots to store value, follow this link:

I’m still not getting it do you have any doc or sample codes except this ?

He posted a doc with sample code.

who he

Thanks a lot for the help.

Thanks a lot for the help