Daily
Turn 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.
- Runs
- Daily
- Apps
- Facebook Pages, Google Drive
- AI
- Yes, uses the built-in AI allowance
- Access
- drive.file; instagram_content_publish
Send this to your assistant
Create a ClickRuntime automation: every day at 7, take the top five stories from my feeds, write a short slide for each, render them as images, save them to my Drive 'Carousels' folder and publish them as an Instagram carousel.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
A local news site wants a daily presence on Instagram, where younger readers are, but designing a carousel of headlines each morning takes a designer an hour.
Each morning the top stories become five clean slides with a headline and one-line summary. The slides are saved to Drive for the archive and published as a carousel, ready before the morning commute.
What you get out of it
Daily posts without a designer
Slides are made from a simple template, every day.
Built for Instagram
Carousels get more reach than single images or links.
An archive in Drive
Every day's slides are saved, ready to reuse.
Stories you choose
Only your chosen feeds are used.
How it works
What happens, step by step
Every morning, ClickRuntime reads your news feeds and takes the top stories.
AI writes a short headline and one-line summary for each.
Each story is turned into a slide image and saved to your Drive folder.
The slides are published together as an Instagram carousel.
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
import feedparser
from google.oauth2.credentials import Credentials
from googleapiclient.discovery import build
from googleapiclient.http import MediaInMemoryUpload
from clickruntime import on_trigger, credentials, http, ai
IG_ID, FOLDER, G = "17841400000000000", "folder-carousels-id", "https://graph.facebook.com/v21.0"
@on_trigger
def run(event):
stories = feedparser.parse("https://news.northwind-local.example/rss").entries[:5]
slides = ai.generate("For each story give a headline (max 8 words) and one-line summary:\n" + "\n".join(s.title for s in stories),
max_output_tokens=500, json_schema={"type": "array", "items": {"type": "object",
"properties": {"headline": {"type": "string"}, "summary": {"type": "string"}}}}).json
drive = build("drive", "v3", credentials=Credentials(credentials.connection("google", "work")), cache_discovery=False)
t, kids = {"access_token": credentials.connection("facebook", "work")}, []
for n, s in enumerate(slides):
svg = f'<svg xmlns="http://www.w3.org/2000/svg" width="1080" height="1080"><rect width="100%" height="100%" fill="#1d3557"/><text x="80" y="480" font-size="64" fill="#fff">{s["headline"]}</text><text x="80" y="600" font-size="36" fill="#ddd">{s["summary"]}</text></svg>'
png = http.post("https://render.northwind-local.example/svg-to-png", data=svg.encode()).content
f = drive.files().create(body={"name": f"slide-{n + 1}.png", "parents": [FOLDER]}, media_body=MediaInMemoryUpload(png, "image/png"),
fields="id,webContentLink").execute()
drive.permissions().create(fileId=f["id"], body={"type": "anyone", "role": "reader"}).execute()
kids.append(http.post(f"{G}/{IG_ID}/media", data={**t, "image_url": f["webContentLink"], "is_carousel_item": "true"}).json()["id"])
c = http.post(f"{G}/{IG_ID}/media", data={**t, "media_type": "CAROUSEL", "children": ",".join(kids), "caption": "Today's top stories"}).json()["id"]
http.post(f"{G}/{IG_ID}/media_publish", data={**t, "creation_id": c})
return {"slides": len(kids)}FAQ
Common questions
What do the slides look like?
Can I check slides before they're posted?
How many slides are made?
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 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.
See how it worksPost 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 worksKeep exploring
Set up “Turn daily news into an Instagram carousel saved in Drive” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.