https://discord.gg/botpress logo
#🤝help
Ai Translator
# 🤝help
c

clean-photographer-30160

02/14/2024, 5:46 PM
Hello, how are you? I want to make this bot as natural as possible, which includes not needing to use multichoice. So I'm facing this dilemma: I used an AI transition so that depending on the user's need, it chooses a flow. For example, users here in my country are generally not very friendly, so they might say something like, "Hello, I'm interested in the iPhone 13 Pro Max." The chatbot with the AI translator has the ability to detect which option it is, but I would like it to save the result in a variable, in this case, "iPhone 13 Pro Max," and then search for that variable in the knowledge base and give a response to the user. Does anyone have any ideas on how I could do this?
h

hallowed-lizard-35251

02/14/2024, 6:05 PM
"Hello, I'm interested in the iPhone 13 Pro Max." - save this input to a variable (you'd be doing that for the AI transition anyway) After it has transitioned, use a Query Knowledge Base card and give it that variable along with instructions such as "Provide information such as X, Y and Z about the product mentioned in this variable". Then send the result to the user using a text card.