Crypto.com AI Agent SDK
  • Getting Started
    • Introduction
    • Quick Start Guide: Simulation Entry Point
  • Core Concepts Overview
    • Plugins
    • Tools
    • Blockchain Functions
      • Wallet Management
      • Token Interaction
      • Transaction Queries
      • Block Information
      • Contract Operations
      • CronosID Operations
      • Defi Operations
      • Crypto.com Exchange
    • Built-in Telegram Feature
    • Advanced Usage: Custom Instructions
    • Dynamic AI Model Manager
  • Crypto.com On-Chain Developer Platform
    • Developer Platform API Methods
  • On-Chain Functions and Examples
    • AI Agent Chatbot
    • "Magic Link" Signer
  • Resources for Developers
Powered by GitBook
On this page

Was this helpful?

  1. On-Chain Functions and Examples

AI Agent Chatbot

PreviousOn-Chain Functions and ExamplesNext"Magic Link" Signer

Last updated 1 month ago

Was this helpful?

The 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 . 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:

Check out the replit code:

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
Crypto.com AI Agent Chatbot
Crypto.com AI Agent Service API
https://ai-agent-chatbot-cryptocomagent.replit.app/
https://replit.com/@cryptocomagent/AI-Agent-Service
https://replit.com/@cryptocomagent/AI-Agent-Chatbot