Skip to main content
This guide shows how to use Firecrawl, the context API for AI agents, with LangGraph to build agent workflows that scrape web pages into clean Markdown and process the content.

Setup

Create .env file:
Note: If using Node < 20, install dotenv and add import 'dotenv/config' to your code.

Basic Workflow

This example demonstrates a basic LangGraph workflow that scrapes a website and analyzes the content.

Multi-Step Workflow

This example demonstrates a more complex workflow that scrapes multiple URLs and processes them.
For more examples, check the LangGraph documentation.