Module 16 ยท LangGraph Agents โ Lesson 3 of 4 ยท ~12 min
Conditional edges
Straight lines can't ask questions
Your parser now finds the dog's name โ when the user included it. But what if they don't? "Book a walk in Mission tomorrow" has no name. Today the graph barrels straight into draft_booking and drafts a booking with dog_name = None. Rude.
A better assistant would branch: if the name is missing, ask a follow-up question instead of drafting. A fixed add_edge can't do that โ it always goes the same way. You need a conditional edge.