Skip to content

Latest commit

 

History

History
 
 

widget

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.