Voiceflow PartnersVPVoiceflow Partners
Powered by
hidden-sapphireH
Voiceflow Partners•2y ago•
6 replies
hidden-sapphire

Failed to load stylesheet

Hey guys, i'm really struggling with the changing the widget UI with a stylesheet.
If anyone could quickly review what i did and find what i did wrong, i'll be grateful.

This is my code snippet:

<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: '662154c2b58990e271028912' },
url: 'https://general-runtime.voiceflow.com',
versionID: 'production',
assistant: {
stylesheet: "https://raw.githubusercontent.com/OmriT123/RTL/main/stylesheet.css"
}
});
}
v.src = "https://cdn.voiceflow.com/widget/bundle.mjs";
v.type = "text/javascript";
s.parentNode.insertBefore(v, s);
})(document, 'script');
</script>

Basically, the stylesheet suppose to make the widget RTL, so this is the raw stylesheet content:

.vfrc-chat--dialog {
direction: rtl !important;
text-align: right !important;
}
.vfrc-message {
direction: rtl !important;
text-align: right !important;
}
.vfrc-user-response .vfrc-message {
direction: rtl !important;
text-align: right !important;
}
.vfrc-input input[type="text"] {
direction: rtl !important;
text-align: right !important;
}
.vfrc-input input[type="text"]::placeholder {
direction: rtl !important;
text-align: right !important;
content: 'תשאלי כל דבר';
}

It's not working. You can see the console message: "Failed to load stylesheet" in the attached image.

What am i missing? Do i have to use Base64 string?

Would really appreciate any help.
Thanks ❤️
Failed_to_load_stylesheet.png
Voiceflow Partners banner
Voiceflow PartnersJoin
Exclusive community for Voiceflow Solutions Providers & Content Creators.
13,076Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?
Recent Announcements
jacklyn

# Let your agents search the web 🔎 Hey everyone! We just released the web search tool for the agent step! Your agents can now automatically search the web for information, letting your agent supplement the LLM's knowledge and the data in its knowledge base with live, up-to-date information. Plus.... * You can restrict searches to specific domains, so your agent only searches sites that you own * This is a tool, so you remain in control of when the agent searches the web * Results are automatically summarized in a way that your agent can automatically understand Under the hood, we're using OpenAI's web search API. Give it a try, and let us know what you think! https://docs.voiceflow.com/changelog/native-web-search-tool

jacklyn · 4mo ago

jacklyn

jacklynbiggin's Thread

jacklyn · 4mo ago

hurt-tomato

connor_maclean's Thread

hurt-tomato · 4mo ago

Similar Threads

hosting css stylesheet and modified react-chat library
Tico | Voiceflow AssistantTTico | Voiceflow Assistant / ❓┃ask-a-question
2y ago
failed to validate meta webhook
awake-maroonAawake-maroon / ❓┃ask-a-question
3y ago
Bot load problem
urgent-maroonUurgent-maroon / ❓┃ask-a-question
2y ago
API call failed
hrubasekHhrubasek / ❓┃ask-a-question
8mo ago