Skip to content

Daily

Post images from Drive with captions in your brand voice

Images from your Drive folder are posted to your Facebook Page with captions written from the brand guide kept in Drive, one at a time.

Runs
Daily
Apps
Facebook Pages, Google Drive
AI
Yes, uses the built-in AI allowance
Access
drive.readonly (drive for move); pages_manage_posts

Send this to your assistant

Create a ClickRuntime automation: every weekday at 12, take the next unused image from my Drive 'To post' folder, write a caption using the brand guide document in the same folder, post it to my Facebook Page, and move the image to 'Posted'.

Paste it into your assistant. It tells you what it will send or change before it runs live.

First time? Adding ClickRuntime to your assistant takes about two minutes.

Why use it

Why teams use this automation

A coffee roaster's designer drops finished product photos into a shared Drive folder, and the brand guide lives in the same place. Turning those into regular posts still means someone writing captions in the right voice and remembering what was already posted.

Each weekday the next unused photo is posted with a caption written from the brand guide, and the file moves to a Posted folder. The designer keeps filling the folder; the posting takes care of itself.

What you get out of it

  • Your folder is your queue

    Drop images in Drive and they get posted in order.

  • On-brand captions

    Every caption follows the tone and rules in your brand guide.

  • Nothing posted twice

    Used images move to a Posted folder.

  • Designers and marketers in sync

    The person creating images doesn't need to schedule anything.

How it works

What happens, step by step

  1. Every weekday, ClickRuntime picks the oldest image in your Drive 'To post' folder.

  2. It reads your brand guide from the same folder.

  3. AI writes a caption in your brand voice, and the image is posted to your Facebook Page.

  4. The image moves to your 'Posted' folder so it's never used again.

Before it runs live

  • Connect Facebook Pages
  • Connect Google Drive

What you get

RunsDaily
Post images from Drive with captions in your brand voicetoday, 9:00Succeeded
Facebook · Northwind RoastersMeet our Ethiopia Guji: bright, floral and best before 10am. ☕ #northwindroasters

Build your own

Need it to work differently?

This template is a starting point. Copy the prompt and change it, or describe a different automation from scratch, with your own conditions, more apps or an AI step. Your assistant writes it, tests it and runs it on ClickRuntime.
  • Your own rules

    Conditions, thresholds, filters and exceptions, written the way you'd explain them to a colleague.

  • Any number of apps

    One automation can read from one app and update several others. Over 248 apps are ready, and anything with an API works too.

  • AI where it helps

    Summaries, classification, extraction and drafts use ClickRuntime's built-in AI, with no extra key.

  • On a schedule or on each event

    Runs as often as every 5 minutes, or the moment an app sends an event, and keeps track of what it already handled.

Changes you can ask for

  • Run it at a different time, more or less often, or only on weekdays
  • Change what the AI looks for, or how it writes the result
  • Add another app, for example also send it to Slack
  • Combine it with other Facebook Pages and Google Drive steps into one automation

Under the hood

The code that runs this automation

This is the Python script that runs each time the automation starts. Your AI assistant writes it for you when you send the prompt, and you allow each step in your assistant. To change how the automation works, describe the change to your assistant and it updates the script for you. For every function it can use, see the script reference.
ai_social_posts_using_prompts_and_assets_stored_in_drive.pyexample
from google.oauth2.credentials import Credentials
from googleapiclient.discovery import build
from clickruntime import on_trigger, credentials, http, ai

PAGE_ID, TO_POST, POSTED, GUIDE = "1234567890", "folder-to-post-id", "folder-posted-id", "brand-guide-doc-id"

@on_trigger
def run(event):
    drive = build("drive", "v3", credentials=Credentials(credentials.connection("google", "work")), cache_discovery=False)
    files = drive.files().list(q=f"'{TO_POST}' in parents and mimeType contains 'image/'", orderBy="createdTime",
                               fields="files(id,name,description)", pageSize=1).execute()["files"]
    if not files:
        return {"posted": False}
    f = files[0]
    guide = drive.files().export(fileId=GUIDE, mimeType="text/plain").execute().decode()[:6000]
    caption = ai.generate(f"Brand guide:\n{guide}\n\nWrite a Facebook caption for the image '{f['name']}'. Notes: {f.get('description', '')}",
                          max_output_tokens=200).text.strip()
    image = drive.files().get_media(fileId=f["id"]).execute()
    post = http.post(f"https://graph.facebook.com/v21.0/{PAGE_ID}/photos", data={"caption": caption,
                     "access_token": credentials.connection("facebook", "work")}, files={"source": image}).json()
    drive.files().update(fileId=f["id"], addParents=POSTED, removeParents=TO_POST).execute()
    return {"post": post.get("id")}

FAQ

Common questions

What should the brand guide include?
Your tone of voice, words to use and avoid, and any hashtags you always include. A page or two is plenty.
Can I add notes for a specific image?
Yes. Put a short note in the file's description in Drive and it's used when writing the caption.
What happens when the folder is empty?
Nothing is posted that day.
What permissions does it need?
drive.readonly (drive for move); pages_manage_posts. Nothing else in your accounts is used.
Does it need AI?
Yes. It uses ClickRuntime's built-in AI, so you don't need an OpenAI or Anthropic key. Every plan includes a monthly AI allowance.
How many runs does it use?
One run each time it runs (daily). Checks that find nothing to do and stop right away aren't counted.
Can I change how it works?
Yes. Describe the change to your AI assistant, for example a different schedule, channel or filter. It updates the automation, tests it and tells you what changed.

Set up “Post images from Drive with captions in your brand voice” from your assistant

Copy the prompt above, or connect your assistant first. Free plan, no credit card.