Quick Overview
This workflow runs daily to find products in Google Sheets that are missing marketing copy, generates a short description and SEO meta title for each item using Google Gemini in rate-limited batches, writes the results back to the sheet, and posts a completion summary to Slack.
How it works
- Runs every day at 06:00 on a schedule.
- Reads product rows from Google Sheets that need descriptions.
- Processes the products in batches of five to stay within model rate limits.
- For each product, sends the product name, features, and target keywords to Google Gemini to generate a ~60-word description plus a "META:" SEO title line.
- Splits the Gemini output into separate description and meta title fields.
- Upserts the generated copy back into Google Sheets and, once all batches finish, posts a summary message to a Slack channel.
Setup
- Connect Google Sheets OAuth2, Google Gemini (PaLM) API credentials, and Slack OAuth2 credentials in n8n.
- Select the target Google Sheets spreadsheet and the "Products" sheet in both the read and write steps, and ensure it includes columns like Product Name, Features, Keywords, and fields to store the generated description and meta title.
- Set the Slack channel to post to and adjust the daily schedule time and batch size (currently 5) to match your catalog size and Gemini rate limits.