You need a published agent and its Embed code from Agent โ Deploy โ Website widget. Custom code on Wix needs a premium plan and a connected domain.
<script src="https://evasay.com/voice-widget.js" data-agent="AGENT_SLUG" async></script>
The button appears on the published site, not in the editor's preview.
Under Agent โ Deploy โ Allowed websites, add your domain, for example https://www.example.com. Then your page can pass values and functions to the agent.