2024-07-19 20:21:07 -07:00
..
2024-07-19 20:21:07 -07:00
2024-07-19 20:14:52 -07:00
2024-07-19 20:14:52 -07:00
2024-07-19 20:14:52 -07:00
2024-07-19 20:14:52 -07:00
2024-07-19 20:14:52 -07:00
2024-07-19 20:14:52 -07:00
2024-07-19 20:21:07 -07:00
2024-07-19 20:14:52 -07:00
2024-07-19 20:14:52 -07: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.