Skip to main content

LangChain

Use Firecrawl with LangChain for web scraping + AI workflows
1 min read

Integrate Firecrawl with LangChain to build AI applications powered by web data.

Setup#

Create .env file:

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

Scrape + Chat#

This example demonstrates a simple workflow: scrape a website and process the content using LangChain.

Chains#

This example shows how to build a LangChain chain to process and analyze scraped content.

Tool Calling#

This example demonstrates how to use LangChain's tool calling feature to let the model decide when to scrape websites.

Structured Data Extraction#

This example shows how to extract structured data using LangChain's structured output feature.

For more examples, check the LangChain documentation.