See llms.txt for all machine-readable content.

Back to Templates

Get client-approved social posts with Google Sheets, Gemini, Gmail and PostWire

Quick Overview

This workflow runs daily, pulls the next ready content brief from Google Sheets, drafts LinkedIn/Instagram/Facebook copy with Google Gemini, emails the client a review form via Gmail, and publishes approved posts (with an image) to the client’s accounts through PostWire while writing results back to the sheet.

How it works

  1. Runs every day at 9:00 and reads Google Sheets rows with status set to "ready".
  2. Validates that the row contains a brief, a valid client email address, and an HTTPS image URL, then processes only one row and marks it as "waiting for client" in Google Sheets.
  3. Fetches all brands from PostWire and matches the row’s brand/client name to a PostWire brand ID.
  4. Uses Google Gemini to generate draft text for LinkedIn, Instagram, and Facebook based only on the brief and the configured writing voice.
  5. Sends the drafts to the client via Gmail with an approval form and waits up to three days for a response.
  6. If the client approves, publishes the posts with the image to LinkedIn, Instagram, and Facebook via PostWire, then writes the links and status to Google Sheets and emails the links to the client.
  7. If the client requests changes, does not publish and instead saves the notes/status to Google Sheets and emails the change request to the agency, and if any step fails it records a fix message in the sheet and emails the agency.

Setup

  1. Create and connect a Google Sheets spreadsheet for your content queue (including columns like client, client_email, brand, brief, image_url, status, links, note, updated_at) and select the correct document and sheet in each Google Sheets step.
  2. Add credentials for Google Sheets, Google Gemini, and Gmail (used to send the approval email, wait for the form response, and notify both client and agency).
  3. Install/configure the PostWire community node, create one PostWire brand per client with their social accounts connected, and add your PostWire API credential.
  4. Update the agency name, notification email address, and desired writing voice in the agency settings so client and internal emails are sent to the right recipients.