How to Integrate Lindy with ZenRows
Automate web scraping workflows by connecting ZenRows with Lindy’s AI assistant platform. This integration extracts and processes web data through intelligent automation, eliminating manual data collection tasks.
What Is Lindy?
Lindy creates AI assistants that automate repetitive business tasks. When you integrate Lindy with ZenRows, you can scrape websites automatically and use the extracted data to trigger intelligent workflows like generating reports, updating spreadsheets, or managing sales pipelines.
Use Cases
Here are some ways you can use ZenRows and Lindy together:
- Competitive Analysis: Extract competitor data and generate automated reports.
- Lead Generation: Scrape business directories and qualify prospects for your sales team.
- Brand Monitoring: Track online mentions and respond automatically.
- Content Curation: Collect and categorize articles for your team.
- Market Research: Gather and analyze property listings or market data.
Real-World End-to-End Integration Example
This example shows how to build an automated system that monitors e-commerce products and stores the data in Google Sheets.
Step 1: Create a new Lindy assistant
- Log in to Lindy and open your workspace dashboard.
- Click
+ New Lindy
, select Start from scratch, and name your assistant (e.g., Product Data Extractor).
Step 2: Configure ZenRows integration with Lindy
Generate the HTTP request URL from ZenRows
- Go to ZenRows’ Universal Scraper API Request Builder.
- Input
https://www.scrapingcourse.com/ecommerce
as your target URL for scraping. - Enable JS Rendering to handle dynamic page content.
- Configure Output type to Specific Data and navigate to the Parsers section.
- Set up the CSS selector configuration:
{ "name": ".product-name" }
. - Navigate to the cURL tab and copy the generated HTTP request URL. It’ll look like this:
The CSS selectors provided in this example (
.product-name
) are specific to the page used in this guide. Selectors may vary across websites. For guidance on customizing selectors, refer to the CSS Extractor documentation. If you’re having trouble, the Advanced CSS Selectors Troubleshooting Guide can help resolve common issues.
Set up the HTTP Request in Lindy
- Within your Lindy assistant, select Perform an action from the available options.
- Choose HTTP Request action from the action menu.
- In the Url field, select the Set Manually option.
- Enter the URL generated from your ZenRows configuration.
- Change the request type for the remaining fields to Auto to allow Lindy to handle the configuration automatically.
- Delete the Select Trigger node and proceed directly to testing since we’ll not use a trigger for this example.
- Click
Turn on
to activate your Lindy assistant. - Click
Test
to verify the integration works correctly and returns the expected product name data.
Step 3: Process and transform the scraped data
- Click
Enter AI Agent
to add an intelligent data processing step to your workflow. - Enter the following prompt to help you format the extracted product names into a format suitable for spreadsheet storage:
- Click
+ Add exit condition
to define when the AI agent should complete its task. - In the Condition field, enter the following prompt:
- Follow the same Turn on and Test steps to verify that the AI agent properly transforms your data.
Step 4: Save results to Google Sheets
- Add Google Sheets’ Append rows action to your Lindy workflow.
- Connect your Google account to enable Lindy access to your spreadsheets.
- Choose your target spreadsheet from the available options.
- Select the appropriate Sheet Title where you want to store the extracted product data.
- For the Rows field, click
Prompt AI
and enter the prompt: - Follow the same Turn on and Test steps. The product names will be appended to your specified spreadsheet location.
Troubleshooting
AI Agent Processing Issues
- If your AI agent isn’t properly converting data formats, review the prompt specificity and ensure it clearly describes the desired output structure.
- Verify that the exit condition is correctly defined. The agent should know exactly when its task is complete.
- Check the input data from the previous HTTP request step to ensure it contains the expected product information.
Connection and Authentication Errors
- Ensure your ZenRows account has sufficient usage and isn’t hitting concurrency limits during testing.
- Verify Google Sheets permissions are correctly granted when connecting your account to Lindy.
Data Format and Output Problems
- If Google Sheets isn’t receiving data in the expected format, test each step individually to isolate where the data transformation fails.
- Review the AI prompts in both the data processing and Google Sheets steps to ensure they’re requesting compatible formats.
- Check that your target spreadsheet exists and the specified sheet name matches exactly.
Request Issues
Different websites require specific configurations to retrieve content successfully. Some sites need additional parameters to handle dynamic content effectively.
Common parameters you might need:
wait
orwait_for
: Ensures the page fully loads JavaScript-rendered elements before extractionpremium_proxy
: Provides high-quality proxies for reliable accessproxy_country
: Specifies the geographical location for the request to bypass geo-restrictions
For comprehensive troubleshooting guidance, explore ZenRows’ troubleshooting documentation.
Tips and best practices
Follow these practices when integrating Lindy with ZenRows:
-
Define Clear Objectives
- Identify your specific goals before starting. This guides your configuration and workflow design.
- Example: For e-commerce scraping, decide whether you need product names, prices, descriptions, or all three.
-
Write Precise AI Prompts
- Craft specific, goal-oriented prompts for AI agents.
- Good: “Extract product names and format them as a list.”
- Avoid: “Process this data.”
-
Optimize Data Transformation
- Ensure the AI agent’s output format matches subsequent steps (like spreadsheet rows).
- Test different prompts to refine the transformation process.
-
Test Each Step
- Verify each workflow component individually before connecting them.
- Use Lindy’s testing tools to debug issues step by step.
Conclusion
Integrating ZenRows with Lindy automates web data extraction and streamlines your workflows. This combination eliminates manual data collection tasks and enables intelligent processing of scraped information.