Dify
Learn how to use Firecrawl on Dify
Sync Data from Websites for Dify workflows
Firecrawl can be used inside of Dify the LLM workflow builder. This page introduces how to scrape data from a web page, parse it into Markdown, and import it into the Dify knowledge base using their Firecrawl integration.
Configuring Firecrawl
First, you need to configure Firecrawl credentials in the Data Source section of the Settings page.
![Configure Firecrawl key](https://mintlify.s3-us-west-1.amazonaws.com/firecrawl/images/fc_dify_config.avif)
Log in to your Firecrawl account and get your API Key, and then enter and save it in Dify.
![Save Firecrawl key](https://mintlify.s3-us-west-1.amazonaws.com/firecrawl/images/fc_dify_savekey.png)
Scrape target webpage
Now comes the fun part, scraping and crawling. On the knowledge base creation page, select Sync from website and enter the URL to be scraped.
![Scraping setup](https://mintlify.s3-us-west-1.amazonaws.com/firecrawl/images/fc_dify_webscrape.webp)
The configuration options include: Whether to crawl sub-pages, Page crawling limit, Page scraping max depth, Excluded paths, Include only paths, and Content extraction scope. After completing the configuration, click Run to preview the parsed pages.
![Set Firecrawl configuration](https://mintlify.s3-us-west-1.amazonaws.com/firecrawl/images/fc_dify_fcoptions.webp)
Review import results
After importing the parsed text from the webpage, it is stored in the knowledge base documents. View the import results and click Add URL to continue importing new web pages.
![See results of the Firecrawl scrape](https://mintlify.s3-us-west-1.amazonaws.com/firecrawl/images/fc_dify_results.webp)