Schedule a LangGraph Morning Briefing Agent
Advanced · 45 minutes · 5 tasks, checked automatically · 100 points
Build a LangGraph agent that gathers a daily briefing — summarising recent files, a weather stub, and a motivational note — then schedule it to run automatically every morning using cron (Linux/macOS) or launchd (macOS). The agent writes a timestamped Markdown briefing file to your lab directory so it is waiting for you when you sit down. This lab covers LangGraph StateGraph construction, tool nodes, file I/O, and real OS-level scheduling — things that only make sense on a real machine.
What you’ll learn
- Install LangGraph and its dependencies into the lab virtualenv
- Build a multi-node LangGraph StateGraph that uses custom tools to collect briefing data and write a Markdown file
- Wire a ReAct-style agent loop with conditional routing so the agent keeps calling tools until it is satisfied
- Confirm the agent produces a correctly-formatted briefing file when run directly
- Schedule the agent with cron or launchd so it fires every morning at 07:00 and leaves a new briefing file
How this lab works
- Start the lab: One click starts a sandbox with a local model and the agent’s toolbox: no API key and no token bill.
- Work through 5 tasks: Each task says what to build or fix. You do it yourself, in a real terminal, with hints when you get stuck.
- Check your work: Check my work inspects the agent, its config and its output, and says what passed and what to fix.
- Finish and keep going: 100 points, your progress saved, and the next lab to try.
What it runs on
- Runs: Locally, against a model on your computer: no API key, no tokens
- Model: gpt-4o
- Open source: github.com/langchain-ai/langgraph
What you need
- A free LearnXops account
- The LearnXops desktop app for macOS, Windows or Linux
- Python 3.11+ available on PATH
- OPENAI_API_KEY exported in the shell environment
- cron (Linux) or launchd (macOS) available — both are standard on every supported OS
Topics: langgraph, deployment, scheduling, cron, launchd, StateGraph, ToolNode, conditional-routing, file-io, openai
Create a free account to start this lab.
Keep going
- Persistent OpenClaw: docker-compose with Surviving Volumes
- Run the Hermes Gateway as a Persistent Service with Request Logging and Clean Shutdown
- Dual-Surface Agent Control: CLI and Web Gateway with Hermes
- Serve MCP over Streamable HTTP and Connect a Remote Client
- Route a CrewAI Agent Through Your Own OpenAI-Compatible Gateway
- Lock OpenClaw Down: Pairing Approval, Per-Skill Permission Scoping, and Shell Command Allowlisting