Langflow Integration
Langflow is a visual authoring platform for AI agents and workflows. PraisonAI provides native Langflow components for building agent workflows visually.Installation
Environment support
Launch
Components
PraisonAI provides two components for Langflow:PraisonAI Agent
Creates a single PraisonAI agent with full tool, memory, and knowledge support. Key Inputs:
Outputs:
- Response - Agent response as Message
- Agent - Agent instance for multi-agent workflows
PraisonAI Agents
Orchestrates multiple agents working together. Process Types:
Key Inputs:
- Name - Team identifier (default
AgentTeam) - Agents - List of PraisonAI Agent components
- Input - Initial input to start the workflow
- Process -
sequential,hierarchical, orworkflow - Manager Agent - Explicit manager for
hierarchicalprocess (optional) - Manager LLM - LLM for auto-created manager (default
openai/gpt-4o) - Variables - Global substitution variables for task descriptions
- Shared Memory - Enable shared memory across all agents
- Guardrails - Team-level output validation
- Verbose - Detailed execution logs
- Full Output - Return results from every task
- Planning - Decompose complex tasks
- Reflection - Self-reflection for better results
- Caching - Cache agent responses
Tasks are auto-generated from the connected agents — there is no separate Task node.
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 (e.g. Researcher, Analyst, Writer)
- Set each agent’s instructions describing what it should accomplish
- (Optional) Chain execution order by connecting the
Agentoutput of each predecessor to the next agent’sPrevious Agentinput - Create an Agent Team component
- Connect all three agents to the Agent Team’s
Agentsinput - Set
Processtosequential(orhierarchical/workflow) - Wire Chat Input → Agent Team
Input, Agent TeamResponse→ Chat Output - Run the flow — tasks are generated automatically from each agent’s instructions
Model Format
PraisonAI usesprovider/model-name format:
Memory Options
Structured Output
The visual nodes do not expose a JSON schema input — configure structured output through the SDK by passing a Pydantic model to aTask.
Workflow Branching
The visual Task node (withTask Type: decision) was removed — branching is now expressed through the Agent Team’s Process and agent Handoffs:
For routing based on an agent’s judgement, connect the deciding agent’s Handoffs input to the candidate downstream agents — the decider hands the conversation to the next agent at runtime.
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

