variable-lime•2y ago
UPDATE - You can now access BUILT IN
UPDATE - You can now access BUILT IN MEMORY in Voiceflow!!
You don't have to use
stringify(_memory_)
anymore. Instead you can just use the built in {vf_memory}
variable!
This is available in every project now.
This variable automatically saves the last 10 messages between the user and the assistant (and is constantly being updated throughout the conversation).
You can use this in your prompts to make life much easier 🙂
@everyone10 Replies
sensitive-blue•2y ago
Any questions? Shoot them down below 🙂
conscious-sapphire•2y ago
🔥
optimistic-gold•2y ago
Ah what a gem. That stringify scenario was cool but seesh got tedious and had some problems. GG on this one. Will change a lot of things now. Is it limited to 10? Like hard coded?
sunny-green•2y ago
It works for me only in some cases: If I ask the AI specifically regarding an item in the conversation ("what was your first answer") it works. But if I ask him something where he needs to use the info from the conversation it doesn't. (e.g. I tell him my name and then I ask him what my name is).
Any solutions to this?
crude-lavender•2y ago
What are the difference between using this over turning on "Prompt and memory"? Does prompt and memory also consider the last 10 messages?
sensitive-blue•2y ago
@Jason yea the limit is hard coded at 10, we're looking at making it more modular in the future
Not entirely sure - you'll have to experiment with the best way to include the history in the prompt instructions or system setting.
As long as the information is in the conversation history, it'll be related to how you structure the prompt
Using prompt + memory actually just uses this variable on the backend. Its the same thing
This is more for scenarios where you dont have that option (like when using the KB)
crude-lavender•2y ago
I see. Would be cool to set our own rules in the future regarding the memory variable
sunny-green•2y ago
was able to fix it (at least for the "what is my name example"): If you use the prompt: "Use memory to understand the question"; instead "answer the question using memory" it works.
Thanks
correct-apricot•2y ago
You deleted the {vf_memory} in the video yet the effect still persisted. Do we need to add it for each dialogue point in the flow or not? Thanks.
optimistic-gold•2y ago
That’s pretty cool