AI-Powered Children s English Storytelling on Telegram with OpenAI n8n Workflow Template

n8n workflow template · 12 nodes · OpenAI

AI-Powered Children s English Storytelling on Telegram with OpenAI is a free n8n workflow template that runs on a schedule and works with OpenAI and Telegram. It has 12 nodes, 7 of them AI nodes (OpenAI Chat Model, Summarization Chain, Recursive Character Text Splitter and OpenAI). The notes inside the workflow say: “The workflow for children's stories serves as a valuable tool for content creators, educators, and parents looking to engage children with imaginative and educational storytelling. Here are some key use cases for this workflow” To run it, you add your own credentials for OpenAI API and Telegram Bot API.

At a glance

Trigger
Schedule Trigger (Schedule Trigger)
Nodes
12
Apps
OpenAI and Telegram
AI nodes
7
Credentials
2 types
Category
Chatbots and messaging

Apps and integrations

  • OpenAI
  • Telegram

Node types used

  • OpenAI Chat Model
  • Schedule Trigger
  • Summarization Chain
  • Recursive Character Text Splitter
  • OpenAI
  • Telegram
  • Edit Fields (Set)

How it works

The text below comes from the sticky notes inside the workflow. We removed links, code samples and anything that looks like a key or token.

Use Case for Setting Up a Workflow for Children's Stories

Check this example

The workflow for children's stories serves as a valuable tool for content creators, educators, and parents looking to engage children with imaginative and educational storytelling. Here are some key use cases for this workflow

  1. Content Creation: The workflow streamlines the process of creating captivating children's stories by providing a structured framework and automation for story generation, audio creation, and image production.
  1. Educational Resources: Teachers can use this workflow to develop educational materials that incorporate storytelling to make learning more engaging and interactive for students.
  1. Parental Engagement: Parents can utilize the workflow to share personalized stories with their children, fostering a love for reading and creativity while bonding over shared storytelling experiences.
  1. Community Building: Organizations and community groups can leverage the workflow to create and share children's stories as a way to connect with their audience and promote literacy and creativity.
  1. Inspiring Young Minds: By automating the process of creating and sharing enchanting children's stories, this workflow aims to inspire young minds, spark imagination, and instill a passion for storytelling in children.

Overall, the use case for this workflow extends to various settings where storytelling plays a significant role in engaging, educating, and entertaining children, making it a versatile tool for enhancing the storytelling experience.

Setup notes

The text below comes from the sticky notes inside the workflow. We removed links, code samples and anything that looks like a key or token.

Setting Up a Workflow for "AI-Powered Children's English Storytelling on Telegram"

In this guide, we will walk you through the process of setting up a workflow to create and share captivating children's stories using the provided configuration. Let's dive into the steps required to bring these imaginative tales to life on your Telegram channel

Steps to Setup the Workflow

  1. Import the Workflow
  • Copy the provided workflow JSON configuration.
  • In your n8n instance, go to Workflows and select "Import from JSON."
  • Paste the configuration and import the workflow.
  1. Configure Node Credentials
  • For nodes requiring API credentials (OpenAI and Telegram), create credentials with the appropriate API keys or tokens.
  1. Set Node Parameters
  • Modify node parameters as needed, such as chat IDs, prompts, and intervals.
  • Change the chatId in Config node to the ID of the chat you want the story to be posted.
  1. Ensure Data Flow
  • Check the connections between nodes to ensure a smooth flow of data and actions.
  1. Execute Once
  • Activate the "executeOnce" option in nodes where necessary to trigger actions only once during setup.
  1. Test the Workflow
  • Run the workflow to verify that each node functions correctly and data is processed as expected.
  1. Enable Recurring Triggers
  • Confirm that the Schedule Trigger node is set to trigger the workflow at the desired interval (every 12 hours).
  1. Initiate Workflow
  • Once everything is configured correctly, activate the workflow to start generating and sharing children's stories on Telegram.

By following these steps meticulously, you can seamlessly establish and operate the workflow designed to create captivating children's stories for your audience. Embrace the power of automation to inspire young minds and foster a love for storytelling through engaging narratives shared on Telegram.

Nodes in this workflow

The 12 nodes in file order (sticky notes excluded). Branches and connections determine execution order in n8n:

  1. OpenAI Chat Model (OpenAI Chat Model)
  2. Schedule Trigger (Schedule Trigger)
  3. OpenAI Chat Model2 (OpenAI Chat Model)
  4. Create a Prompt for DALL-E (Summarization Chain)
  5. Recursive Character Text Splitter (Recursive Character Text Splitter)
  6. Create a story (Summarization Chain)
  7. Generate Audio for the story (OpenAI)
  8. Generate a Picture for the story (OpenAI)
  9. Send Story Text (Telegram)
  10. Send Audio for the story (Telegram)
  11. Send Story Picture (Telegram)
  12. Config (Edit Fields (Set))

Credentials you need

  • OpenAI API – used by Generate Audio for the story, Generate a Picture for the story, OpenAI Chat Model and OpenAI Chat Model2
  • Telegram Bot API – used by Send Audio for the story, Send Story Picture and Send Story Text

Configure your own credentials after importing. Create each credential in n8n, then select it in the node.

How to import into n8n

  1. Download the JSON file with the button above.
  2. In n8n, open a new workflow, select the ... menu and choose Import from File. You can also paste the JSON straight into the editor canvas.
  3. Open each node that shows a warning and select or create its credential.
  4. Read the notes on the canvas, test the workflow with sample data, then activate it.

Do you need somewhere to run it? Read our guide to self-hosted n8n.

Need this customised?

We can adapt this workflow to your apps, data and process, then deploy and support it.

Contact Us