Quick overview
This workflow runs on a schedule, reads competitor URLs from Google Sheets, scrapes each site with Firecrawl, analyzes the content with OpenAI, logs results back to Google Sheets, generates an HTML report, converts it to a PDF via html2pdf.app, and emails the report using Gmail.
How it works
- Runs on a schedule and reads a list of competitor URLs from Google Sheets.
- Loops through each competitor and scrapes the website content using the Firecrawl API.
- Sends the scraped content to OpenAI to generate a structured competitive intelligence report using a defined schema.
- Formats the AI output into report fields, appends a summary row to Google Sheets, and renders a styled HTML report.
- Converts the HTML report to a PDF using the html2pdf.app API.
- Emails the report via Gmail (with the PDF attached when available) and continues to the next competitor.
Setup
- Add Google Sheets OAuth credentials and select the spreadsheet and sheet that contains a URL column for competitors, plus the sheet used to log results.
- Add a Firecrawl API credential (HTTP Bearer Auth) and ensure the competitor URL field matches what the scrape request expects (for example, a column named “Url”).
- Add OpenAI API credentials for the model used by the analysis step.
- Add an html2pdf.app API key (HTTP Header Auth) and confirm the request format required by your plan.
- Add Gmail OAuth credentials and replace the recipient address in the email step with your target email.
- Set the desired interval on the schedule trigger before activating the workflow.