Skip to content

Daily

Publish AI posts to your Page and get a Telegram note

AI writes and publishes a post on your Facebook Page from your topic list, and Telegram tells you what went out.

Runs
Daily
Apps
Facebook Pages, Telegram
AI
Yes, uses the built-in AI allowance
Access
pages_manage_posts; bot token

Send this to your assistant

Create a ClickRuntime automation: every weekday at 10, take the next topic from my list, write a Facebook post about it, publish it to my Page, and send me the text and link on Telegram.

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 dog groomer wants a lively Facebook Page but has wet hands most of the day. They keep a list of ideas, such as coat care tips, before-and-after stories and seasonal reminders, but never find time to write them up.

Each weekday the next idea becomes a published post, and a Telegram message shows what went out with a link. The groomer glances at it between appointments and can delete or edit anything that isn't right.

What you get out of it

  • A Page that never goes quiet

    One post a weekday, without breaking off from work.

  • You always know what's live

    The Telegram note shows the exact text and link.

  • Quick to correct

    Spot something off and fix it from the link straight away.

  • Ideas used in order

    Your topic list is worked through without repeats.

How it works

What happens, step by step

  1. Every weekday, ClickRuntime takes the next topic from your list.

  2. AI writes a Facebook post about it in your voice.

  3. The post is published to your Facebook Page and the topic is crossed off.

  4. You get a Telegram message with the text and a link to the post.

Before it runs live

  • Connect Facebook Pages
  • Connect Telegram

What you get

RunsDaily
Publish AI posts to your Page and get a Telegram notetoday, 9:00Succeeded
Telegram · Page botPosted: Autumn means muddy paws! Three tips to keep your dog's coat clean between grooms... facebook.com/1234_5678

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 Telegram 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_posts_for_my_page_with_telegram_confirmation.pyexample
from clickruntime import on_trigger, credentials, http, ai, state

PAGE_ID, CHAT = "1234567890", "123456789"

@on_trigger
def run(event):
    token = credentials.secret("TELEGRAM_BOT_TOKEN")
    topics = state.get("topics") or []
    if not topics:
        http.post(f"https://api.telegram.org/bot{token}/sendMessage", json={"chat_id": CHAT, "text": "Topic list is empty."})
        return {"posted": False}
    topic = topics.pop(0)
    text = ai.generate(f"Friendly Facebook post for a dog grooming salon 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()
    http.post(f"https://api.telegram.org/bot{token}/sendMessage",
              json={"chat_id": CHAT, "text": f"Posted:\n{text}\nhttps://facebook.com/{post['id']}"})
    state.set("topics", topics)
    return {"post": post["id"]}

FAQ

Common questions

How do I add topics?
List them in the prompt, or send them to your bot and ask your AI assistant to add them.
Can I approve before it posts?
Yes. Ask for the approval version, where the draft comes to Telegram with buttons first.
What if the list runs out?
Nothing is posted, and Telegram tells you it's time to add more topics.
What permissions does it need?
pages_manage_posts; bot token. 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 “Publish AI posts to your Page and get a Telegram note” from your assistant

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