
Entry Points and Exit Points
Defining the boundaries of your graph.
Entry Points and Exit Points
Every process needs a beginning and an end.
Visualizing Boundaries
graph LR
Entry((START)) --> A[Analyze Input]
A --> B[Route]
B --> C[Process]
C --> End((END))
style Entry fill:#fff9c4,stroke:#fbc02d
style End fill:#ffcdd2,stroke:#d32f2f
The Entry Point
You must define at least one entry point.
graph.set_entry_point("node_name")
This is the "Reception Desk" of your specific workflow. It receives the raw input.
The Exit Point (END)
END is a virtual node provided by LangGraph.
When an edge points to END, the graph stops.
- You can have multiple edges pointing to
END.SuccessNode->ENDFailureNode->ENDMaxRetriesNode->END