Skip to main content
the chat widget enables you to interact with the Copilot from your dashboard and see the changes in realtime. OpenCopilot is a react web app that you can embed in your app. there are several ways you can integrate the Copilot Chat widget into your application/webpage

As a JavaScript File

As a React Component (via npm)

  1. Download the latest build from GitHub and extract the zip file.
  2. Include the provided JavaScript file in the head of your document (use http://localhost:8888/pilot.js for local setup).
  3. Init the copilot (when document fully loads) by calling the initAiCoPilot function and passing the required options.

As a React Component

  1. Install the widget from npm.
  2. Use the Component inside your application

Options

Options
Object

Available options

FAQ

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 repo
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.