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'.
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
Every weekday, ClickRuntime picks the oldest image in your Drive 'To post' folder.
It reads your brand guide from the same folder.
AI writes a caption in your brand voice, and the image is posted to your Facebook Page.
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
Build your own
Need it to work differently?
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
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?
Can I add notes for a specific image?
What happens when the folder is empty?
What permissions does it need?
Does it need AI?
How many runs does it use?
Can I change how it works?
Related
You might also like
Post Instagram Reels from a Drive folder
Videos you drop in a Drive folder are posted as Instagram Reels with captions, one at a time on your schedule.
See how it worksPost image carousels from Drive to Instagram and Facebook
Images in your Drive folder are posted as carousels on Instagram and as photo posts on your Facebook Page, with captions, on your schedule.
See how it worksTurn daily news into an Instagram carousel saved in Drive
Each day the top stories from your feeds become a branded Instagram carousel, with the slides saved to Drive and the post published.
See how it worksKeep exploring
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.