Embeddable Chat Component
Last updated
Last updated
The Bitte AI Chat component is a React component that enables AI-powered chat interactions in your application. It supports both NEAR Protocol and EVM blockchain interactions through wallet integrations, allowing users to interact with smart contracts and perform transactions directly through the chat interface.
🔑 Before you begin, make sure you have:
A Bitte API Key - Get your beta
BITTE_API_KEY
here
Install package
Add the Chat Component
Setup API Route
Wallet Connection
Import and use BitteAiChat
in your react app and select the agent that you would like to use, browse the available agents and their respective ids on the registry
The apiUrl
corresponds to a proxy to not expose your api key on the client
Create an API route in your Next.js application to proxy requests to the Bitte API to not expose your key
At this point the chat should already work but to be able to send transactions you will need to add a wallet connection
You can integrate with NEAR using either the NEAR Wallet Selector or a direct account connection. If you want to be able to send near transacitons through the chat you will need to define at least one of these
Using Wallet Selector
Using Direct Account
EVM integration uses WalletConnect with wagmi hooks:
Agent Name
Description
Category
Agent ID
CoWSwap Assistant
An assistant that generates transaction data for CoW Protocol Interactions
DeFi
near-cow-agent.vercel.app
Meme.cooking
Generates a transaction payload for creating a new memecoin on the meme.cooking platform
Memes
meme-cooking-bitte-agent.vercel.app
CoinGecko Agent
Provides real-time cryptocurrency data, including prices, market information, and charts
Investing
coingecko-ai.vercel.app
Ref Finance Agent
Provides token metadata and swaps tokens through Ref Finance
DeFi
ref-finance-agent.vercel.app
NEAR Roast Agent
Roasts a NEAR account based on their on-chain activity
Other
near-roast-agent.vercel.app
NEAR Staking
Stake, unstake, and see staking information
Other
staking-agent.intear.tech
Crypto Technical Analyst
Provides in-depth market analysis and sophisticated trading insights based on technical analysis
Investing
technical-analysis-agent.vercel.app
DAO Agent
Interacts with Sputnik DAO Contracts, query DAOs, create proposals, and vote on proposals
DAO
dao-agent.vercel.app
Safe Account Assistant
Manages Near{Safe} Account Structure
Wallet Management
near-safe-agent.vercel.app
Uniswap Assistant
Generates transaction data for Uniswap V3 Interactions
Other
near-uniswap-agent.vercel.app
GrowthMate Discovery
Discovers the ecosystem through relevant activities, news, and offers
Ecosystem
bitte-agent.vercel.app
Python Code Runner
A helpful assistant for running Python code snippets
Computational
bitte-wasmer-agent.fly.dev
PotLock Assistant
Helps users search projects and donations on PotLock platform and create projects
Other
potlockaiagent-hqd5dzcjajhpc3fa.eastus-01.azurewebsites.net
Delta Trade DCA Helper
Helps set up DCA plans to buy NEAR and other tokens
Investing
dcaagent.deltatrade.ai
Check out our docs for creating your own agent from an API
The component can be customized using the colors
prop:
if you're having issues with your app or wallet containing redirects you can optionally use a history api to maintain context
Create an API route in your Next.js application that will allow your app if you want to save chat context when signing a transaction after getting redirected to the wallet.