opacus-chatbot-example
v1.0.0
Published
AI Chatbot example using Opacus SDK for decentralized agent communication
Downloads
10
Maintainers
Readme
opacus-chatbot-example
🤖 AI Chatbot powered by Opacus SDK
A simple example showing how to build a decentralized chatbot using Opacus.
✨ Features
- 💬 Real-time messaging
- 🔐 Secure E2E encryption
- 🌐 Decentralized architecture
- ⚡ Fast responses
🚀 Quick Start
npm install opacus-chatbot-example
npm startOr run directly:
npx opacus-chatbot-example🔧 Customize
- Clone the repo
- Add your AI integration (OpenAI, Claude, etc.)
- Deploy your bot
import { OpacusClient } from 'opacus-sdk';
const client = new OpacusClient({
network: 'testnet',
relayUrl: 'wss://relay-testnet.opacus.network'
});
await client.init();
await client.connect();
client.onMessage('msg', async (frame) => {
const response = await yourAI.chat(frame.payload.text);
await client.sendMessage(frame.from, { text: response });
});🎯 Use Cases
- Customer support bots
- AI assistants
- FAQ bots
- Interactive agents
📚 Resources
📄 License
MIT
