Daily
Publish AI posts to your Page with an email record
AI writes and publishes a Facebook post from your topic list, and you get an email with the text and link of what went out.
- Runs
- Daily
- Apps
- Facebook Pages, Gmail
- AI
- Yes, uses the built-in AI allowance
- Access
- pages_manage_posts; gmail.send
Send this to your assistant
Create a ClickRuntime automation: every Tuesday and Thursday at 10, take the next topic from my list, write and publish a Facebook post about it, and email me the post text and link.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
An accountancy practice knows its Facebook Page should share useful tips, but nobody in the office wants to write posts. When they do get written, nobody is sure what was posted last month.
Twice a week the next topic becomes a published post, and an email confirms exactly what went out with a link. The inbox doubles as a record of everything posted.
What you get out of it
Posts go out without anyone writing them
Your list of topics turns into a steady schedule.
A record in your inbox
Every post is confirmed by email, searchable later.
Catch mistakes quickly
The email lets you check each post and fix it from the link.
Consistent voice
Every post follows the tone you describe once.
How it works
What happens, step by step
On your chosen days, ClickRuntime takes the next topic from your list.
AI writes a Facebook post about it.
The post is published on your Facebook Page and the topic is crossed off.
You get an email from your Gmail with the post text and a link.
Before it runs live
- Connect Facebook Pages
- Connect Google through your own Google app (a one-time, 10-minute setup), so it works with your own Gmail
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 Gmail steps into one automation
Under the hood
The code that runs this automation
import base64
from google.oauth2.credentials import Credentials
from googleapiclient.discovery import build
from clickruntime import on_trigger, credentials, http, ai, state
PAGE_ID = "1234567890"
@on_trigger
def run(event):
topics = state.get("topics") or []
gmail = build("gmail", "v1", credentials=Credentials(credentials.connection("google", "work")), cache_discovery=False)
if topics:
topic = topics.pop(0)
text = ai.generate(f"Helpful Facebook post for an accountancy practice about: {topic}", max_output_tokens=250).text.strip()
post = http.post(f"https://graph.facebook.com/v21.0/{PAGE_ID}/feed",
data={"message": text, "access_token": credentials.connection("facebook", "work")}).json()
subject, body = f"Posted: {topic}", f"{text}\n\nhttps://facebook.com/{post['id']}"
else:
subject, body = "Topic list is empty", "Add more topics to keep posting."
raw = f"To: me\r\nSubject: {subject}\r\n\r\n{body}"
gmail.users().messages().send(userId="me", body={"raw": base64.urlsafe_b64encode(raw.encode()).decode()}).execute()
state.set("topics", topics)
return {"subject": subject}FAQ
Common questions
How do I add topics?
Can I approve posts first?
What if the list 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
Approve trend-based Facebook posts from your inbox
AI drafts posts about trending topics in your field and emails them to you; the ones you approve are published to your Page.
See how it worksGet a Meta Ads report with commentary by email
Each Monday you get an email with last week's Meta ad results by campaign and a few lines on what they mean.
See how it worksGet a weekly email on how people feel about your posts
Every week you get an email summarising the comments on your recent Facebook posts: overall mood, common themes and anything to follow up.
See how it worksKeep exploring
Set up “Publish AI posts to your Page with an email record” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.