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
- When New Request Received
- Validate Input Data
- Insert Request Record
- Prepare Review Search Params
- Fetch Google Reviews
- Group Reviews by Business
- Rank Businesses by Reviews
- Store Ranked Businesses
- Prepare Google Sheet Data
- Read Google Sheet Template
- Update Google Sheet Data
- Share Google Sheet Online
- Record Request Success
- Send Success Response
16 steps in total.
Similar automations
RAG & Knowledge BasesReply to Facebook comments using RAG with Google Drive, Supabase, OpenAI and Postgres33 stepsData Sync & ETLFill Supabase Postgres Records with Gemini6 stepsAlerts & NotificationsChase unanswered quotes by SMS with Twilio and a webhook20 stepsRAG & Knowledge BasesChat with Supabase Vector Store and Postgres Memory12 steps