Joe Valley
Joe Valley2mo ago

Publishing changes to agent not reflecting in staging/production

I can easily see my changes when I "run" the agent on the voiceflow builder screen. I can also see the changes in the "share prototype" feature. But the changes seem not to reflect on our staging site. Also the link we have used in our flow doesn't work on staging. If I paste the code snippet into Console in inspect element it also doesn't work. However, it works in the "share prototype" feature. What could be happening?
2 Replies
Tico | Voiceflow Assistant
Here’s what’s most likely going on: 1. Development vs Production versions • When you click Run or open the Share → Prototype link you are talking to the development version of your agent – the one that is re-compiled every time you hit the blue Run button. • Your web-site snippet, however, usually loads
window.voiceflow.chat.load({
verify: { projectID: '…' },
url: 'https://general-runtime.voiceflow.com',
versionID: 'production' // <- this is the live prod version
});
window.voiceflow.chat.load({
verify: { projectID: '…' },
url: 'https://general-runtime.voiceflow.com',
versionID: 'production' // <- this is the live prod version
});
That means the widget only shows the last published production release. Until you click the green Publish button in the top-right of the canvas (and pick “production” in the dialog) none of your new changes will be returned to the site. ➜ Publish a new version, or temporarily change versionID to 'development' (or to the exact releaseID you want) while you test. 2. Approved-domain whitelist • If the snippet doesn’t load at all on your staging URL, open Integrations → Web Chat → Approved Domains and make sure the full staging domain (e.g. https://staging.yoursite.com) is listed. If the domain isn’t whitelisted the widget will refuse to render, even though the prototype link works. After you either (a) publish or (b) point the snippet at the development version ‑ and confirm your staging URL is on the approved-domain list – refresh the page and you should see the latest flow plus working links. Docs for reference: • Publishing agents: https://docs.voiceflow.com/docs/publishing-agents-to-production • Web-chat snippet & versionID: https://docs.voiceflow.com/docs/embed-and-customize-styling
Joe Valley
Joe ValleyOP2mo ago
I think we have figured out why the link doesn't work. The link is displayed to users at the same moment the chat ends. When the chat ends, then the link no longer works. ISSUE RESOLVED

Did you find this page helpful?