by InfraNodus
Teach your AI agent HOW to think, not WHAT to think This workflow demonstrates how you can build an AI agent in n8n that uses the reasoning logic you define. So an LLM learns a way of thinking, which you can then apply to multiple problems: Make an AI chatbot that knows how to convince anybody using the "Getting to Yes" method Build an LLM workflow that uses Ray Dalio's principles to spot investment opportunities Create an AI agent crew of interdisciplinary thinkers: e.g. a specialist in psychology who gives an advice on education programmes. How it works This template uses the n8n AI agent node as an orchestrating agent that has access to a certain reasoning logic defined by an InfraNodus knowledge graph. This graph contains a list of reasoning rules (ontology), which is extracted to provide an advice that is relevant to the original prompt. It uses GraphRAG under the hood to traverse the parts of the graph relevant to the query. This advice and the reasoning logic extracted is then used by the AI agent to generate a response that is relevant to the user's query but that uses the reasoning logic provided through the graph. Here's a description step by step: The user submits a question using the AI chatbot (n8n interface, in this case, a web form that can be embedded to any website, or a webhook that can be connected to a Telegram / WhatsApp bot) The AI agent node accesses the Reasoning Logic HTTP InfraNodus nodes. The description of AI agent and the description of the reasoning InfraNodus node provides the agent with an understanding of how to rephrase the original question to retrieve relevant reasoning logic. The request is sent to the InfraNodus node. It provides a response that contains the reasoning logic needed to answer the question. This reasoning logic is then sent back to an LLM along with the original query to produce the response. InfraNodus uses GraphRAG under the hood: convert user query into graph find the overlap with the reasoning graph (using n=1 or more hops to include more relations) use similarity search to get additional parts of the graph generate a response based on this intersection as well as the context provided provide information about the underlying structure How to use You need an InfraNodus account to use this workflow. Create an InfraNodus account Get the API key at https://infranodus.com/api-access and create a Bearer authorization key for the InfraNodus HTTP nodes. Create a separate knowledge graph for the reasoning logic Use the AI ontology creator to generate an ontology for a certain topic or text using AI. Then augment it with your own data. See our help article on creating ontologies for detailed instructions For each graph, go to the workflow, paste the name of the graph into the request JSON body name field. Change the system prompt in the AI agent node to reflect the nature of your reasoning logic. For instance, if it's an expert in interactions, you specify that, if it's a psychology expert, you need to specify that as well. Change the description of the reasoning node (HTTP tool). Use the InfraNodus summary and Project Notes > RAG prompt buttons to generate a description for the reasoning logic, which you can then reuse in your workflow. add the LLM key to the OpenAI node (or to the model of your choice) and launch the workflow Requirements An InfraNodus account and API key An OpenAI (or any other LLM) API key Customizing this workflow You can use this same workflow with a Telegram bot, so you can interact with it using Telegram. There are many more customizations available. Check out the complete guide at https://support.noduslabs.com/hc/en-us/articles/21429518472988-Using-Knowledge-Graphs-as-Reasoning-Experts Also check out the video tutorial with a demo:
by Ruthwik
⚡ Next-Gen Customer Support: Two-Way WhatsApp + Telegram Integration for 10k+ Clients Who is this workflow for This workflow is designed for **customer support teams, e-commerce founders, and operations managers** who want to handle thousands of customer queries seamlessly. Instead of building a brand-new chat application, it leverages WhatsApp (where customers already are) and Telegram (where your support team operates) to create a scalable, topic-based support system. If you are a brand handling 1000s of daily WhatsApp customer messages and need a structured way to map each customer into a dedicated support thread without chaos, this workflow is for you. What it does / How it works This two-way n8n automation bridges WhatsApp and Telegram by creating one Telegram forum topic per customer and syncing messages both ways: Incoming WhatsApp → Telegram When a new WhatsApp message arrives, the workflow checks if the customer already has a topic in Telegram. If yes → The message is forwarded into that existing topic. If no → A new topic is created automatically, the mapping is saved in the database, and the message is posted there. Result: every customer has a dedicated thread in your Telegram supergroup. Outgoing Telegram → WhatsApp When a support agent replies in a Telegram topic, the workflow looks up the linked WhatsApp number. The reply is sent back to the customer on WhatsApp, preserving context. Result: two-way synced conversations without building a custom app. How to set it up Configure WhatsApp Cloud API Create a Meta Developer account and register a WhatsApp Business number. Generate an access token and phone number ID. Configure Telegram Bot Use BotFather to create a bot and enable it in a **Telegram Supergroup with Topics**. Get the chat_id and allow the bot to create/send messages in topics. Database (Supabase/Postgres) Create a table wa_tg_threads to map phone_e164 ↔ telegram_topic_id ↔ supergroup_id. n8n Workflows Workflow A: WhatsApp → Telegram Trigger: WhatsApp Webhook Steps: Lookup customer → If exists send to topic, else create topic → Save mapping → Forward message. Workflow B: Telegram → WhatsApp Trigger: Telegram Webhook Steps: Filter only topic replies → Lookup mapping → Send WhatsApp message. Testing Send a WhatsApp message → Check Telegram topic created. Reply in Telegram topic → Ensure customer receives WhatsApp reply. Requirements A free or paid n8n instance (self-hosted or cloud). WhatsApp Cloud API credentials** (phone number ID + access token). Telegram Bot token* with access to a *Supergroup with Topics** enabled. A Postgres/Supabase database to store thread mappings. Basic familiarity with editing HTTP Request nodes in n8n. How to customize the workflow Brand personalization:** Pre-populate first message templates (thank you, order status, delivery updates). Routing rules:** Assign specific agents to certain topics by ID ranges. Integrations:** Extend to CRMs (HubSpot, Zoho) or support platforms (Freshdesk, Zendesk). Notifications:** Push high-priority WhatsApp queries into Slack/Teams for instant alerts. Archival:** Auto-close inactive topics after N days and mark customers as dormant. Why Telegram instead of building a new App The client's requirement was clear: **use an existing, reliable, and scalable chat platform** instead of building a new app from scratch. Telegram Supergroups with Topics** scale to 100,000+ members and millions of messages, making them ideal for managing 10k+ customer threads. Agents don't need to install or learn a new tool---they continue inside Telegram, which is fast, free, and mobile-friendly. Building a custom chat app would require authentication, push notifications, scaling infra, and UX---all solved instantly by Telegram. This decision **saves development cost, accelerates deployment, and provides proven scalability**. Why this improves support productivity Organized by customer:** Each WhatsApp number has its own Telegram topic. No missed messages:** Agents can quickly scroll topics without drowning in one endless chat. Two-way sync:** Replies flow back to WhatsApp seamlessly. Scales automatically:** Handle 10k+ conversations without losing track. Leverages existing tools:** WhatsApp (customers) + Telegram (agents). Result: **faster responses, better tracking, and zero need to reinvent chat software.**
by Avkash Kakdiya
How it works This workflow automates the job curation process by retrieving pending job search inputs from a spreadsheet, querying the JSearch API for relevant job listings, and writing the curated results back to another sheet. It is designed to streamline job discovery and reduce manual data entry. Step-by-step 1. Trigger & Input The workflow starts on a defined schedule (e.g., once per day). It reads a row from the Job Scraper sheet where the status is marked as "Pending". The selected row includes fields like Position and Location, which are used to build the search query. 2. Job Search & Processing Sends a search request to the JSearch API using the Position and Location from the spreadsheet. Parses the API response and extracts individual job listings. Filters out empty, irrelevant, or invalid entries to ensure clean and relevant job data. 3. Output & Status Update Writes valid job listings to the Job Listing output sheet with fields such as job title, company name, location, and more. Updates the original row in the source sheet to mark it as Scraped, ensuring it will not be processed again in future runs. Benefits Reduces manual effort in job research and listing. Ensures only valid, structured data is stored and used. Prevents duplicate processing with automatic status updates. Simple to expand by adding more job sources or filters.
by Gtaras
Who’s it for This workflow is perfect for individuals who want a simple expense tracker without needing a full app. If you already use Telegram daily, this makes it effortless to log purchases, track spending, and stay accountable to your budget. How it works / What it does Send an expense in Telegram using the format /spent 5 lunch. n8n parses the message and appends the entry to Google Sheets. Every Sunday at 11:00, the workflow sends a weekly expense summary to Telegram. If you exceed your weekly budget (default €100), you’ll instantly get a budget warning alert. Optionally, the sheet can be cleared weekly to start fresh. How to set up Create a Telegram bot with BotFather, copy the token, and get your Chat ID via getUpdates. Make a copy of the provided Google Sheets template and connect your Google credentials in n8n. Replace <YOUR_CHAT_ID> and <YOUR_SHEET_ID> placeholders in the workflow. Adjust the budget threshold in the “Check Weekly Budget” node if needed. Activate the workflow and test with a sample expense. Requirements A Telegram bot (free, via BotFather). Google Sheets with n8n OAuth2 credentials. An n8n instance (self-hosted or cloud). How to customize the workflow Change the budget threshold in the Code node. Update the summary schedule in the Schedule Trigger node. Expand the Google Sheet with more categories or details. Personalize the Telegram messages to fit your style.
by Țugui Dragoș
How it works This workflow fetches articles from any RSS feed, processes them with an AI model (DeepSeek), and sends only the most relevant alerts directly to Slack. Normalizes and deduplicates RSS items Extracts article text and cleans HTML Summarizes and classifies with AI (sentiment + flags) Filters out irrelevant news Sends real-time alerts to your Slack channel Setup steps Add your Slack Bot Token (via Slack API) Add your DeepSeek API Key Import this workflow into n8n Deploy and start receiving smart news alerts in Slack Use case Perfect for tracking AI, startups, finance, and tech industry news without the noise.
by Kevin Meneses
How it works Runs on a schedule and iterates a watchlist of symbols (e.g., BTC/ETH/SOL). For each symbol, request intraday 1h OHLCV from EODHD. A Code node computes Wilder’s RSI(14) and detects 30/70 crossings. When a signal appears, the bot sends a Telegram alert (HTML message) with price, RSI (prev → now), timestamp, and a “View chart” button that opens the pair on TradingView (BINANCE/USD). Set up steps (≈10–15 min) Prereqs: n8n (cloud or self-hosted), EODHD API key, Telegram bot + your chat_id. Env vars: set EODHD_TOKEN and TELEGRAM_CHAT_ID on your n8n instance. Credentials: add your Telegram credential (bot token). Import the workflow JSON. Edit Fields node: adjust the symbol array to your watchlist. Schedule Trigger: choose how often to run (e.g., every 5–10 min). Test: temporarily flip the Code node’s FORCE_ALERT flag to true to verify Telegram delivery, then set it back to false.
by Diptamoy Barman
🎨 Anime Image Generator with LLM-Enhanced Prompts This workflow turns a short text idea into stunning, AI-generated anime-style images, all from Telegram. It combines a chat LLM for prompt enhancement with Gemini (free) or Leonardo.AI (paid) image models. 🌟 What It Does Accepts a text prompt sent via Telegram. Uses an LLM (DeepSeek via OpenRouter) to expand and enrich the idea into several anime-ready prompts. Lets you choose the image engine: Gemini (90-day free trial with a GCP account). Leonardo.AI (paid, higher-fidelity anime rendering). Generates 4 images per query, converts them to files, and delivers the images back to your Telegram chat. ⚙️ How It Works Telegram Trigger — waits for a text message from you. Image-count Node — stores your prompt & sets how many images to create (default: 4). Prompt Generator (LLM) — transforms your simple prompt into multiple detailed, visually rich anime prompts. Split & Loop — sends each refined prompt to the chosen image generator. Image Generator: Default: HTTP-Gemini node. Alternative: HTTP-Leonardo AI node (swap in for better quality). Convert to File & Send — decodes the generated images and sends them back to you on Telegram. 🔑 Setup Telegram Bot** Create a bot using BotFather. Add your Bot Token & your Telegram User ID to the workflow (look for “Configure Me!” sticky notes). LLM Provider** Default: DeepSeek via OpenRouter — used to expand prompts. You can swap this with any other chat LLM you prefer. Image Engine** Default: Gemini (free trial, good baseline quality). Optional: Leonardo.AI for anime-focused, premium-quality images. Replace the HTTP-Gemini node with the HTTP-Leonardo AI node and set up your Leonardo API key as a Header Auth credential. Optional Adjustments** Change default number of images in the Image-count node. Tweak the LLM prompt template for different artistic styles (e.g., pastel slice-of-life, fantasy, action, cyberpunk). 💡 Tips Start with short, plain prompts — e.g., girl with umbrella in neon city street at night The LLM will enrich it automatically. If images look flat, try Leonardo.AI or adjust the prompt style and guidance scale. Avoid NSFW or copyrighted character prompts — follow the providers’ usage policies. Keep your API keys private and never share them in screenshots. 👥 Who Is This For Anime creators & hobbyists** who want to visualize characters or scenes quickly. Content creators & social posters** who want to share unique anime-style visuals. Anyone who wants easy AI image generation via Telegram, without needing to master prompt engineering. ✨ Ready to go: Run the workflow, send a prompt to your Telegram bot, and watch it turn into beautiful anime images.
by Abdul Aziz Ahwan
Tired of manually checking your YouTube Studio every day just to see how your channel is performing? This workflow is your solution. It automates the entire process of gathering your channel's key statistics and delivers a beautiful, easy-to-read performance report directly to your Telegram chat on a schedule you set. Stay updated on your channel's growth without lifting a finger. How it Works This workflow runs on a custom schedule to give you consistent updates. Scheduled Trigger**: The workflow kicks off automatically at your chosen interval (e.g., every Monday at 6 AM). Fetch Channel Data: It makes a series of requests to the **YouTube Data & Analytics APIs to gather the latest statistics on: Channel Summary (views, watch time, subscribers, etc.) Top Performing Videos Audience Traffic Sources Audience Demographics Process & Format**: The raw data from the APIs is merged and transformed into a clean, human-readable format using Markdown and emojis. Send Telegram Report**: The final formatted summary is sent as a message to your specified Telegram chat, giving you an instant overview of your channel's performance. Setup Steps You'll need to configure credentials for Google and Telegram to get started. Configure Google API Credentials: Create an OAuth 2.0 Client ID from the Google Cloud Console. Make sure to enable the YouTube Analytics API and YouTube Data API v3. In n8n, create new Google API credentials using your Client ID and Client Secret, ensuring you add the required YouTube scopes. Configure Telegram Credentials: Create a new Telegram bot using BotFather to get your API token. Add the token to the Telegram node's credentials. Customize the Workflow: Adjust the Schedule node to set how often you want to receive the report. In the Telegram node, enter the Chat ID for the person or group you want to send the report to.
by Fahmi Fahreza
AI-Powered Product Video Generator (Foreplay + Gemini + Sora 2) Sign Up For Foreplay HERE Automatically generate personalized, cinematic-quality product videos using Foreplay’s ad data, Google Gemini AI for creative prompts, and Sora 2 for text-to-video generation. Who’s it for? Perfect for marketers, brand managers, or creators who want to produce quick, high-quality video ads without manual scripting or editing. How it works Fetch product data and related competitor videos from Foreplay. Use Gemini AI to generate creative text-to-video prompts. Send the prompt and image to Kie.ai to generate a short, cinematic product video. Save the finished video automatically to Google Drive. How to set up Connect your Foreplay, Google Drive, Gemini, and Kie.ai credentials. Set your product image folder's permission (Google Drive) as public. Add your API keys inside the Set Workflow Credentials node. Then run the workflow manually to generate your first video ad!
by Budi SJ
Personalized Weather Assistant with Google Calendar, WeatherAPI, AI & Telegram This workflow automates the delivery of a personalized daily agenda by combining events from Google Calendar with real-time local weather conditions. Using AI-powered summarization and Telegram integration, users receive a friendly and motivating message every morning everything needed to plan the day effectively. Perfect for professionals or individuals who want an overview of their schedule and weather in one place. 🛠️ Key Features Triggered automatically every morning by schedule Fetches Google Calendar events for today and tomorrow Retrieves weather conditions (temperature, humidity, wind, UV index) using WeatherAPI based on event location Uses AI Agent to generate a concise, human-friendly agenda summary Sends the summary via Telegram bot If no location is available, delivers a simplified agenda without weather 🔧 Requirements Google Calendar OAuth2 credentials connected to n8n WeatherAPI key (weatherapi.com) Telegram Bot Token and user chat_id OpenRouter API Key (openrouter.ai) 🧩 Setup Instructions Timezone Adjust timezone in the Set Timezone node Google Calendar Add Google Calendar OAuth2 credentials Set your primary calendar ID in the Get many events node WeatherAPI Replace the API key in the HTTP Request node with your WeatherAPI key OpenRouter Create credentials in n8n and connect them to the OpenRouter Chat Model nodes Telegram Add your bot token and chat_id to both Telegram nodes Deploy Activate the workflow You’ll start receiving personalized daily Telegram messages
by Abrar Sami
How it works Fetches a blog post HTML from your blog URL using an HTTP request node Extracts readable content using Cheerio (code node) Saves the raw blog text to Airtable Translates the content to a language of your choice using Google Translate Updates the same Airtable record with the translated version in a different column Set up steps Estimated setup time:** 15–20 minutes (includes connecting Airtable and Google Translate credentials) You’ll need an Airtable base with HTML and TRANSLATED fields Or use this pre-made base: Airtable Template Simply add your blog post URL inside the HTTP Request node
by Parth Pansuriya
Create UGC Style Product Ad Video via Telegram + Gemini + Kie.ai’s Veo3.1 API Who’s it for For creators, marketers, and e-commerce sellers who want to instantly generate short UGC-style product videos from a simple Telegram message — no manual editing or video skills required. How it works / What it does This workflow automatically turns a Telegram photo and caption into a 30-second UGC-style video ad using AI. A user sends a photo + caption on Telegram. Gemini AI reads the caption and image to generate a realistic UGC script with tone, benefits, and call-to-action. The photo and script are sent to Kie.ai’s Veo3.1 API, which creates a high-quality vertical video (9:16) using the image and narration. Once rendered, the finished video ad is automatically sent back to the Telegram chat. How to set up Connect your Telegram Bot credentials. Add your Google Gemini API key in the Gemini node. Create a Kie.ai account and obtain your Veo3.1 API key. Paste the key in the HTTP Request nodes where required. Activate the workflow — send a Telegram message with a product photo + caption to test. Requirements Telegram Bot API key Google Gemini API key Kie.ai Veo3.1 API key How to customize the workflow Change Gemini prompt style (e.g., humorous, professional, emotional). Adjust Kie.ai model parameters (aspect ratio, duration, voice, or style). Add branding overlays or logos after video generation. Integrate with Google Drive, Notion, or Airtable to save results automatically. Modify the Telegram response to include both the video and the AI-generated script