mirror of
https://github.com/onyx-dot-app/onyx.git
synced 2026-10-22 11:22:49 -05:00
This is a code example for how you can use Danswer's APIs to build a chat bot widget for a website! The main code to look at can be found in src/app/widget/Widget.tsx.
If you want to get fancier, then take a peek at the Chat implementation within Danswer itself here.
Getting Started
First, install the requirements:
npm i
Then run the development server:
npm run dev
Open http://localhost:3000 with your browser to see the result.