mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-03-19 14:22:10 +01: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.