All workflows
Telegram logoOpenAI logoStability AI logoImgBB logo

Send a topic to Telegram, get an illustrated bedtime story

Message a topic to your Telegram chat and get back a gentle bedtime story written for your child, with a picture to go with it.

On new message in Telegram4 apps6 steps

Apps it connects

Authenticate each one once and the workflow is ready to run.

What it does

Each integration step this workflow runs, in order, what it is for, and the conditions and loops that decide when it runs.

  1. 1TelegramNew message triggerWakes the workflow when a message arrives in your Telegram chat, taking its text as tonight's story topic.
  2. 2OpenAIQuery modelAsks the AI to write a gentle story with your child as a character, ending with one calm scene to illustrate.
  3. 3Stability AIGenerate imageDraws a soft, warm storybook illustration of the scene the story describes, with no text or frightening elements.
  4. If pictureRef is not empty

    1. 4ImgBBUpload imageHosts the picture at a public address Telegram can fetch, kept for a week, so it can be sent as a photo.
  5. If pictureUrl is not empty

    1. 5TelegramSend photoSends the illustration above the story with a caption naming your child and the topic, only when hosting succeeded.
  6. 6TelegramSend messageSends the story as text, or a short reply when the message names no topic or no story could be written.

How it works

What happens on each run, in plain English.

Whenever you message a few words to your Telegram chat, a lost mitten or a dragon scared of the dark, AI writes a short bedtime story for your child by name at their reading level, and a picture of one calm scene is drawn and sent above it. A message too short to name a topic gets a friendly reply asking for one.

The story is written to be read aloud: short sentences, words a child of that age knows, and a calm, sleepy ending. The instructions rule out anything frightening, nobody lost or left alone, no unfriendly creatures, no sad ending, and no real people, brands or places. The picture is drawn from a scene the story itself describes and hosted so Telegram can fetch it. If any part of that fails the story is still sent as text, so a run either shows a real picture or none. Its own story messages are recognised and ignored.

You need a Telegram bot in your chat, the child's name and age, and connections to an image generator and an image host.

telegramstorychildrenbedtimeaiimages

Start from a workflow that already works.

Add "Send a topic to Telegram, get an illustrated bedtime story" to your workspace, connect its apps, and make it yours. No credit card required.

Free plan available · No credit card required