Quick Overview
This workflow runs every 15 minutes to monitor Google News (and optionally Reddit/Trustpilot) for brand mentions, deduplicates stories, uses Groq to classify sentiment/intent/severity, sends high-severity alerts to Slack with a suggested reply draft, and logs all results to Google Sheets with Slack-based error reporting.
How it works
- Runs every 15 minutes on a schedule.
- Fetches recent mentions from a Google News RSS search feed (with optional, disabled-by-default Reddit and Trustpilot HTTP sources).
- Normalizes each mention into a consistent schema and deduplicates near-identical stories based on title similarity.
- Sends each story to the Groq Chat Completions API to classify sentiment, intent, severity, and a short reasoning.
- If severity is high, asks Groq to draft a short public reply and posts an alert to a Slack channel including the classification, link, and suggested reply.
- Appends all processed mentions (including non-high severity) to a Google Sheets spreadsheet for logging.
- When a request or Groq call errors, formats the error details and posts them to a separate Slack error-reporting channel.
Setup
- Add a Groq API credential as an HTTP Header Auth connection (for calls to https://api.groq.com/openai/v1/chat/completions).
- Add a Slack OAuth credential and set the alert channel for high-severity mentions and a separate channel for automation errors.
- Add a Google Sheets OAuth2 credential and replace YOUR_GOOGLE_SHEET_ID (and sheet name if needed) in the logging step.
- Update the Google News RSS URL query to match the brand terms you want to monitor.
- (Optional) Enable the Reddit and/or Trustpilot HTTP requests, then provide the required API/OAuth access and connect their normalized outputs into the merge/deduplication path.