Automate Blockchain DEX Insights with n8n and LangChain

This workflow automates real-time blockchain DEX insights by integrating Telegram with DexScreener API using n8n and LangChain. It solves the problem of manually tracking token boosts, pools, and trading pair data efficiently through AI-driven analysis.
telegramTrigger
agent
lmChatOpenAi
+5
Workflow Identifier: 2018
NODES in Use: Telegram Trigger, Set, When chat message received, OpenAI Chat Model, Window Buffer Memory, Agent, ToolHttpRequest, Telegram

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

Visit through Desktop for Best experience

What This Workflow Does

This workflow helps users get live blockchain data from decentralized exchanges (DEX) using Telegram. It answers questions about tokens, trading pairs, boosts, and liquidity pools fast and in one place. It saves time by automating data fetching and giving clear answers inside Telegram chat.

The workflow listens to Telegram messages, understands what data is asked, collects live details from DexScreener API, and replies directly. So users avoid checking websites one by one and get instant info when they ask.


Who Should Use This Workflow

This is good for cryptocurrency traders, analysts, and anyone needing fast updates from decentralized exchanges. Users wanting token profiles, boosted tokens, trading pair info, or liquidity pool details on blockchains will find it useful. It helps avoid manual searching and keeps data fresh through live calls.


Tools and Services Used

  • Telegram Bot API: Receives user messages and sends replies.
  • OpenAI GPT-4o-mini Chat Model: Understands natural language questions and creates API call requests.
  • LangChain Agents: Run the AI logic and manage different API tools.
  • DexScreener Public API: Provides real-time blockchain DEX data without extra keys.
  • n8n Workflow Platform: Orchestrates nodes from Telegram to AI and API calls, running the automation.

How the Workflow Works (Input → Process → Output)

Inputs

User sends messages with questions through Telegram chat to the bot. For example, asking about latest boosted tokens or specific trading pairs.

Processing Steps

  • Telegram Trigger node receives the message.
  • Set node adds a sessionId from chat ID to keep chat context.
  • LangChain chatTrigger node receives the text for AI processing.
  • OpenAI Chat Model (GPT-4o-mini) interprets the question to decide which DexScreener API tools to use.
  • Window Buffer Memory keeps previous conversation context for smooth replies.
  • LangChain Agent node calls different DexScreener HTTP Request toolHttpRequest nodes to fetch live data. These include token profiles, boosted tokens, trading pair searches, order checks, and liquidity pools.
  • Data comes back as JSON, analyzed by the agent to create a friendly answer.

Output

The Telegram node sends back the generated answer formatted as text in the same chat, providing real-time DEX insights.


Beginner Step-by-Step: How to Use This Workflow in n8n

Importing the Workflow

  1. Download the workflow file from this page using the Download button.
  2. Open the n8n editor where the automation runs.
  3. Click on “Import from File” and select the downloaded file.

Configuring Required Settings

  1. Set up Telegram credentials by adding the bot token to the Telegram nodes.
  2. Enter your OpenAI API Key in the OpenAI Chat Model node credentials.
  3. Check the Set node to ensure sessionId maps to {{$json.message.chat.id}}.
  4. If needed, adjust any chain IDs, token addresses, or query parameters in the DexScreener HTTP Request nodes.

Testing and Activation

  1. Send test messages to your Telegram bot, like “Show boosted tokens” or “Info for ETH/USDT pair”.
  2. Make sure the workflow processes the message and responds correctly in Telegram.
  3. Activate the workflow by toggling it ON in n8n to run continuously.
  4. Make sure n8n is reachable by Telegram’s webhook for triggers to work (public URL setup).
  5. For production reliability, consider using self-host n8n if not already done.

Possible Input and Output Examples

  • Input: “List latest boosted tokens”
  • Process: Bot processes language, calls DexScreener API for boosted tokens data
  • Output: Text reply with token names, boost percentages, and images
  • Input: “Find trading pair for SOL/USDC”
  • Process: Bot uses pair search API to find matching trading pair and liquidity info
  • Output: Detailed info on pair including volume and addresses

Customization Ideas

  • Add more HTTP nodes for other DEX APIs if needed.
  • Switch OpenAI GPT-4o-mini to other GPT models for better or cheaper AI responses.
  • Enable multilingual support by editing the LangChain system messages.
  • Make Telegram messages richer with markdown or images if supported.
  • Add delay or queue features to handle API rate limits better.

Common Issues and Solutions

  • OpenAI Chat Model does not respond: Check API key validity and credits.
  • Telegram messages don’t trigger workflow: Verify bot token and webhook URL settings.
  • DexScreener API rate limits reached: Add delays or queue throttling between requests.

Summary

✓ Saves time by automating blockchain DEX data retrieval inside Telegram.
✓ Lets users ask natural language questions and get live token and trading info.
✓ Combines OpenAI GPT-4o-mini and LangChain with DexScreener APIs.
✓ Easy to import and configure in n8n for real-time insights.


Frequently Asked Questions

Yes, but users must replace the Telegram trigger and message nodes with equivalent nodes for other platforms like Slack or Discord, and adjust permissions.
Yes, each message processed by the OpenAI chat model uses API credits. Monitor usage to avoid extra charges.
The workflow queries only public DexScreener APIs and does not send sensitive data externally except Telegram chats. User security depends on protecting n8n credentials.
Handling many queries depends on the n8n server resources and DexScreener API rate limits. Queue management or scaling infrastructure may be needed.

Promoted by BULDRR AI

Related Workflows

Automate Viral UGC Video Creation Using n8n + Degaus (Beginner-Friendly Guide)

Learn how to automate viral UGC video creation using n8n, AI prompts, and Degaus. This beginner-friendly guide shows how to import, configure, and run the workflow without technical complexity.
Form Trigger
Google Sheets
Gmail
+37
Free

AI SEO Blog Writer Automation Workflows in n8n

A complete beginner guide to building an AI SEO blog writer automation using n8n.
AI Agent
Google Sheets
httpRequest
+5
Free

Automate CrowdStrike Alerts with VirusTotal, Jira & Slack

This workflow automates processing of CrowdStrike detections by enriching threat data via VirusTotal, creating Jira tickets for incident tracking, and notifying teams on Slack for quick response. Save hours daily by transforming complex threat data into actionable alerts effortlessly.
scheduleTrigger
httpRequest
jira
+5
Free

Automate Telegram Invoices to Notion with AI Summaries & Reports

Save hours on financial tracking by automating invoice extraction from Telegram photos to Notion using Google Gemini AI. This workflow extracts data, records transactions, and generates detailed spending reports with charts sent on schedule via Telegram.
lmChatGoogleGemini
telegramTrigger
notion
+9
Free

Automate Email Replies with n8n and AI-Powered Summarization

Save hours managing your inbox with this n8n workflow that uses IMAP email triggers, AI summarization, and vector search to draft concise replies requiring minimal review. Automate business email processing efficiently with AI guidance and Gmail integration.
emailReadImap
vectorStoreQdrant
emailSend
+12
Free

Automate Email Campaigns Using n8n with Gmail & Google Sheets

This n8n workflow automates personalized email outreach campaigns by integrating Gmail and Google Sheets, saving hours of manual follow-up work and reducing errors in email sequences. It ensures timely follow-ups based on previous email interactions, optimizing communication efficiency.
googleSheets
gmail
code
+5
Free