Need help rewrite Velo code to embed Voiceflow to an element

I’m attempting to use the embed method for putting a Voiceflow webchat into a container on a Wix web page, instead of the bottom-right icon method

This method is described here: Embed and customize styling
and shown here: https://youtu.be/2gy-0HURFI0?si=sD2sliHF-B4eaCeN

The code provided by Voiceflow makes use of the “window” and “document” objects, which as I understand cannot be directly accessed by Velo custom code.

Would anyone be able to show me how the Voiceflow embed code should be re-written using Velo $w code, to get this embed to work? We are using Wix Studio.

I’m evaluating Voiceflow so very much want to know if this is even possible on Wix.

Happy to work with a developer as a short paid $ engagement if can show this is capable of being done.

Hi, Matthew_Boettcher !!

Currently, using custom elements is the most flexible method to utilize window or document on Wix. However, it does require some practice. To start, you might want to try embedding it into your Wix site using an iframe element. I’m not very familiar with Voiceflow, but if its functionality requires access to media devices like a microphone, it’s generally difficult to achieve this with an iframe. In that case, implementing it with a custom element would be a better choice.