Integrate Firecrawl with LangChain to build AI applications powered by web data.
Setup#
Create .env file:
Note: If using Node < 20, install
dotenvand addimport '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.

