By AI Surface · LangGraph

LangGraph + Connect AI

Build stateful graph-based agent pipelines with Connect AI as a queryable data node. Multi-node pipelines that discover data, analyze results, and generate outputs autonomously.

LangGraph getting started

from langgraph.graph import StateGraph
from langgraph.prebuilt import create_react_agent

# 3-node pipeline: gather → analyze → render
gatherer = create_react_agent(llm, tools=mcp_tools)

graph = StateGraph(AgentState)
graph.add_node("gather", gatherer)
graph.add_node("analyze", analyze_node)
graph.add_node("render", render_node)
graph.set_entry_point("gather")
graph.add_edge("gather", "analyze")
graph.add_edge("analyze", "render")

app = graph.compile()
result = await app.ainvoke({"account": "Acme"})

Developer guide

Full step-by-step guide to building a stateful LangGraph agent pipeline with Connect AI MCP.

Customer Health Agents with LangGraph Build autonomous multi-node pipelines that discover data, analyze customer health, and generate executive briefs using LangGraph and Connect AI.

Sources for LangGraph

Common LangGraph + source patterns. Tap any combination to see the tutorial.

Salesforce Multi-node pipelines for account health scoring, pipeline risk, and opportunity analysis.
Workday Stateful HR workflows for onboarding automation and workforce analytics.
HubSpot Stateful CRM pipelines for deal progression tracking and account intelligence.
NetSuite Automated financial close reporting and anomaly detection pipelines.
Snowflake Multi-step analytics pipelines and metric monitoring against cloud warehouse data.
Postgres Stateful pipelines for operational reporting and schema-aware data workflows.

Sample agent

A polished LangGraph reference using the StateGraph pattern. Want a one-command start with LangChain, Google ADK, or Vercel AI SDK instead? See the npx scaffold.

CDataSoftware/langgraph-customer-health-agent

3-node LangGraph pipeline (gather → analyze → render) that produces HTML customer health briefs from live data.

View on GitHub

Evaluating Connect AI for your team? Learn more about Connect AI.

Connect AI documentation

Full API reference, authentication guides, and configuration details.

View docs