conscious-sapphire•17mo ago
Preview VS Run a test : Different results
Hey guys
How can you explain why using the 'Preview' function in the Capture+SetAI+IF component gives me different results compared to when I run a test?
any advice ?
5 Replies
The difference you're experiencing between the 'Preview' function and 'Run a test' is due to how these two functions operate in Voiceflow.
The 'Preview' function is designed to give you a quick glimpse of how your step or block will behave in isolation. It doesn't take into account the context of the conversation or any memory from previous turns. This is particularly useful when you want to quickly check the functionality of a specific step or block without running the entire flow.
On the other hand, 'Run a test' is designed to simulate the entire conversation flow. It takes into account the context of the conversation, including any memory from previous turns. This is why you might see different results when using 'Run a test' compared to 'Preview'.
For example, if you're using the 'Capture+SetAI+IF' component, the 'Preview' function will only show the output based on the specific prompt you provide. However, when you 'Run a test', the output will be influenced by the previous 10 turns in the conversation if you're using the 'Use Memory and Prompt' or 'Use Memory only' options.
To get the most accurate results, it's recommended to use the 'Run a test' function, as it provides a more comprehensive view of how your assistant will behave in a real conversation.
conscious-sapphireOP•17mo ago
would you advice to turn off "'Use Memory and Prompt'" ?
adverse-sapphire•17mo ago
It depends on what you want the experience for the user to be. Generally, you should likely run a test because it will give you a full sense of how the assistant will respond to the user. If you just do a preview of the blocks, you may only be seeing a preview of the response without the prior context. If you don't want the context to be referenced, then yes you could turn off the Use Memory and Prompt and just use the Prompt.
conscious-sapphireOP•17mo ago
how to turn it off ?
adverse-sapphire•17mo ago
Toggle the prompt setting to "Set variable using prompt" instead of "Set variable using memory and prompt"
