Back to Catalog

Templates by Shohani

Automatically copy & translate Telegram channel content with GPT-4o-mini

Overview This n8n workflow automatically fetches the latest post from a Telegram channel, translates it using OpenAI, and republishes it to another channel. It supports text, images, and videos. Features Works Without Admin Privileges - Does not require any bot to be an admin in the source channel. Scheduled execution - Runs daily at a configurable time AI-powered translation - Uses OpenAI GPT-4o-mini for natural translations Multi-media support - Handles text, images, and videos Easy configuration - All settings in one centralized node Automatic content cleaning - Removes original channel signatures Prerequisites Required Credentials Telegram Bot API Create a bot via @BotFather Get your bot token Add the bot as an admin to your target channel OpenAI API Sign up at OpenAI Platform Generate an API key Ensure you have sufficient credits Channel Requirements Source Telegram channel must be public Bot must have admin rights in the target channel Setup Instructions Import the Workflow Copy the workflow JSON and import it into your n8n instance The workflow will be imported in inactive state Configure Credentials Telegram Bot Credentials Go to Credentials → Add Credential Select Telegram Enter your bot token from BotFather Test the connection Save as "TelegramBot" OpenAI Credentials Go to Credentials → Add Credential Select OpenAI Enter your OpenAI API key Save as "OpenAI API" Configure Channel Settings Open the "Set Source Channel" node and modify: javascript sourceChannel: "channel_here", // Source channel username (without @) targetChannel: "@yourchannelhere", // Target channel (@channel or chat_id) targetLanguage: "Persian", // Target language for translation channelSignature: "signature text" // The channel signature to replaced Adjust Schedule (Optional) Open the "Daily Schedule" node Default: Runs daily at 9:00 AM Modify triggerAtHour and triggerAtMinute as needed Test the Workflow Click "Execute Workflow" to test manually Check if content appears in your target channel Verify translation quality and formatting Activate the Workflow Toggle the workflow to Active status Monitor execution logs for any errors Content Filtering Modify the "Clean Post Content" node to remove specific text patterns: javascript let cleanPost = $input.first().json.post .replaceAll('unwanted_text', '') .replaceAll(/regex_pattern/g, '') .trim(); Multiple Source Channels To monitor multiple channels: Duplicate the workflow Change the sourceChannel in each copy Use different schedules to avoid conflicts Custom Scheduling The Schedule Trigger supports various patterns: Hourly: { "triggerAtMinute": 0 } Weekly: { "triggerAtWeekday": 1, "triggerAtHour": 9 } Multiple times: Use multiple schedule nodes Troubleshooting Common Issues No content fetched Verify source channel is public Check if channel name is correct (without @) Ensure channel has recent posts Translation fails Verify OpenAI API key is valid Check API usage limits and credits Ensure content is not empty Can't send to target channel Verify bot is admin in target channel Check channel username/ID format Test bot permissions manually Compliance Respect copyright and fair use policies Add proper attribution when required Follow Telegram's Terms of Service

ShohaniBy Shohani
1325

Automatic workflow backups to GitLab with GPT-4.1 documentation generation

Auto backup n8n workflows to GitLab with AI-generated documentation This n8n template automatically backs up your workflows to a GitLab repository whenever they're updated or activated, and generates README documentation using AI. This workflow can be aslo added as a sub-workflow to any existing workflow to enable backup functionality. Who's it for This template is perfect for n8n users who want to: Maintain version control of their workflows Create automatic backups in Git repositories Generate documentation for their workflows using AI Keep their workflow library organized and documented How it works The workflow monitors n8n for workflow updates and activations, then automatically saves the workflow JSON to GitLab and generates a README file using OpenAI: Trigger Detection: Uses n8n Trigger to detect when workflows are updated or activated Workflow Retrieval: Fetches the complete workflow data using the n8n API Repository Check: Lists existing files in GitLab to determine if the workflow already exists Smart File Management: Either creates a new file or updates an existing one based on the repository state AI Documentation: Generates a README.md file using OpenAI's GPT model to document the workflow GitLab Storage: Saves both the workflow JSON and README to organized folders in your GitLab repository Requirements GitLab account with API access and a repository named "all_projects" n8n API credentials for accessing workflow data OpenAI API key for generating documentation GitLab personal access token with repository write permissions How to set up Configure GitLab credentials: Add your GitLab API credentials in the GitLab nodes Set up n8n API: Configure your n8n API credentials for the workflow retrieval node Add OpenAI credentials: Set up your OpenAI API key in the "Message a model" node Update repository details: Modify the owner and repository name in GitLab nodes to match your setup Test the workflow: Save and activate the workflow to test the backup functionality How to customize the workflow Change repository structure: Modify the file path expressions to organize workflows differently Customize commit messages: Update the commit message templates in GitLab nodes Enhance AI documentation: Modify the OpenAI prompt to generate different styles of documentation Add file filtering: Include conditions to backup only specific workflows Extend triggers: Add webhook or schedule triggers for different backup scenarios Multiple repositories: Duplicate GitLab nodes to backup to multiple repositories simultaneously

ShohaniBy Shohani
484

Send daily inspirational quotes with Gemini translation to Telegram subscribers

Send daily inspirational quotes with AI translation to Telegram subscribers This n8n workflow creates an automated daily quote bot that fetches inspirational quotes, translates them using AI, adds emoji "stickers," and sends them to registered Telegram subscribers. Perfect for content creators, coaches, or anyone wanting to share daily motivation with their audience. Who's it for Content creators and social media managers Life coaches and motivational speakers Community managers running Telegram channels Anyone wanting to automate daily inspirational content Developers learning n8n automation with AI integration How it works The workflow operates on two main flows: Daily Quote Distribution: Schedule Trigger runs daily to fetch a random inspirational quote HTTP Request fetches quotes from the ZenQuotes API (free service) Google Gemini AI translates the quote to your target language and adds relevant emoji "stickers" Google Sheets retrieves the list of registered subscribers Telegram sends the formatted quote (original + translated + emojis) to all subscribers User Registration: Telegram Trigger listens for new messages to your bot Google Sheets automatically registers new users who interact with the bot Requirements Telegram Bot Token - Create a bot via @BotFather on Telegram Google Gemini API - For AI translation and emoji enhancement Google Sheets - To store subscriber list (free Google account) ZenQuotes API - Free, no API key required How to set up Create Telegram Bot: Message @BotFather on Telegram, create a new bot, and save the token Set up Google Sheets: Create a spreadsheet with columns: registered_users, date Configure Gemini API: Get your API key from Google AI Studio Update the Set Fields node: Configure your target language and bot preferences Test the workflow: Send a message to your bot to register, then manually trigger the quote sending How to customize the workflow Change target language: Modify the AI prompt in the LLM Chain node to translate to any language Adjust sending schedule: Update the Schedule Trigger to send quotes at your preferred time/frequency Customize quote sources: Replace the HTTP Request with other quote APIs or your own content Add quote categories: Enhance the AI prompt to categorize quotes (motivational, business, life, etc.) Include user preferences: Expand Google Sheets to store user language preferences for personalized translations Good to know The workflow automatically handles new subscriber registration Supports MarkdownV2 formatting for rich text in Telegram Uses emoji "stickerization" to make quotes more engaging and visual Demo bot working with this workflow is @sgsbot on Telegram

ShohaniBy Shohani
215

Convert Telegram channel posts to WooCommerce products automatically

Auto-publish Telegram channel posts to WooCommerce store This n8n template automatically converts Telegram channel posts into WooCommerce products, perfect for businesses that share products on Telegram and want to sync them with their online shop. Who's it for E-commerce businesses, dropshippers, and retailers who: Use Telegram channels to showcase products Want to automatically sync products to their WooCommerce store Need to reduce manual data entry between platforms Handle multiple product images and want them properly organized How it works The workflow monitors your Telegram channel for new posts and automatically creates corresponding WooCommerce products: Telegram Trigger detects new channel posts with photos and captions Text Processing extracts product details from the post: First line becomes the product title First hashtag determines the product category Price is extracted using regex patterns Channel signature is removed from description Image Handling downloads and uploads images to WordPress media library Category Matching fetches WooCommerce categories and matches them with hashtags Product Creation creates the WooCommerce product with all extracted data Multi-Image Support handles posts with multiple images by updating the product How to set up Telegram Setup: Create a Telegram bot and get the API token Add the bot to your channel as an administrator Configure the Telegram Trigger with your bot credentials WooCommerce Setup: Enable WooCommerce REST API in your WordPress admin Create API keys with read/write permissions Configure the WooCommerce nodes with your API credentials WordPress Setup: Configure HTTP Basic Auth for WordPress REST API Update the woocommerce_url in the SetFields node with your domain Channel Post Format: First line: Product title Include at least one photo Add price in format: 9,500,000 or 9.500.000 Use hashtags that match your WooCommerce category names End posts with your signature after the divider character Requirements Active Telegram bot with channel admin access WooCommerce store with REST API enabled WordPress with media upload permissions How to customize the workflow Price Format: Modify the regex patterns in the Code node to match your currency format Category Mapping: Ensure your Telegram hashtags exactly match your WooCommerce category names Signature Divider: Change the signature divider character in SetFields node (default: "_") Image Quality: Adjust the Telegram file download to get different image resolutions Product Status: Modify the product creation node to set products as draft instead of published

ShohaniBy Shohani
86
All templates loaded