The inject script is the only file users add as a script in their website, and its purpose is to load all the required packages to start the webchat.
- Messaging must be running:
cd ../server && yarn start
- Type
yarn
&&yarn build
- Type
yarn serve
then open the URL in your browser
- Edit
packages/studio-ui/src/web/index.html
and change<script src="https://cdn.botpress.dev/webchat/v1/inject.js"></script>
to<script src="http://localhost:3700/inject.js"></script>
- Edit
packages/studio-ui/src/web/components/Emulator/EmbeddedWebchat.tsx
and changehostUrl: 'https://cdn.botpress.dev/webchat/v1'
tohostUrl: 'http://localhost:3700'