jolly-crimson
jolly-crimson3mo ago

URL fail

Why does this happen on halv of the website, there are nothing wrong with the URL’s and it’s build with Shopify?
No description
2 Replies
Tico | Voiceflow Assistant
Hi there! A “URL fail” / blank widget on some Shopify pages is usually caused by the Voiceflow web-chat script not being able to reach (or be authorised by) your agent’s runtime. Please run through these quick checks: 1️⃣ Privacy toggle
• Open your agent in Voiceflow → Settings → Danger Zone.
• If “Private agent” is ON the runtime will return 401 Unauthorized and the widget will show an error on any page that doesn’t include your API-key. Switch it OFF to make the agent public. 2️⃣ One copy of the embed snippet across every page
• Add the full <script …> snippet to theme.liquid (or use a Theme-App block) so all templates inherit it.
• Pages that use a different layout file can miss the script, which looks like the URL can’t be found.
<script type="text/javascript">
(function (d, t) {
var v = d.createElement(t), s = d.getElementsByTagName(t)[0];
v.onload = function () {
window.voiceflow.chat.load({
verify: { projectID: 'YOUR_PROJECT_ID' },
url: 'https://general-runtime.voiceflow.com',
versionID: 'production'
});
}
v.src = 'https://cdn.voiceflow.com/widget/bundle.mjs';
v.type = 'text/javascript';
s.parentNode.insertBefore(v, s);
})(document, 'script');
</script>
<script type="text/javascript">
(function (d, t) {
var v = d.createElement(t), s = d.getElementsByTagName(t)[0];
v.onload = function () {
window.voiceflow.chat.load({
verify: { projectID: 'YOUR_PROJECT_ID' },
url: 'https://general-runtime.voiceflow.com',
versionID: 'production'
});
}
v.src = 'https://cdn.voiceflow.com/widget/bundle.mjs';
v.type = 'text/javascript';
s.parentNode.insertBefore(v, s);
})(document, 'script');
</script>
3️⃣ Version / runtime values
• Make sure versionID is set to production (or development while testing) and that you’ve clicked Run after your last change.
• Keep the default runtime URL unless you’re on a Voiceflow Private-Cloud instance. 4️⃣ Browser console
Open DevTools → Console/Network on a failing page. If you see a 401 – Unauthorized JSON response such as {"code":401,"status":"Unauthorized","data":"no access to project"}, it confirms point 1. After these steps the widget should load on every Shopify URL. If it’s still intermittent, grab the exact console error message and we can dig in further. Docs: https://docs.voiceflow.com/docs/chat-widget
jolly-crimson
jolly-crimsonOP3mo ago
No voiceflow wont process my url’s

Did you find this page helpful?