stormy-gold
stormy-gold16mo ago

Bolding a variable won't work

When I select a variable in a talk-text box and make it bold, the chat will not display the contents of the variable in a bold font. And sometimes it adds asterisks after the displayed value (if I selected a dot for example too). Is there a way to get around this problem?
2 Replies
Tico | Voiceflow Assistant
In Voiceflow, the markdown syntax is used for formatting text, including making it bold. However, when you try to bold a variable, it might not work as expected. This is because the markdown syntax is processed before the variable substitution. When you put a variable inside the markdown syntax for bold (which is two asterisks or underscores on each side), the markdown processor doesn't recognize it as text to be bolded because at the time of processing, it's just a variable name. The variable substitution happens after this, which is why you see the variable value, but not in bold. Unfortunately, there's currently no direct workaround for this within Voiceflow. The markdown processor and the variable substitution processor would need to be adjusted to handle this scenario. However, you can consider an alternative approach where you control the display of the text on the platform where your voice assistant is deployed. This would involve handling the markdown processing on the platform side after the variable substitution has been done by Voiceflow. Please note that this approach requires a good understanding of the platform where you're deploying your voice assistant and might involve additional programming outside of Voiceflow.

Did you find this page helpful?