LangGraph enables building stateful, multi-step agent workflows with cycles and persistence. Integrate ContextGate to create powerful data agents that can query, analyze, and process business data across multiple steps.
This guide shows you how to build LangGraph workflows that leverage ContextGate for accessing Salesforce, QuickBooks, HubSpot, and other business data with state management and conditional routing.
Navigate to the Install page in your ContextGate workspace. Click "View API Token" and copy your bearer token for authentication.
💡 Your token can be found on the Install page .
Keep your bearer token secure! Never commit it to version control.
On the Install page, you can customize which tools, connections, and datasets are available through ContextGate. This allows you to:
Toolbox Manager Interface:

Install LangGraph and required packages:
Define node functions that query ContextGate:
Create a LangGraph workflow with multiple nodes:
Run the graph with initial state:
Build a workflow that queries multiple data sources and combines results:
Query data → Analyze → Generate insights → Create report
Fetch contacts → Lookup company data → Update CRM records
Daily sales check → Compare to targets → Send alerts
Query source → Transform → Validate → Update destination