xenophobic-harlequin•2y ago
KB Memory
Hi I remember when i began using voiceflow that it automatically saved utterances for the previous 10 instances. Is that still the case if i use it with the KB Ai step ?
If not how can i create a chatgpt like experience with the KB and limit the memory with a no match.
My flow is pretty complicated with an intent classifier set ai step first then sends the question KB after the condition is met. How do i include a memory loop . I have looped back the flow for every question to the intent classification step
5 Replies
Yes, Voiceflow does automatically save the previous 10 turns of the conversation when you use the Memory option in your AI Steps. This feature is available for both Set AI and Response AI steps. It allows your Assistant to understand the full context of the conversation leading up to that point, which can make your Assistant's responses more dynamic and conversational.
However, please note that when you test your prompt using the Preview button in the Editor, this will not include any Memory. To test the function of your Set AI or Response AI Steps using a Memory option, you will need to run a conversation in the Test Tool.
As for creating a chatbot-like experience with the Knowledge Base (KB) and limiting the memory with a no match, you can do this by using the Response AI step with Memory. A question and answer when using the Response AI step with Memory will use anywhere from 150-2000 tokens. Voiceflow saves the last 3 conversation turns and passes those to your AI model to provide context for your answer.
In your flow, if you have an intent classifier Set AI step first, then send the question to KB after the condition is met, you can include a memory loop by looping back the flow for every question to the intent classification step. This will allow your Assistant to remember the context of the previous interactions and provide more relevant responses.
Please note that all these features are still experimental and may not be recommended for serious production use cases. Also, token limits are subject to change as AI Assistants are currently in Beta.
xenophobic-harlequinOP•2y ago
@Tico | Voiceflow Assistant how do create memory with the Knowledge Base AI step?
The {vf_memory} variable is automatically populated with agent and user responses.
xenophobic-harlequinOP•2y ago
Thanks alot @NiKo | Voiceflow . Is there a cap on that variable in terms of characters ?
We keep only the last 10 user inputs and agent response.