Skip to main content

AI lyrics study bot for Telegram — Translation, summary, vocabulary

Workflow preview

Workflow preview
100%
AI lyrics study bot for Telegram — Translation, summary, vocabulary preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

What this workflow is (About) This workflow turns a Telegram bot into an AI powered lyrics assistant . Users send a command plus a lyrics URL , and the flow downloads, cleans, and analyzes the text...

Best for

  • Content Creation automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.telegram, n8n-nodes-base.webhook, n8n-nodes-base.code, n8n-nodes-base.httprequest, n8n-nodes-base.set, n8n-nodes-base.if, n8n-nodes-base.noop

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Raphael De Carvalho Florencio.

Original n8n.io source

1.1 Workflow description

Title
AI lyrics study bot for Telegram — Translation, summary, vocabulary
Workflow name
AI lyrics study bot for Telegram — Translation, summary, vocabulary

What this workflow is (About)

This workflow turns a Telegram bot into an AI-powered lyrics assistant. Users send a command plus a lyrics URL, and the flow downloads, cleans, and analyzes the text, then replies on Telegram with translated lyrics, summaries, vocabulary, poetic devices, or an interpretation—all generated by AI (OpenAI).

What problems it solves

  • Centralizes lyrics retrieval + cleanup + AI analysis in one automated flow
  • Produces study-ready outputs (translation, vocabulary, figures of speech)
  • Saves time for teachers, learners, and music enthusiasts with instant results in chat

Key features

  • AI analysis using OpenAI (no secrets hardcoded; uses n8n Credentials)
  • Line-by-line translation, concise summaries, vocabulary lists
  • Poetic/literary device detection and emotional/symbolic interpretation
  • Robust ETL (extract, download, sanitize) and error handling
  • Clear Sticky Notes documenting routing, ETL, AI prompts, and messaging

Who it’s for

  • Language learners & teachers
  • Musicians, lyricists, and music bloggers
  • Anyone studying lyrics for meaning, style, or vocabulary

Input & output

  • Input: Telegram command with a public lyrics URL
  • Output: Telegram messages (Markdown/MarkdownV2), split into chunks if long

How it works

  • Telegram → Webhook receives a user message (e.g., /get_lyrics <URL>).
  • Routing (If/Switch) detects which command was sent.
  • Extract URL + Download (HTTP Request) fetches the lyrics page.
  • Cleanup (Code) strips HTML/scripts/styles and normalizes whitespace.
  • OpenAI (Chat) formats the result per command (translation, summary, vocabulary, analysis).
  • Telegram (Send Message) returns the final text; long outputs are split into chunks.
  • Error handling replies with friendly guidance for unsupported/incomplete commands.

Set up steps

  1. Create a Telegram bot with @BotFather and copy the bot token.

  2. In n8n, create Credentials → Telegram API and paste your token (no hardcoded keys in nodes).

  3. Create Credentials → OpenAI and paste your API key.

  4. Import the workflow and set a short webhook path (e.g., /lyrics-bot).

  5. Publish the webhook and set it on Telegram:

    https://api.telegram.org/bot<YOUR_BOT_TOKEN>/setWebhook?url=https://[YOUR_DOMAIN]/webhook/lyrics-bot
    
  6. (Optional) Restrict update types:

    curl -X POST https://api.telegram.org/bot<YOUR_BOT_TOKEN>/setWebhook \
      -H "Content-Type: application/json" \
      -d '{
        "url": "https://[YOUR_DOMAIN]/webhook/lyrics-bot",
        "allowed_updates": ["message"]
      }'
    
  7. Test by sending /start and then /get_lyrics <PUBLIC_URL> to your bot.

  8. If messages are long, ensure MarkdownV2 is used and special characters are escaped.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Send error message

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1

Block 3 - Webhook que recebe as mensagens

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2

Block 4 - Text reply

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1

Block 5 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - CleanUp

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 7 - Download_URL

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 8 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - Extract_URL

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 10 - Settings

Type / Role
n8n-nodes-base.set - set
Config choices
Version 2

Block 11 - Message_Filter

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 12 - If

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 13 - No Operation, do nothing

Type / Role
n8n-nodes-base.noOp - noOp
Config choices
Version 1

Block 14 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - /start

Type / Role
n8n-nodes-base.openAi - openAi
Config choices
Version 1

Block 16 - /get_lyrics

Type / Role
n8n-nodes-base.openAi - openAi
Config choices
Version 1

Block 17 - /interpret_lyrics

Type / Role
n8n-nodes-base.openAi - openAi
Config choices
Version 1

Block 18 - /study_lyrics

Type / Role
n8n-nodes-base.openAi - openAi
Config choices
Version 1

Block 19 - /summarize_lyrics

Type / Role
n8n-nodes-base.openAi - openAi
Config choices
Version 1

Block 20 - Switch

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.2

Block 21 - /vocabulary_lyrics

Type / Role
n8n-nodes-base.openAi - openAi
Config choices
Version 1

Block 22 - /lyrics_poetic_analysis

Type / Role
n8n-nodes-base.openAi - openAi
Config choices
Version 1

Block 23 - If1

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 24 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Showing the first 24 of 30 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow AI lyrics study bot for Telegram — Translation, summary, vocabulary
Complexity advanced
Nodes 30
Categories Content Creation, Multimodal AI
Author Raphael De Carvalho Florencio
Published 09 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/7195/7195.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does AI lyrics study bot for Telegram — Translation, summary, vocabulary do?

What this workflow is (About) This workflow turns a Telegram bot into an AI powered lyrics assistant . Users send a command plus a lyrics URL , and the flow downloads, cleans, and analyzes the text...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Content Creation, Multimodal AI use case.