msampino
msampino8h ago

Development environment not updating in embeds, but its updated in voiceflow.

My embedded chatbots are using outdated prompts. It is embedded as development
1 Reply
Tico | Voiceflow Assistant
Why the widget looks stale & how to refresh it 1. Compile your development build after every canvas change. • On the canvas click the blue Run ▶ button (or press R). • If you edited intents/entities also hit Train Assistant in the Prototype tab. This step pushes the new diagram + NLU model to the development runtime that the web-chat widget calls. Without it the widget keeps serving the last compiled version. 2. Confirm the embed is really pointing at the dev stream.
window.voiceflow.chat.load({
verify: { projectID: 'YOUR_PROJECT_ID' },
url: 'https://general-runtime.voiceflow.com', // default runtime
versionID: 'development' // must be "development"
});
window.voiceflow.chat.load({
verify: { projectID: 'YOUR_PROJECT_ID' },
url: 'https://general-runtime.voiceflow.com', // default runtime
versionID: 'development' // must be "development"
});
If versionID is omitted or set to production the widget will show the production build, which only updates after you click Publish. 3. Hard-refresh / clear cache if the browser has cached the script, then start a new chat; messages already in the thread were generated with the previous build. Following the two buttons (Run + Train) and ensuring the snippet above points at development will make every new conversation use the latest prompts you see inside Voiceflow. Docs for reference: • Updating a development version: https://docs.voiceflow.com/docs/dm-api-updating#development • Setting versionID in the web-chat widget: https://docs.voiceflow.com/docs/chat-widget#setting-the-version-and-runtime-url
Voiceflow
Web chat widget
Add your agent to your website in minutes.

Did you find this page helpful?