What this workflow does
This workflow automatically creates Arabic kids’ stories with pictures and audio every 12 hours.
It solves the problem of spending too much time writing and preparing stories by hand.
The result is a ready story in Arabic, a matching image, and audio sent to a Telegram channel.
How the workflow works: Inputs, Processing, and Output
Inputs
- Schedule Trigger fires every 12 hours.
- System uses OpenAI GPT-4 Turbo, DALL-E for image, and audio generation APIs.
- Telegram bot channel is setup to send content.
Processing Steps
- Step 1: Generate a creative English story for kids with morals using a Langchain node on GPT-4 Turbo.
- Step 2: Translate the story into simple Arabic with moral lessons using another Langchain node.
- Step 3: Create a textual prompt describing story characters visually for image generation.
- Step 4: Generate a story scene image with DALL-E based on the character prompt.
- Step 5: Create an audio narration file from the Arabic story text.
- Step 6: Send the Arabic story, image, and audio to the Telegram channel for kids and parents.
Outputs
- Arabic kids’ story text, simple and culturally adapted.
- Story character image without text, created by DALL-E.
- Audio narration of the story, playable in Telegram.
- Delivered automatically to a Telegram audience on schedule.
Who should use this workflow
This fits educators, children’s librarians, and language app developers needing genuine Arabic stories quickly.
Users who want multisensory content without manual work benefit greatly.
Tools and services needed
- n8n automation platform: To run the workflow.
- OpenAI API: Access to GPT-4 Turbo, DALL-E, and audio generation.
- Telegram Bot API: Sends stories, images, and audio.
Beginner step-by-step: How to use this workflow in n8n
1. Download and import workflow
- Click the Download button on this page to get the workflow file.
- Inside n8n editor, choose Import from File and open the downloaded workflow.
2. Configure credentials and details
- Add OpenAI API Key in the credentials section.
- Setup your Telegram Bot API credentials.
- Update Telegram chat IDs for your target channel(s).
- Check any preset prompts or inputs are correct and copy-paste from the provided code blocks if needed.
3. Test the workflow
- Run the workflow once manually to verify text generation, translation, image, and audio creation work without errors.
- Confirm the story and media are sent to your Telegram channel.
4. Activate for production
- Turn the workflow status to active.
- The schedule trigger runs every 12 hours automatically.
You can adjust schedule or prompts anytime directly inside n8n.
For users wanting complete control, consider self-host n8n to manage data fully.
Common problems and fixes
- OpenAI API rate limit error: Slow down schedule or upgrade API plan.
- Telegram sendPhoto 400 error: Enable binary data and check image format.
- Translation incomplete: Enable advanced chunking in translation node.
Customizations
- Change story themes in the English story generation prompt.
- Modify character description prompts to alter image style or details.
- Adjust schedule timing for more or fewer runs.
- Add more language translation nodes for multilingual stories.
- Connect to multiple Telegram channels by changing chat IDs.
Summary
✓ Automates Arabic kids’ story creation with picture and voice every 12 hours.
✓ Saves hours of manual writing, translating, and media creation.
✓ Sends engaging stories directly to a Telegram channel.
✓ Allows easy customization for themes, languages, and delivery.
✓ Suitable for educators and developers wanting more time for teaching.
