This example demonstrates an agent setup as a terminal style chatbot with access to the full set of CDP Agentkit actions.
- "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"
- Python 3.10+
- CDP API Key
- OpenAI API Key
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
pip install cdp-langchain
- 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