Skip to content

Latest commit

 

History

50 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chat-widget

Embed a GPT-powered chatbot into any site with one script tag.

Live demo: https://chat-widget.uft1.com

Quick start

Script only

<script src="https://chat-widget.uft1.com/embed.js"></script>

Local dev:

<script src="http://localhost:52873/embed.js"></script>

With config

<script type="application/json" id="chat-widget-config">
{
  "chatbot": {
    "title": "Chat",
    "instructions": "You are a helpful assistant for this website."
  }
}
</script>
<script src="https://chat-widget.uft1.com/embed.js"></script>

Documentation

Doc Description
Architecture System overview, components, message protocol
Embedding guide Embed patterns, host JS API, auto-open
Config reference All config fields
Development Local setup, deploy, troubleshooting
Decisions Architecture decision records

Pages

Local development

cp .env.sample .env   # add OPENAI_API_KEY
npm install
npm run dev           # http://localhost:52873

See docs/development.md for full setup.

Source

github.com/jovylle/chatbot-widget

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages