Change the entry message in the knowledge agent
# 🤝help
r
I want to transform a user's statement into a question when using an AI function. Ex: User types: "I want the offer of 100 reais." I want to change it to something like: "What is the offer of 100 reais?" I tried to change it by creating a code with the variable
event.state.session.lastMessages
, but at that moment the bot has already answered the question "I want the offer of 100 reais". How can I make this change?
b
what you want to do is turn the user's input into a question
you can use the capture card to save the input, then use an AI task to convert that to a question
then you can pass that question to your knowledge agent using the manual "Query knowledge bases" card, available through the card tray
r
Thank you so much!
b
\o/
2 Views