Prerequisites: You’ll need an OpenAI API key to use the natural language features. Set it as
an environment variable (
OPENAI_API_KEY
) or pass it in the configuration.Architecture Overview

1. Natural Language Processor
The NLP processor uses OpenAI’s GPT-4 to understand natural language commands and map them to the appropriate tools.2. Tool System
10 pre-built LangChain tools that wrap the core plugin functionality:- Identity Tools: Create and manage identities
- Token Tools: Transfer tokens and check balances
- Canister Tools: Deploy and manage canisters
- Cycles Tools: Monitor and top-up cycles
3. Specialized Agents
Purpose-built agents for different use cases:- General Agent: All-purpose blockchain operations
- Developer Agent: Focused on canister development
- DeFi Agent: Optimized for token operations
- Governance Agent: NNS and DAO operations
Quick Start
Basic Setup
Natural Language Commands
Once initialized, you can use natural language to interact with the blockchain:Using Specialized Agents
For more focused interactions, use specialized agents:Key Features
Context Awareness
Agents maintain conversation context, understanding references to previous operations.
Error Handling
Natural language error messages help users understand and fix issues.
Multi-Step Operations
Complex workflows can be expressed in simple commands.
Tool Transparency
See exactly which tools are being used for each operation.
Available Commands
Here are some example commands you can use:Identity Management
- “Show me my current identity”
- “Create a new identity called alice”
- “Switch to my trading identity”
- “Generate a new seed phrase”
Token Operations
- “Check my ICP balance”
- “Transfer 10 ICP to bob.icp”
- “Show me all my token balances”
- “Transfer 1000 CHAT tokens to principal abc123”
Canister Management
- “Create a new canister with 5T cycles”
- “Deploy my WASM to canister xyz”
- “Check the status of all my canisters”
- “Add alice as a controller to my canister”
Cycles Management
- “Check cycles balance for canister abc”
- “Top up my canister with 2T cycles”
- “How many cycles can I get with 1 ICP?”
- “Monitor my canister cycles and alert me when low”
Configuration Options
Model Selection
You can choose different OpenAI models based on your needs:Environment Variables
The integration supports these environment variables:OPENAI_API_KEY
: Your OpenAI API keyICP_NETWORK
: Default network (mainnet/local)
Best Practices
Be Specific with Addresses
Be Specific with Addresses
When transferring tokens, use full principal IDs or account identifiers for accuracy.
Confirm Large Operations
Confirm Large Operations
For significant transfers or deployments, the agent will ask for confirmation.
Use Specialized Agents
Use Specialized Agents
Choose the right agent for your task - DeFi for tokens, Developer for canisters.
Check Tool Usage
Check Tool Usage
Enable verbose mode to see which tools are being used for debugging.