Magneto
How your chatbot can connect with WordPress? Let's find out
Create default.xml at app\code[Vendor][Module]\view\frontend\layout
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<head>
<link src="[Vendor]_[Module]::js/js_fileName.js"/>
</head>
</page>
Create or place js file at app\code[Vendor][Module]\view\frontend\web\js[filename].js
Run setup upgrade and setup:static-content:deploy command
Last updated