Prototype link doesn't work

Hello, I’d like to share a prototype link for one of my chatbots so the client can test it. I tested it myself first, then shared the link with a colleague for a second check. However, the chatbot reused my session, so my colleague saw the same state—for example, a product I had added to the basket was still there during his test. It shouldn't be there as he should use a new session. Later, I tested another chatbot for a different client in a completely different industry, and it also showed the same product in the basket from the first test. When testing the chatbot using Run option on workflows, it works correctly. But when I open it via the link this issue appears. I need help resolving this issue, as I can’t send prototype links to clients if the chatbots keep sharing session data.
1 Reply
Tico | Voiceflow Assistant
Hey there! What you’re seeing is expected behaviour of Voiceflow’s shareable prototypes: • The prototype loads our web-chat widget with chat persistence set to “localStorage” (the default).
• A single conversation record is therefore cached in the browser’s localStorage and will be re-used every time any Voiceflow prototype is opened from that same browser/profile – even across different projects – until that storage is cleared.
Because of that, the basket item you added stayed in localStorage and reappeared for your colleague (or for yourself in the second prototype) when the link was opened on the same device/profile. How to test with a clean session 1. Open the prototype in an incognito/private window, or
2. Clear the localStorage for the share.voiceflow.com (or vf-cdn) domain before opening the link, or
3. Use a different browser profile/device. Limits to be aware of – At the moment the persistence setting cannot be changed for the hosted prototype link; it is always localStorage.
– If you embed the assistant on your own site you can override this by adding the persistence option in the snippet:
window.voiceflow.chat.load({
verify: { projectID: 'your-project-id' },
url: 'https://general-runtime.voiceflow.com',
versionID: 'production',
assistant: { persistence: 'memory' } // or 'sessionStorage'
});
window.voiceflow.chat.load({
verify: { projectID: 'your-project-id' },
url: 'https://general-runtime.voiceflow.com',
versionID: 'production',
assistant: { persistence: 'memory' } // or 'sessionStorage'
});
(This will give every page load a fresh conversation.) So for client testing with the share link today, the easiest approach is to ask each tester to open it in a private/incognito window so they always start with a brand-new session. More on chat persistence: https://docs.voiceflow.com (see “Chat persistence”).
Voiceflow
Welcome to Voiceflow's docs
Build, manage, and deliver chat and voice agents for customer support and beyond.

Did you find this page helpful?