🎬 AI lyrics study bot for Telegram β€” Translation, summary, vocabulary

⚑ 489 views · 🎬 Content Creation & Video

Description

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

Key features

Who it’s for

Input & output

How it works

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.

πŸ”— Nodes Used

HTTP Request, Webhook, Telegram, OpenAI

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup