Back to Templates

AI PPT Optimizer with gpt-image-2

Created by

Created by: Leo Wood || leo-wood
Leo Wood

Last update

Last update a day ago

Categories

Share


What it does:

  1. Initializes Google Sheets tabs: jobs, slides, events
  2. Creates a Google Drive root folder for optimizer jobs
  3. Reads slide images from a Google Drive input folder
  4. Sends each image to gpt-image-2. Converts base64 image results to binary
  5. Uploads edited images to Google Drive
  6. Tracks status per slide in Google Sheets
  7. Retries only failed or timeout slides

Requirements:

  • Google Drive OAuth2 credential
  • Google Sheets OAuth2 credential
  • WisGateAI/OpenAI API key
  • Source slides must already be exported as images

Webhook inputs:

  • spreadsheetId
  • driveRootFolderId
  • inputFolderId
  • jobName
  • timeoutMs
  • waitSeconds
  • basePrompt

Limitations:

  • Does not convert PPTX/PDF to images
  • Does not export PPTX/PDF
  • Output is a Google Drive folder containing generated slide images