As a JavaScript File
As a React Component (via npm)
Using simple js script (recommended)
- Download the latest build from GitHub and extract the zip file.
-
Include the provided JavaScript file in the head of your document (use
http://localhost:8888/pilot.jsfor local setup). -
Init the copilot (when document fully loads) by calling the
initAiCoPilotfunction and passing the required options.
As a React Component
-
Install the widget from npm.
- npm
- yarn
- pnpm
- Use the Component inside your application
Options
Available options
FAQ
The copilot widget is not showing up
The copilot widget is not showing up
Make sure that the
triggerSelector is correct and the element exists in
the dom,instead you can set defaultOpen to true to make the copilot open by default.
if that did not work, please open an issue on our GitHub repoThe copilot widget is so small
The copilot widget is so small
The copilot widget is responsive and it’s width is set to 100% by default of the container, you can change that by passing the
containerProps option and setting the width to whatever you want.
