Rootstrap AI chatbot
Clone the repo and update the config.ts
file
const CONFIG = {
// API url
API_URL: "https://chatbot-api-url.com/api",
// Displayed at the top of the chat
CHATBOT_NAME: "Ask AI",
// Displayed next to each chatbot message
CHATBOT_USERNAME: "Bot",
}
Install dependencies and run project
npm i && npm run dev
A pre-commit hook will run build
before each commit and it will add the dist
folder.
Push your changes and use the branch name or commit as version
https://cdn.jsdelivr.net/gh/rootstrap/rs-chatbot-react@{VERSION}/dist/index.js
-
Create a new release after changes are committed to the
main
branch. -
Update the release version in the jsDelivr url:
https://cdn.jsdelivr.net/gh/rootstrap/rs-chatbot-react@{VERSION}/dist/index.js