Skip to content

Latest commit

 

History

History
40 lines (31 loc) · 1.17 KB

File metadata and controls

40 lines (31 loc) · 1.17 KB

CDP Agentkit Langchain Extension Examples - Chatbot

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

Ask the chatbot to engage in the Web3 ecosystem!

  • "Transfer a portion of your ETH to john2879.base.eth"
  • "Deploy an NFT that will go super viral!"
  • "Choose a name for yourself and register a Basename for your wallet"
  • "Deploy an ERC-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.10 or higher. You can check your Python version by running the following code:

python --version
pip --version

Installation

pip install cdp-langchain

Run the Chatbot

Set ENV Vars

  • Ensure the following ENV Vars are set:
    • "CDP_API_KEY_NAME"
    • "CDP_API_KEY_PRIVATE_KEY"
    • "OPENAI_API_KEY"
    • "NETWORK_ID" (Defaults to base-sepolia)
python chatbot.py