AI Agent Chatbot
The Crypto.com AI Agent Chatbot is an example of an application built with the suite of AI Agent SDK tools, demonstrating how to build a chatbot app that allows users to interact with blockchain services with natural language.
On the frontend, it is a Vite-powered React application to render a chat interface, forwarding users’ queries to the Crypto.com AI Agent Service API. After using LLMs to interpret their queries, tools built with the Crypto.com On-Chain Developer Platform methods will be called. The responses are then returned to the chat interface in a user-readable format.
Check out a live demo of this chatbot hosted by replit: https://ai-agent-chatbot-cryptocomagent.replit.app/
Check out the replit code: https://replit.com/@cryptocomagent/AI-Agent-Service https://replit.com/@cryptocomagent/AI-Agent-Chatbot

Prerequisites
Having the following running:
AI-Agent-Signer-App
- See "Magic Link" Signer.
Step 1 Clone the Repository
git clone https://github.com/crypto-com/developer-platform-sdk-examples.git
(Frontend) Step 2 Install Dependencies
cd developer-platform-sdk-examples/ai/cryptocom-ai-agent-chatbot
npm install
(Frontend) Step 3 Set up Environment Variables
Create a .env
file in the root of ai/cryptocom-ai-agent-chatbot
. You can refer to the .env.example file
for the required variables:
VITE_BASE_API_URL=http://localhost:8000
VITE_OPEN_AI_KEY=<your-openai-api-key>
VITE_DEEP_SEEK_KEY=<your-deepseek-api-key>
VITE_GEMINI_KEY=<your-gemini-api-key>
Agent Service API, VITE_BASE_API_URL
refers to the URL where the agent service is hosted.
These environment variables will configure the app to communicate with the Crypto.com AI Agent Service API.
(Backend) Step 4 Install Dependencies
cd developer-platform-sdk-examples/ai/cryptocom-ai-agent-service
npm install
(Backend) Step 5 Run the Server
Run the development server with
npm run dev
Once completed, we should have a fully functional chatbot-style UI with an AI agent running in the background at http://localhost:5175.
Last updated
Was this helpful?