Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

BNBChain Agentkit LangChain Extension Examples - Chatbot Python

This example demonstrates an agent setup as a terminal style chatbot with access to the full set of BNBChain Agentkit actions.

Ask the chatbot to engage in the Web3 ecosystem!

  • "Transfer a portion of your BNB to a random address"
  • "What is the price of BNB?"
  • "Deploy an NFT that will go super viral!"
  • "Deploy an BEP-20 token with total supply 1 billion"

Requirements

Checking Python Version

Before using the example, ensure that you have the correct version of Python installed. The example requires Python 3.12 or higher. You can check your Python version by running:

python --version

Installation

uv venv --python 3.12
source .venv/bin/activate

uv sync

Run the Chatbot

Set ENV Vars

  • Ensure the following ENV Vars are set:
    • PRIVATE_KEY
    • BSC_PROVIDER_URL
    • OPBNB_PROVIDER_URL
    • OPENAI_API_KEY
    • BSCSCAN_API_KEY (optional)
uv run chatbot.py