Workflows

Enrich Data from Google Sheet with OpenAI Agent and ScrapingBee

Explore this Workflow. Built for next generation AI app & agent building.

Automate the enrichment of company data with this workflow, designed to extract valuable information from a spreadsheet of company names and websites. It uses AI and web scraping to generate insights, including business area, value proposition, and customer profile, enhancing your company's data set for better decision-making.

Important notes

     
  • Check legal regulations: Web scraping is involved, so ensure you comply with the legal regulations in your country before proceeding. It's always better to be safe than sorry!
  •  
  • Mind those tokens: OpenAI tokens can accumulate quickly, so monitor usage to avoid unexpected charges. 💸

Main Workflow

Node 1 - Webhook

This node triggers the workflow via a webhook call. You can replace it with any other trigger, such as form submission, new row in Google Sheets, or a manual trigger.

Node 2 - Get Rows from Google Sheet

This node retrieves the list of companies from your spreadsheet. The columns in this Google Sheet include:

     
  • Company: The name of the company
  •  
  • Website: The website URL of the company
    These two fields are required at this step.
  •  
  • Business Area: The business area deduced by OpenAI from the scraped data
  •  
  • Offer: The offer deduced by OpenAI from the scraped data
  •  
  • Value Proposition: The value proposition deduced by OpenAI from the scraped data
  •  
  • Business Model: The business model deduced by OpenAI from the scraped data
  •  
  • ICP: The Ideal Customer Profile deduced by OpenAI from the scraped data
  •  
  • Additional Information: Information related to the scraped data, including:    
           
    • Information Sufficiency:        
                 
      • Description: Indicates if the information was sufficient to provide a full analysis.
      •          
      • Options: "Sufficient" or "Insufficient"
      •        
           
    •      
    • Insufficient Details:        
                 
      • Description: If labeled "Insufficient," specifies what information was missing or needed to complete the analysis.
      •        
           
    •      
    • Mismatched Content:        
                 
      • Description: Indicates whether the page content aligns with that of a typical company page.
      •        
           
    •      
    • Suggested Actions:        
                 
      • Description: Provides recommendations if the page content is insufficient or mismatched, such as verifying the URL or searching for alternative sources.
      •        
           
    •    
     

Node 3 - Loop Over Items

This node ensures that the website in the "extra workflow input" corresponds to the row being processed. You can delete this node, but ensure the "query" sent to the scraping workflow corresponds to the website of the specific company being scraped.

Node 4 - AI Agent

This AI agent is configured with a prompt to extract data from the content it receives. The node has three sub-nodes:

     
  • OpenAI Chat Model: The model used is currently gpt4-o-mini.
  •  
  • Call rantir Workflow: This sub-node calls the workflow to use ScrapingBee and retrieves the scraped data.
  •  
  • Structured Output Parser: This parser structures the output for clarity and ease of use, adding rows to the Google Sheet.

Node 5 - Update Company Row in Google Sheet

This node updates the specific company's row in Google Sheets with the enriched data.

Scraper Agent Workflow

Node 1 - Tool Called from Agent

This node triggers when the AI Agent calls the Scraper. A query is sent with:

     
  • Company name
  •  
  • Website: The URL of the website

Node 2 - Set Company URL

This node renames a field, which is useful for performing transformations on data received from the AI Agent.

Node 3 - ScrapingBee: Scrape Company's Website

This node scrapes data from the provided URL using ScrapingBee. You can use any scraper of your choice, but ScrapingBee is recommended as it allows you to configure scraper behavior directly. Once configured, copy the provided "curl" command and import it into rantir.

Node 4 - HTML to Markdown

This node converts the scraped HTML data to Markdown, which is then sent to OpenAI. The Markdown format generally uses fewer tokens than HTML.

Improving the Workflow

Here are some ways you can enhance this workflow:

     
  • Handle potential errors more effectively.
  •  
  • Configure the scraper tool to scrape other pages on the website. Although this will cost more tokens, it can be useful (e.g., scraping "Pricing" or "About Us" pages in addition to the homepage).
  •  
  • Instead of Google Sheets, connect directly to your CRM to enrich company data.
  •  
  • Trigger the workflow from form submissions on your website and send the scraped data about the lead to a Slack or Teams channel.
Workflow Elements
Google Sheets
HTTP Request
Edit Fields (Set)
Loop Over Items (Split in Batches)
Webhook
Markdown
Sticky Note
Execute Workflow Trigger
AI Agent
OpenAI Chat Model
Structured Output Parser
Call rantir Workflow Tool

Other workflows like this one

Your connected stack awaits to automate AI workflows with 24-7 uptime performance and engagement

Actioning Your Meeting Next Steps using Transcripts and AI

HTTP Request
Edit Fields (Set)
Google Drive
Switch
Google Calendar

Breakdown Documents into Study Notes using Templating MistralAI and Qdrant

Merge
Edit Fields (Set)
Loop Over Items (Split in Batches)
Switch
Wait

Build a Tax and Financial Assistant with AI

HTTP Request
Edit Fields (Set)
Loop Over Items (Split in Batches)
Switch
Compression

Building Chatbot for Movie Recommendations

GitHub
HTTP Request
Merge
Edit Fields (Set)
Sticky Note

WordPress or Webflow AI Chatbot with Rantir and OpenAI

HTTP Request
Merge
Postgres
Edit Fields (Set)
Loop Over Items (Split in Batches)

AI-powered WooCommerce Support-Agent

HTTP Request
If
Merge
Edit Fields (Set)
Webhook
Average ROI

401%

In ROI when switching to Rantir for automating their website, operations & integrations with AI.
average cost savings

+$128K

In Average savings from SaaS subscriptions, annually, and 2 optimized employee positions
startups Funding

$2.3B

Over $2 Billion dollars have been raised by our startup clients using Rantir for Services & Software.

They love working with Rantir

12x Signups for
Virtual Events

"I highly recommend Rantir, they are a great dev team with quick turn around on all projects and requests. We recently worked with them on updating our website and any changes, updates or modifications I needed were always taken care of quickly!"

Paige J.
Design Exp. Director

4X in Traffic

"The team at Rantir has lived up to every definition of the word "partner". They're adaptive, fast, and flexible (all the things you'd hope for). We're so thrilled with what we've accomplished so far and look forward to working alongside them in the future."

Kate W.
Marketing Director, Scoop

188% More Signups

"Working with the Rantir team was a pleasure. They guided us through the whole process from design to implementation, creating a great site on a tight deadline. They were responsive and adaptable throughout, and we'd be happy to work with them again in the future."

Garath W.
Growth Manager

Acquisition & Merger

"Working with the Rantir team early on made combined design and development with early conversations to implement AI within Onder. We were happy to work together to help bring no-code, with code and AI."

David K.
Head of Product

Over 700+ Talent and Rantir Partners to help you get started. Including Us.

Hire us for customization & AI development.  

Graphic.
AI No-Coder
Tayler F.
I generate beautiful, connected, landers with AI No Code software
Generative AI Art & Video
Avatar Placeholder
Malika V.
I onboard you to Flux, Midjourney & Synthesia or HeyGen
AI Marketing Flows
Avatar Placeholder
Bruno F.
I teach AI Marking & automated outreach
Generative software engineer
Avatar Placeholder
Christian B.
I help you onboard Cursor or Rantir with generating code

Join the Rantir Community around the world

Map.

AI Agents are the new Apps. Websites are the new Software.

Rantir University for learning how to build powerful AI Agents & Software you own.

Graphic.