nursing-limeN
Voiceflow2y ago
3 replies
nursing-lime

Creating Memory for a Bot Referencing a KB

I am making a bot to help customer service agents get information on different products quickly while they are on a call with customers. In order to make the conversation more natural I want to use memory so that the bot knows that if the user asked about the product "Blood Sugar Protector" then the follow up questions would also be about "Blood Sugar Protector"...

For example:

Q: "What is Blood Sugar Protector?"
A: "Blood Sugar Protector is a blood sugar supplement..."

Q: "What ingredients does it contain?"
A: "Blood Sugar Protector contains..."

Q: "What are some benefits?"
A: "Benefits of Blood Sugar Protector include..."

The way I set this up is to set the question i.e. {last_utterance} to a new variable {memory} in one block and then instruct my response AI block to answer {last_utterance} based on the variable {memory} in the next block.

When the user goes to ask a second question I push the bot again to the response AI block hoping that it'll use memory to answer the question without the user needing to specify the product name again. This flow is on a loop so the user can keep asking questions.

This set up has been working for the second question every time but on the third and fourth question the bot sometimes forgets the context and answers the question referencing a different product than what was initially asked in the first question.

Any idea what's going on or how I can trouble shoot this?

Thank you all in advance
Was this page helpful?