Skip to content

Latest commit

 

History

History
49 lines (33 loc) · 1.15 KB

File metadata and controls

49 lines (33 loc) · 1.15 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 Node Version

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

node --version
npm --version

Installation

npm install

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)
npm start

License

Apache-2.0