https://discord.gg/botpress logo
Bot takes wrong input
# 🤝help
j
I have a question and I am trying to solve from the past 7 days but I didn't, my issue with bot is I have put greeting when conversation start and then raw input card where I ask user name but 20% user directly ask the question but the bot take user name as a input and didn't answer that query but my objective is to take user name but if user directly ask the query it should be answer and then ask for a name . amd this is connected with Autonomous node
l
You should get rid of the greeting card and the raw input and improve your prompt to solve this for you ##Greeting Ask: Start by greeting the user and ask for their name -> if the user responds with name store the name in {{user.name}} -> if the user responds with a query, answer the query before you ask for their name, store the name in {{user.name}} **assuming your variable to store name is user.name and +rw is enabled for this variable
if you wish to do with outside of Autonomous node then after the raw input should be parsed by an AI task to determine if the user entered their name or asked a query
j
It's not working
l
Can you share your prompt
2 Views