Skip to main content
All case studies
AI & AutomationMarketing & Web

From 1 Hour per Design to 3 Minutes: an AI Image Generator for Social Media Content

Case study: an AI image generator for social media content with Gemini and Google Apps Script, cutting one design from 30–60 minutes down to 3.

Share

Share to Instagram Stories

Preparing image…

  1. The link is copied.
  2. Download the image, then post it to Instagram Stories from your phone.
  3. Add a Link sticker to your Story and paste the link.
Download image

Instagram Stories can only be posted from the phone app.

Share to TikTok

Preparing image…

  1. The caption and link are copied.
  2. Download the image, then post it as a photo on TikTok.
  3. Paste the caption before you post.
Download image

Easiest to post from the TikTok app on your phone.

Client
A national-scale digital platform
Role
Automation & AI Engineer
Tools
Gemini 2.5 Flash Image API, Google Apps Script, Google Sheets, Google Drive
Collage of the AI image generator system: an automatic prompt table in Google Sheets, the Factory Content menu, and finished designs stored in Google Drive

I worked with a national-scale digital platform that has to fill its social media every day with promotional content for dozens of partner brands, from F&B and retail to cinemas. The volume is high, the formats are similar, and what's needed isn't the best-looking design, it's a design that's clean enough and done fast.

I built an AI image generator on Google Apps Script and the Gemini 2.5 Flash Image API. The team just fills in a table in Google Sheets, and the image generates itself and gets saved neatly to Google Drive.

The problem: graphic designers burning out on repetitive work

Every day the graphic design team had to produce 10 to 15 pieces of content. The content was repetitive and didn't need high quality, what mattered was hitting the volume. One design could take 30 minutes to an hour.

As a result, designers' time went into high-volume content, and the work that actually needed high quality got less attention.

The approach: patterned prompts, not typing from scratch

I noticed people's problems with AI image generation usually come down to the prompt. But for content like this, there's actually a pattern that stays the same every time: where the logo goes, which image or product asset gets used, and what the copy says. All of that material was already available.

So instead of everyone writing their own prompt, I turned that pattern into columns in a table. A formula assembles the prompt, Apps Script runs it, the AI generates the image, and even a non-technical person can use it right away.

  1. 1Fill in the tableIndustry, design style, color, photo, logo, and copy
  2. 2Prompt from a formulaThe prompt is assembled from the same pattern
  3. 3Apps ScriptRuns the generation from a menu in Sheets
  4. 4Gemini APIGenerates the image with the logo and reference assets
  5. 5Google DriveFile saved neatly, its link added to the table

What I built

A table that acts as the design "brief"

Every design input is filled in through a table in Google Sheets. Industry, design style, main color, and photo type are picked from dropdowns, so the results stay consistent and no one has to think up prompt wording. The design style is just a pick from a list, from Minimalist & Clean and Playful & Colorful to Corporate & Professional and Cinematic / Realistic.

The Industries, Design Style, Main Color, and Photo columns in Google Sheets, with a dropdown of design style options like Futuristic, Cinematic, Corporate, Modern, and Playful
Design style, color, and photo picked from dropdowns.

The prompt is assembled automatically

From the table's contents, a formula in Google Sheets assembles a complete prompt in the Prompt column: a 4:5 ratio for social media, logo position, a reference image for the background, the color style and typography to follow, and the headline, details, and CTA. Logo, asset, and reference links just get pasted into their column, and the finished image shows up in the FILE OUTPUT column.

The Auto Prompt sheet with columns for subheadline, CTA link, barcode, outlet and product reference, the automatically assembled prompt, and the output file link
The Auto Prompt sheet: the prompt assembled automatically from the table's contents. The client's content and links are blurred.

Generate from one menu

Once the prompt is ready, Apps Script sends it to Gemini. The admin just opens the Factory Content menu in Google Sheets: generate every image at once, generate only the checked rows, or revise an image that isn't quite right.

The Factory Content menu in Google Sheets, with Generate All Images, Generate Selected Images (Checkbox), and Revise Image
The Factory Content menu, with the interface in Indonesian, for generating and revising images.

Results land neatly in Google Drive

Every finished image is saved straight into a Google Drive folder with consistent naming, so the team never has to download, rename, and move files one by one.

A Google Drive folder with dozens of finished content designs in a grid view
Generated results, organized in Google Drive. File names and designs are blurred, since they belong to the client.

Results

Before

  • One design took 30 minutes to an hour
  • Designers spent their time on 10–15 repetitive pieces of content a day
  • Work that needed high quality got less attention

After

  • One image is done in 3 minutes
  • A non-technical person just fills in the table, then generates
  • Files organized neatly in Google Drive, designers free to focus on work that matters
Per image, previously 30–60 minutes
3 minutes
API cost per image, versus Rp 50,000–100,000 per design
±Rp 700
Cheaper for high-volume content
70–140x

Team productivity went up, and production costs dropped sharply. Designers now have time again for work that genuinely needs a creative touch, while high-volume content runs without them.

Found this useful? Share it with a friend or your team.

Share

Share to Instagram Stories

Preparing image…

  1. The link is copied.
  2. Download the image, then post it to Instagram Stories from your phone.
  3. Add a Link sticker to your Story and paste the link.
Download image

Instagram Stories can only be posted from the phone app.

Share to TikTok

Preparing image…

  1. The caption and link are copied.
  2. Download the image, then post it as a photo on TikTok.
  3. Paste the caption before you post.
Download image

Easiest to post from the TikTok app on your phone.

Is your team still doing something by hand?

Tell me about it, and let's find the fix together.