Skip to content
NEWMarketplace and your team: sell what you build, and get plans and changes that are tested before you see them. See what is new

Library / Data Sync & ETL

Data Sync & ETL

Find businesses with unanswered reviews using Apify, Supabase and Google Sheets

When an API call/webhook arrives, it moves and syncs data using Google Drive, Google Sheets, Postgres, Apify.

What it does

## Find businesses with unanswered reviews using Apify, Supabase, and Google Sheets ### How it works This workflow receives a request from Lovable, validates the search input, records the request in Supabase/Postgres, and calls Apify to scrape business reviews. It groups reviews by business, scores and ranks businesses with unanswered reviews, saves the opportunities, then creates and shares a Google Sheet containing the results. It updates the request status and returns either the completed sheet details or an error response through the webhook. ### Setup steps - Configure the webhook URL in Lovable or the calling application and ensure the request body matches the expected input fields used by the validation code. - Add Postgres/Supabase credentials and verify the request and opportunities tables match the SQL used in the Postgres nodes. - Add an Apify API token and confirm the Apify actor endpoint and input parameters in the scrape request node. - Connect Google Sheets and Google Drive credentials with permission to create spreadsheets, write values through the Sheets API, and update sharing permissions. - Review the code nodes for required field names, ranking criteria, and expected response structure before activating the workflow. ### Customization Adjust the search parameters, scoring formula, minimum review thresholds, and Google Sheet columns to target different business types, locations, or lead qualification rules.

The steps

  1. When New Request Received
  2. Validate Input Data
  3. Insert Request Record
  4. Prepare Review Search Params
  5. Fetch Google Reviews
  6. Group Reviews by Business
  7. Rank Businesses by Reviews
  8. Store Ranked Businesses
  9. Prepare Google Sheet Data
  10. Read Google Sheet Template
  11. Update Google Sheet Data
  12. Share Google Sheet Online
  13. Record Request Success
  14. Send Success Response

16 steps in total.

Similar automations