Complete guide to using OctBot - your personal AI assistant with memory.
Visit /chat and start chatting immediately. You get 100 free credits.
Find @your_bot_name on Telegram and send:
/start
POST /api/notes
{
"content": "I love coffee"
}
GET /api/notes
AI automatically references your notes when you chat. This creates "long-term memory".
POST /api/reminders
{
"content": "Team meeting",
"remind_at": "2026-01-30 14:00"
}
GET /api/reminders
Format: YYYY-MM-DD HH:MM (UTC time)
You'll receive a Telegram notification at the specified time.
/setname Jarvis - Change AI name/setprompt You are a helpful coding assistant - Custom personality/template professional - Use preset (default, professional, friendly, creative)/personality - View current settings/reset - Clear chat historyWhen credits run out, you'll get a 402 response with payment instructions.
Pay with MetaMask on Polygon network. Credits added automatically after transaction confirms.
POST /api/chat
{
"message": "Hello"
}
Response:
{
"reply": "Hi! How can I help?"
}
GET /api/history
Response:
{
"messages": [
{"role": "user", "content": "Hello", "created_at": 123456},
{"role": "assistant", "content": "Hi!", "created_at": 123457}
]
}
GET /api/credits
Response:
{
"credits": 100
}
Use X-Session-Id header:
X-Session-Id: your-random-session-id
Click "Login with Telegram" on /chat to sync data across devices.
JWT token valid for 7 days.
git clone https://github.com/2045max/octbot.git
cd octbot
npm install
npm run deploy
TELEGRAM_BOT_TOKEN - Get from @BotFatherJWT_SECRET - Random stringWALLET_ADDRESS - Your Polygon walletPOLYGON_RPC_URL - RPC endpointwrangler d1 execute octbot-db --remote --file=schema.sql