Quick overview
Youtube Video: https://youtu.be/BOodBD6HWSU?si=yEenUFBdYOq_1RVj
This workflow runs daily at 7AM to generate buyer-style prompts with Google Gemini, query Groq, OpenRouter, and a search-grounded Gemini agent (via Tavily), score whether your brand is mentioned, and log results to Google Sheets before posting a daily visibility digest to Slack.
How it works
- Runs every day at 7AM on a schedule.
- Loads your brand and competitor details, then asks Google Gemini to generate a JSON prompt bank for the day.
- Splits the prompt bank into individual prompts and processes them one by one.
- For each prompt, queries Groq (Llama 3.3) and OpenRouter (free model) for ungrounded answers, and uses a Gemini agent with Tavily web search to produce a search-grounded answer with citations.
- Sends the three answers to Google Gemini to evaluate brand recognition/mentions, sentiment and competitor lists, and compute an overall visibility score weighted toward the search-grounded answer.
- Appends each prompt’s scored results to a Google Sheets worksheet.
- Aggregates the day’s results into averages and posts a summary message to a Slack channel.
Setup
- Add credentials for Google Gemini (Google PaLM API / Generative Language API), Groq, OpenRouter, Tavily, Google Sheets (Service Account), and Slack.
- Update the Brand & Competitor Config values (brand name, domain, industry, competitors, target market, prompt count, and alert threshold).
- Select your target Google Sheets document and worksheet, and ensure it contains columns matching the fields appended by the workflow.
- Choose the Slack channel where the daily digest is posted.
- (Optional) Adjust the schedule time and the OpenRouter agent’s search limit/system instructions to fit your monitoring needs.