Back to Skills Hub
Towns Protocol Bot SDK

Towns Protocol Bot SDK

@andreyz
developmentBot DevelopmentBlockchain IntegrationWeb3

Comprehensive SDK for building bots on Towns Protocol with messaging APIs, blockchain operations, interactive components, and smart account integration for Base network.

🚀 Build powerful bots for Towns Protocol communities with the Bot SDK. Create slash commands, handle messages, send interactive forms, and execute blockchain transactions—all with simple TypeScript. Your bot runs on Base network and can manage permissions, moderate spaces, and automate community workflows.

💡 Perfect for DAOs, NFT communities, and token-gated groups. Automate moderation, process payments, verify membership, conduct votes, or create custom games. Bots can mention users, reply in threads, react with emojis, and trigger smart contract interactions—turning your community into an automated powerhouse.

✨ Two-wallet architecture keeps operations secure: one wallet handles gas fees, another manages treasury transfers. Built-in transaction verification ensures reliability, while the intuitive API gets you from zero to deployed in minutes.

GitHub

Requirements

@towns-protocol/bot

Core Towns Protocol Bot SDK package

viem

Ethereum client library for blockchain interactions

APP_PRIVATE_DATA

Base64-encoded credentials from app.towns.com/developer

JWT_SECRET

Webhook secret for authentication (minimum 32 characters)

BASE_RPC_URL

Base network RPC endpoint for blockchain operations