You need a published agent and its Embed code from Agent โ Deploy โ Website widget.
<script src="https://evasay.com/voice-widget.js" data-agent="AGENT_SLUG" async></script>
On WordPress.com, plugins and custom code need a plan that allows them.
If you maintain your own child theme, paste the embed code just before </body> in its footer.php, or add it from functions.php:
add_action('wp_footer', function () {
echo '<script src="https://evasay.com/voice-widget.js" data-agent="AGENT_SLUG" async></script>';
});
A theme update replaces the parent theme's files, so put the code in a child theme or a plugin.
Under Agent โ Deploy โ Allowed websites, add each address your site opens at, for example https://www.example.com and https://example.com. Then your page can pass values and functions to the agent.