Langflow Integration
Langflow is a visual authoring platform for AI agents and workflows. PraisonAI provides native Langflow components for building agent workflows visually.Status: PR #11294 submitted to Langflow repository. Once merged, PraisonAI components will be available natively in Langflow.
Installation
Components
PraisonAI provides three components for Langflow:PraisonAI Agent
Creates a single PraisonAI agent with full tool, memory, and knowledge support. Key Inputs:| Input | Description |
|---|---|
| Name | Agent identifier |
| Instructions | System prompt for the agent |
| Model | LLM model (e.g., openai/gpt-4o-mini, anthropic/claude-3-5-sonnet-20241022) |
| Tools | Connected Langflow tools |
| Memory | Enable context retention |
| Knowledge | Files/URLs for RAG |
| Handoffs | Other agents for collaboration |
| Guardrails | Output validation |
- Response - Agent response as Message
- Agent - Agent instance for multi-agent workflows
PraisonAI Agents
Orchestrates multiple agents working together. Process Types:| Process | Description |
|---|---|
| Sequential | Agents execute in order |
| Hierarchical | Manager agent coordinates workers |
| Workflow | Custom agent routing with decision points |
- Agents - List of PraisonAI Agent components
- Tasks - List of PraisonAI Task components
- Process - Orchestration mode
- Variables - Global substitution variables
- Guardrails - Team-level validation
PraisonAI Task
Defines a task for multi-agent workflows with structured output support. Key Inputs:| Input | Description |
|---|---|
| Description | What the task should accomplish |
| Expected Output | Desired output format |
| Output JSON | JSON schema for structured output |
| Task Type | task, decision, or loop |
| Condition | Branching conditions for workflow |
| Guardrail | Task-specific validation |
Quick Start
Single Agent
- Drag PraisonAI Agent onto the canvas
- Set instructions: “You are a helpful assistant”
- Connect Chat Input to the Agent’s Input
- Connect Agent’s Response to Chat Output
- Run the flow!
Multi-Agent Team
- Create 3 PraisonAI Agent components with different roles
- Create a PraisonAI Agents component
- Connect all agents to the Agents component
- Set process to “sequential”
- Connect input/output
Model Format
PraisonAI usesprovider/model-name format:
| Provider | Examples |
|---|---|
| OpenAI | openai/gpt-4o-mini, openai/gpt-4o, openai/o1-mini |
| Anthropic | anthropic/claude-3-5-sonnet-20241022, anthropic/claude-3-opus-20240229 |
google/gemini-1.5-pro, google/gemini-2.0-flash | |
| DeepSeek | deepseek/deepseek-chat, deepseek/deepseek-reasoner |
| Groq | groq/llama-3.3-70b-versatile |
| Ollama | ollama/llama3.2, ollama/mistral |
Memory Options
| Option | Description |
|---|---|
| Simple | Toggle memory on/off |
| Provider | rag or mem0 |
| Config | Full MemoryConfig dictionary (advanced) |
Structured Output
Define JSON schemas for structured responses:Workflow Branching
Use decision tasks for conditional flows:- Set Task Type to
decision - Define Condition:
- The agent’s decision determines which task runs next
Agent Collaboration
Use Handoffs for agent-to-agent collaboration:- Create a second agent (e.g., “Expert Agent”)
- Connect it to the first agent’s Handoffs input
- The primary agent can now hand off conversations

