Skip to main content

Monitor brand mentions on X with Gemini AI visual analysis & Telegram alerts

Workflow preview

Workflow preview
100%
Monitor brand mentions on X with Gemini AI visual analysis & Telegram alerts preview
Open on n8n.io

Important notice

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

1. Workflow Overview

This workflow automates brand monitoring on X by analyzing both the text and the images in posts. It uses multi modal AI to score brand relevance, filters out noise, logs important mentions in Airt...

Best for

  • Market Research automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.if, n8n-nodes-base.set, n8n-nodes-base.stickynote, n8n-nodes-base.splitinbatches, n8n-nodes-base.airtable, @n8n/n8n-nodes-langchain.outputparserstructured, n8n-nodes-base.switch, n8n-nodes-base.scheduletrigger

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Atta.

Original n8n.io source

1.1 Workflow description

Title
Monitor brand mentions on X with Gemini AI visual analysis & Telegram alerts
Workflow name
Monitor brand mentions on X with Gemini AI visual analysis & Telegram alerts

This workflow automates brand monitoring on X by analyzing both the text and the images in posts. It uses multi-modal AI to score brand relevance, filters out noise, logs important mentions in Airtable, and sends real-time alerts to a Telegram group for high-priority posts.

What it does

Traditional brand monitoring tools often miss the most authentic user content because they only track text. They can't "see" your logo in a photo or your product featured in a video without a direct keyword mention.

This workflow acts as an AI agent that overcomes this blind spot. It finds mentions of your brand on X and then uses Google Gemini's multi-modal capabilities to perform a comprehensive analysis of both the text and any attached images. This allows it to understand the full context of a mention, score its relevance to your brand, and take the appropriate action, creating a powerful "visual intelligence" system.

How it works

The workflow runs on a schedule to find, analyze, and triage brand mentions.

  1. Get New Tweets: The workflow begins by using an Apify actor to scrape X for recent posts based on a defined set of search terms (e.g., Tesla OR $TSLA). It then filters these results to find unique mentions not already processed.
  2. Check for Duplicates: It cross-references each found tweet with an Airtable base to ensure it hasn't been analyzed before, preventing duplicate work.
  3. Analyze Post Content: For each new, unique post, the workflow performs two parallel analyses using Google Gemini:
    • Analyze the Photos: The AI examines the images in the post to describe the scene, identify logos or products, and determine the visual mood.
    • Analyze the Text: A separate AI call analyzes the text of the post to understand its context and sentiment.
  4. Final Relevance Check: A "Head Strategist" AI node receives the outputs from both the visual and text analyses. It synthesizes this information to assign a final brand relevance score from 1 to 10.
  5. Triage and Action: Based on this score, the workflow automatically triages the post:
    • High Relevance (Score > 7): The post is logged in the Airtable base, and an instant, detailed alert is sent to a Telegram monitoring group.
    • Medium Relevance (Score 4-7): The post is quietly logged in Airtable for later strategic review.
    • Low Relevance (Score < 4): The post is ignored, effectively filtering out noise.

Setup Instructions

To get this workflow running, you will need to configure your Airtable base and provide credentials for Apify, Google, and Telegram.

Required Credentials

  1. Apify: You will need an Apify API Token to run the X scraper.
  2. Airtable: You will need Airtable API credentials to connect to your base.
  3. Google AI: You will need credentials for the Google AI APIs to use the Gemini models.
  4. Telegram: You will need a Bot Token and the Chat ID for the channel where you want to receive high-relevance alerts.

Of course. Based on the Config node parameters you provided, the setup process is much more centralized. Here is the corrected and rewritten "Step-by-Step Configuration" section.

Of course. Here is the rewritten "Step-by-Step Configuration" section with the link to the advanced search documentation.

Step-by-Step Configuration

  1. Set up Your Airtable Base: Before configuring the workflow, create a new table in your Airtable base. For the workflow to function correctly, this table must contain fields to store the analysis results. Create fields with the following names: postId, postURL, postText, postDateCreated, authorUsername, authorName, sentiment, relevanceScore, relevanceReasoning, mediaPhotosAnalysis, and status. Once the table is created, have your Base ID and Table ID ready to use in the Config node.

  2. Edit the Config Node: The majority of the setup is handled in the first Config node. Click on it and edit the following parameters in the "Expressions" tab:

    • searchTerms: Replace the example with the keywords, hashtags, and accounts you want to monitor. The field supports advanced search operators for complex queries. For a full list of available parameters, see the Twitter Advanced Search documentation.
    • airtableBaseId: Paste your Airtable Base ID here.
    • airtableTableId: Paste your Airtable Table ID here.
    • lang: Set the two-letter language code for the posts you want to find (e.g., "en" for English).
    • min_faves: Set the minimum number of "favorites" a post should have to be considered.
    • tweetsToScrape: Define the maximum number of posts the scraper should find in each run.
    • actorId: This is the specific Apify actor for scraping X. You can leave this as is unless you intend to use a different one.
  3. Configure the Telegram Node: In the final node, "Send High Relevance Posts to Monitoring Group", you need to manually set the destination for the alerts.

    • Enter the Chat ID for your Telegram group or channel.

How to Adapt the Template

This workflow is a powerful framework that can be adapted for various monitoring needs.

  • Change the Source: Replace the Apify node with a different trigger or data source. You could monitor Reddit, specific RSS feeds, or a news API for mentions.
  • Customize the AI Logic: The core of this workflow is in the AI prompts. You can edit the prompts in the Google Gemini nodes to change the analysis criteria. For example, you could instruct the AI to check for specific competitor logos, analyze the sentiment of comments, or identify if the post is from an influential account.
  • Modify the Scoring: Adjust the logic in the "Switch" node to change the thresholds for what constitutes a high, medium, or low-relevance post to better fit your brand's needs.
  • Change the Actions: Replace the Telegram node with a different action. Instead of sending an alert, you could:
    • Create a ticket in a customer support system like Zendesk or Jira.
    • Send a summary email to your marketing team.
    • Add the post to a content curation tool or a social media management platform.

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 - If Tweet

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

Block 2 - Config

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

Block 3 - Sticky Note

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

Block 4 - Loop Over Items

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 5 - If New

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

Block 6 - Post Exists

Type / Role
n8n-nodes-base.airtable - airtable
Config choices
Version 2.1

Block 7 - Set Required Fields

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

Block 8 - Structured Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Block 9 - Switch

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

Block 10 - Schedule Trigger

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 11 - Done!

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

Block 12 - Log the Medium Relevance Post

Type / Role
n8n-nodes-base.airtable - airtable
Config choices
Version 2.1

Block 13 - Log the High Relevance Post

Type / Role
n8n-nodes-base.airtable - airtable
Config choices
Version 2.1

Block 14 - Not Interested!

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

Block 15 - Analyze Post Photos

Type / Role
@n8n/n8n-nodes-langchain.googleGemini - googleGemini
Config choices
Version 1

Block 16 - Get Final Photos Analysis Results

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

Block 17 - If Has Photos

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

Block 18 - Sticky Note1

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

Block 19 - Sticky Note2

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

Block 20 - Scrape X

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

Block 21 - Manual Executing

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

Block 22 - Send High Relevance Post to Monitoring Group

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

Block 23 - Analyze Text and Photos

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2.2

Block 24 - Google Gemini Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - lmChatGoogleGemini
Config choices
Version 1

3. Summary Table

Workflow Monitor brand mentions on X with Gemini AI visual analysis & Telegram alerts
Complexity advanced
Nodes 24
Categories Market Research, Multimodal AI
Author Atta
Published 07 Sept 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/8355/8355.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 Monitor brand mentions on X with Gemini AI visual analysis & Telegram alerts do?

This workflow automates brand monitoring on X by analyzing both the text and the images in posts. It uses multi modal AI to score brand relevance, filters out noise, logs important mentions in Airt...

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 Market Research, Multimodal AI use case.