Im looking for some advice on user input as a string

Hello,

I’m building a bot that takes a user’s input, generates the query and then accesses the database and returns the results. I’m having success in the way of the bot recognising the intent, and taking the entites out of the tracker building the query and return the results (specific).

However I’d also like to build a query based on a string from the user (general search).

So the conversation will go 1- bot: would you like to do a general search or specific search? 2-user: general search 3-bot: Sure, what would you like to search? 4-user: big red truck 5-bot here are all the results

What I have so far is step 2, the intent for a general search is recognised, and the action_general_ask is triggered. The action utters Sure what you you like to search, then I’m wanting it to wait for user input, and take everything that the user types, and add that to the query. That’s where Im getting stuck. Can I have the bot wait for an input and take it as a string? My thought behind using a string and not a bot_answering intent, is the query could be for anything in any language, so I thought it could be easier just to take exactly what the user writes and add it to the query. I’m looking into using a slot, but so far I can only see that the tracker will only take the last user message, not the next message (could be wrong)

Thank you for your input :slight_smile: Matt

Looking into how to use forms, maybe this is what I’m after.