LangGraph tutorial: email, vision and resume agents

Learn LangGraph state, nodes and routing through Python projects using GPT-4o, Langfuse tracing and SendGrid email delivery.

Player not loading? Watch on YouTube

This tutorial explains LangGraph state, nodes and edges through a travel-planning example, then builds Python workflows with conditional routing and tool loops. The speaker compares these graphs with sequential LangChain workflows and uses LangChain model integrations and tool decorators in the projects.

The email assistant classifies sample messages as spam or legitimate and drafts replies for review. Its spam handler prints a notification. Moving messages into Gmail's spam folder is a suggested extension. Langfuse callbacks record traces of both execution paths.

The vision assistant uses GPT-4o to extract text from an uploaded image and calls a division tool when needed. One prompt asks it to keep dividing until it obtains an integer; the demonstrated response reports that it cannot satisfy that instruction. A later section adds SendGrid to email a shopping list, with API key setup, sender verification and a received email example.

The resume assistant uses Pydantic schemas and mock resume and job records. Retrieval tools supply those records to the model, while conditional routing and a checkpointer support tool calls and conversation memory. Its prompt prohibits invented qualifications, but the tutorial does not establish that this prevents factual errors.

The examples require OpenAI API credentials and use hosted models. They do not demonstrate local model inference or offline operation.