How It Works
Quick Start
- Code
- No Code
1
Install Package
First, install the required packages:
2
Set API Key
Set your OpenAI API key as an environment variable in your terminal:
3
Create a file
Create a new file
app.py with the basic setup:4
Start Agents
Type this in your terminal to run your agents:
Requirements
- Python 3.10 or higher
- OpenAI API key. Generate OpenAI API key here
- LangChain compatible tools and utilities
Understanding LangChain Integration
What is LangChain Integration?
LangChain integration enables agents to:
- Use LangChain’s extensive tool ecosystem
- Access various data sources and APIs
- Leverage pre-built utilities and wrappers
- Combine multiple tools in a single agent
- Extend agent capabilities with community tools
Features
Tool Integration
Seamlessly use LangChain tools with PraisonAI agents.
Multiple Sources
Access various data sources through LangChain utilities.
Community Tools
Leverage the extensive LangChain community ecosystem.
Custom Tools
Create and integrate custom LangChain tools.
Best Practices
Install tool dependencies per source
Install tool dependencies per source
Each LangChain utility pulls its own deps — install
langchain-community plus any package the tool needs (e.g. wikipedia for WikipediaAPIWrapper).Disable reflection for tool-heavy agents
Disable reflection for tool-heavy agents
Set
reflection=False on agents that call external tools frequently — reflection adds an extra LLM pass per turn.One tool per focused agent
One tool per focused agent
Split YouTube and Wikipedia into separate agents with dedicated tasks when outputs must stay source-specific.
Verify API keys before start
Verify API keys before start
Export provider keys in the shell or load them with
os.getenv — LangChain tools fail fast when credentials are missing.Next Steps
Memory Integration
Learn how to combine LangChain tools with agent memory
Custom Tools
Create your own custom tools for agents
For optimal results, ensure all required dependencies are installed and API keys are properly configured for each tool.
Related
Build and register custom tools for your agents.
Connect agents to external tool servers via Model Context Protocol.

