This template provides a starting point for creating AI agents using the Bitte Protocol with Next.js. It includes pre-configured endpoints and tools that demonstrate common agent functionalities.
- 🤖 Pre-configured AI agent setup
- 🛠️ Built-in tools and endpoints:
- Blockchain information retrieval
- NEAR transaction generation
- Reddit frontpage fetching
- Twitter share intent generation
- Coin flip functionality
- ⚡ Next.js 14 with App Router
- 🎨 Tailwind CSS for styling
- 📝 TypeScript support
- 🔄 Hot reload development environment
- Clone this repository
- Install dependencies:
pnpm install
- Start the development server:
pnpm run dev
This will:
- Start your Next.js application
- Launch make-agent
- Prompt you to sign a message in Bitte wallet to create an API key
- Launch your agent in the Bitte playground
- Allow you to freely edit and develop your code in the playground environment
The template includes several pre-built tools:
- Endpoint:
/api/tools/get-blockchains
- Returns a randomized list of blockchain networks
- Endpoint:
/api/tools/create-transaction
- Creates NEAR transaction payloads for token transfers
- Endpoint:
/api/tools/reddit
- Fetches current posts from Reddit's frontpage
- Endpoint:
/api/tools/twitter
- Generates Twitter share intent URLs
- Endpoint:
/api/tools/coinflip
- Simple random coin flip generator
The template includes a pre-configured AI plugin manifest at /.well-known/ai-plugin.json
. You can customize the assistant's behavior by modifying the configuration in:
- Push your code to GitHub
- Deploy to Vercel or your preferred hosting platform
- Add your
BITTE_KEY
to the environment variables - The
make-agent deploy
command will automatically run during build
Contributions are welcome! Please feel free to submit a Pull Request.
MIT License