project screenshot 1
project screenshot 2
project screenshot 3
project screenshot 4
project screenshot 5
project screenshot 6

AI Web3 Assistant

Meet TxGPT, your AI chatbot for effortless blockchain interaction! Manage transactions, check balances, and explore data with natural language. Powered by Circle's wallets and ENS mapping Telegram IDs to addresses. Say hello to seamless blockchain use! 🚀

AI Web3 Assistant

Created At

ETHGlobal Brussels

Winner of

Circle - Best Applications for Emerging Use Cases 2nd place

Project Description

This project is an AI-powered chatbot integrated with Telegram that enables users to interact seamlessly with blockchain technology through natural language. The chatbot, called TxGPT Bot, allows users to manage blockchain transaction, query blockchain-related information and interact with it without needing advanced technical knowledge.

Key Features:

Natural Language Interaction: Users can interact with the bot using plain English to perform various blockchain operations such as sending and receiving cryptocurrency, checking wallet balances, and tracking transaction statuses.

Wallet Management:

  • Circle Programmable Wallets: Utilizes Circle's developer-controlled wallets to manage user funds securely. This integration allows the bot to create and manage wallets, handle transactions, and query balances.
  • ENS Integration: The bot uses Ethereum Name Service (ENS) to manage wallet UUIDs. It can look up and set wallet IDs for users.
  • Wallet Creation: Users can create wallets on different blockchains (MATIC and ETH) through Circle’s API. The bot handles the encryption of sensitive data and securely creates wallets for users.

User-Friendly Experience:

  • Interactive Prompts: The bot guides users through wallet creation and transaction processes using inline keyboard buttons for a seamless experience. Real-time Updates: Users receive real-time updates on the status of their transactions, including pending, initiated, queued, sent, confirmed, and failed states.

Technical Implementation:

  • Telegram Bot Setup: The bot uses the python-telegram-bot library to interact with users via Telegram. It supports commands like /start and /help, and processes natural language messages.
  • Natural Language Processing: Integrated with GPT to understand and parse user requests, transforming them into actionable commands for blockchain interactions.
  • Blockchain Interactions: Circle API: Utilizes Circle’s API for creating and managing developer-controlled wallets, checking balances, and performing transactions.
  • Polling: The bot continuously polls for transaction status updates, providing real-time feedback to users.

Example Use Cases:

  • User-Friendly Onboarding for Blockchain Newcomers
    • Simplified Onboarding: New users can get started with blockchain technology without needing to understand complex technical details. The AI chatbot guides them through setting up wallets, managing transactions, and exploring blockchain data using natural language.
    • Educational Tool: The bot can provide explanations and tutorials on blockchain concepts, helping users learn while they use the platform.
  • Seamless Cryptocurrency Transactions
    • Instant Crypto Transfers: Users can send cryptocurrencies to their contacts effortlessly by simply issuing a command like, "Send 1 BTC to John," making transactions quick and straightforward.
    • Contact Integration: By integrating with the user’s contact list, the bot can recognize recipients by their Telegram IDs or ENS names, further simplifying the transaction process.
  • Interacting with APIs and Blockchain via LLMs
    • Smart Contract Interaction: Users can interact with smart contracts directly through the chatbot. For instance, they can check the status of a contract, trigger contract functions, or get information about contract parameters.
    • DeFi Protocols: The bot can facilitate interactions with decentralized finance (DeFi) protocols, allowing users to lend, borrow, or swap assets without leaving the chat interface.
    • API Integration: Leveraging the power of large language models (LLMs), the bot can connect with various APIs, providing users with data from different sources (e.g., market prices, transaction histories) and executing complex workflows.

/start: Initializes the bot, welcomes the user, and prompts for wallet creation. /help: Provides a list of available commands. Message Handling: Processes text messages to identify and execute blockchain-related requests or general queries. Inline Keyboard: Used for interactive decision-making, such as confirming transactions or wallet creation. By leveraging natural language processing and Circle's developer-controlled wallets, this project aims to make blockchain transactions and management accessible to everyone through a simple and intuitive chat interface.

Future work:

  • Integration of several chains.
  • Integration of Circle's Cross-Chain Transfer Protocol (CCTP).
  • Integration with the blockchain and smart contracts and do more complicated operations (swaps, stake, lending/borrowing, etc.).
  • DeFi aggregation and give the bot access to blockchain and the real world.
  • Enhanced security features: Biometric Authentication (proof of humanity for example).
  • On Ramp integration to abstract the use of crypto even more abstract.

How it's Made

Technologies Used:

Telegram Bot API: https://core.telegram.org/bots/tutorial#obtain-your-bot-token

  • Purpose: Facilitates user interaction via chat.
  • Integration: Created a bot using Telegram's Bot API. This bot handles incoming messages and provides responses.

OpenAI GPT-4:

  • Purpose: Provides the AI conversational capabilities.
  • Integration: Used OpenAI’s API to enable natural language understanding and response generation. The AI interprets user inputs and generates appropriate responses or actions.

Circle's Programmable Wallets: https://developers.circle.com/w3s/docs/developer-controlled-create-your-first-wallet

Purpose: Manages secure and flexible transaction processing. Integration: Leveraged Circle’s developer-controlled wallets to handle cryptocurrency transactions programmatically.

Ethereum Name Service (ENS): https://docs.ens.domains/learn/deployments

  • Purpose: Maps Telegram IDs to blockchain addresses for easy identification.
  • Integration: Utilized ENS contracts from ENS documentation to create and manage domain records linking Telegram IDs to crypto addresses.

Infura: https://www.infura.io/ (create account and get api key)

  • Purpose: Provides blockchain infrastructure.
  • Integration: Created an account on Infura and used their API keys to interact with the Ethereum blockchain seamlessly.

MetaMask: https://support.metamask.io/getting-started/getting-started-with-metamask/

  • Purpose: Manages private keys for transaction signing.
  • Integration: Integrated MetaMask to manage user private keys securely. Users can export their private keys from MetaMask.
background image mobile

Join the mailing list

Get the latest news and updates