buckbot-ai
v1.0.34
Published
**BuckBot AI** is a lightweight, embeddable chatbot plugin built in React, designed to provide intelligent Q&A responses based on a **uploaded PDF**.
Readme
🤖 BuckBot AI — PDF-Based Chatbot Plugin
BuckBot AI is a lightweight, embeddable chatbot plugin built in React, designed to provide intelligent Q&A responses based on a uploaded PDF.
It works seamlessly in both React applications and plain HTML websites via CDN.
🧠 Key Features
- 🔒 PDF-based context: Every bot answers from the user's specific PDF file (hosted on your backend).
- 🌐 Use in React or plain HTML
- 🎨 Customizable themes and props.
- ⚡ Powered by OpenAI (or your AI backend).
📦 Installation
For React Applications
Install the package from NPM:
npm install buckbot-ai@latestUsage in React
import React from "react";
import BuckBot from "buckbot-ai";
function App() {
return (
<div>
<BuckBot/>
</div>
);
}
export default App;
🌐 HTML integrtion
You can embed BuckBot into any static site using just HTML and script tags.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>BuckBot AI</title>
</head>
<body>
<div id="chatbot-root"></div>
<!-- Load React and ReactDOM -->
<script src="https://unpkg.com/react@18/umd/react.production.min.js"></script>
<script src="https://unpkg.com/react-dom@18/umd/react-dom.production.min.js"></script>
<!-- Load BuckBot Plugin -->
<script src="https://unpkg.com/buckbot-ai@latest/dist/chatbot.min.js"></script>
<!-- Initialize BuckBot -->
<script>
ReactDOM.render(
React.createElement(BuckBot),
document.getElementById("chatbot-root")
);
</script>
</body>
</html>