LangFlow Integration Guide
Overview
Configure Access
export LANGFLOW_BASE_URL="https://your-langflow.example.com"
export LANGFLOW_API_KEY="super-secret"Sync Flows from LangFlow
from glaip_sdk import Client
client = Client()
client.sync_langflow_agents()
# Inspect LangFlow-based agents
langflow_agents = client.agents.list_agents(agent_type="langflow")
for agent in langflow_agents:
print(agent.name)# Pull all flows and create/update matching AIP agents
aip agents sync-langflow
# Provide explicit connection details if you do not use env vars
aip agents sync-langflow \
--base-url "https://your-langflow.example.com" \
--api-key "super-secret"
# List the imported agents (type=langflow)
aip agents list --type langflow# With explicit credentials (optional - will use LANGFLOW_* env vars if omitted)
curl -X POST "$AIP_API_URL/agents/langflow/sync" \
-H "Content-Type: application/json" \
-H "X-API-Key: $AIP_API_KEY" \
-d '{
"base_url": "https://your-langflow.example.com",
"api_key": "your-langflow-api-key"
}'
# Or with empty body to use environment variables only
curl -X POST "$AIP_API_URL/agents/langflow/sync" \
-H "Content-Type: application/json" \
-H "X-API-Key: $AIP_API_KEY" \
-d '{}'Common sync issues
Run LangFlow Agents
Best Practices
Troubleshooting
Related Documentation
Last updated