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 a random address"
- "What is the price of BTC?"
- "Deploy an NFT that will go super viral!"
- "Deploy an ERC-20 token with total supply 1 billion"
- Python 3.10+
- Poetry for package management and tooling
- 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:
python --version
poetry --version
poetry install
- 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
)
poetry run python chatbot.py