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
Automate DEX insights with n8n and Telegram

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

Learn how to Build this Workflow with AI:

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


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.


Automate DEX insights with n8n and Telegram

Visit through Desktop to Interact with the Workflow.

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 Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.