Skip to content

BitteProtocol/agent-next-boilerplate

Repository files navigation

Bitte AI Agent NextJS Template

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.

Features

  • 🤖 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

Quick Start

  1. Clone this repository
  2. Install dependencies:
pnpm install
  1. 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

Available Tools

The template includes several pre-built tools:

1. Blockchain Information

  • Endpoint: /api/tools/get-blockchains
  • Returns a randomized list of blockchain networks

2. NEAR Transaction Generator

  • Endpoint: /api/tools/create-transaction
  • Creates NEAR transaction payloads for token transfers

3. Reddit Frontpage

  • Endpoint: /api/tools/reddit
  • Fetches current posts from Reddit's frontpage

4. Twitter Share

  • Endpoint: /api/tools/twitter
  • Generates Twitter share intent URLs

5. Coin Flip

  • Endpoint: /api/tools/coinflip
  • Simple random coin flip generator

AI Plugin Configuration

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:

Deployment

  1. Push your code to GitHub
  2. Deploy to Vercel or your preferred hosting platform
  3. Add your BITTE_KEY to the environment variables
  4. The make-agent deploy command will automatically run during build

Learn More

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT License

About

NextJS Boilerplate for Bitte Open Agents

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •