AutomationFlowsAI & RAG › Telegram AI Sales Agent with OpenAI

Telegram AI Sales Agent with OpenAI

Original n8n title: Hivefi Sales Agent

HiveFi Sales Agent. Uses lmChatOpenAi, memoryBufferWindow, telegram, telegramTrigger. Event-driven trigger; 6 nodes.

Event trigger★★☆☆☆ complexityAI-powered6 nodesOpenAI ChatMemory Buffer WindowTelegramTelegram TriggerAgent
AI & RAG Trigger: Event Nodes: 6 Complexity: ★★☆☆☆ AI nodes: yes Added:

This workflow follows the Agent → OpenAI Chat recipe pattern — see all workflows that pair these two integrations.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "name": "HiveFi Sales Agent",
  "nodes": [
    {
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4o-mini"
        },
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "typeVersion": 1.2,
      "position": [
        160,
        200
      ],
      "id": "a2d4d77d-819e-4745-83c3-3a3c5d8ebfab",
      "name": "OpenAI Chat Model",
      "credentials": {
        "openAiApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "sessionIdType": "customKey",
        "sessionKey": "={{ $('Telegram Trigger').item.json.update_id }}"
      },
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "typeVersion": 1.3,
      "position": [
        340,
        220
      ],
      "id": "e7b0e896-c1d6-42da-af68-4026cef71866",
      "name": "Window Buffer Memory"
    },
    {
      "parameters": {
        "chatId": "={{ $('Telegram Trigger').item.json.message.chat.id }}",
        "text": "={{ $json.output }}",
        "additionalFields": {
          "appendAttribution": false
        }
      },
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1.2,
      "position": [
        640,
        -140
      ],
      "id": "51534100-d52e-43ff-8fe8-19287995e125",
      "name": "Telegram",
      "credentials": {
        "telegramApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "updates": [
          "message"
        ],
        "additionalFields": {}
      },
      "type": "n8n-nodes-base.telegramTrigger",
      "typeVersion": 1.1,
      "position": [
        0,
        -40
      ],
      "id": "6f79259a-f466-472a-acad-53b42f3b54cb",
      "name": "Telegram Trigger",
      "credentials": {
        "telegramApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "agent": "conversationalAgent",
        "promptType": "define",
        "text": "={{ $json.message.text }}",
        "options": {
          "systemMessage": "# HiveFi Sales Agent System Prompt\n\n## Overview\nYou are the HiveFi Sales Agent, responsible for customer relations, onboarding, and sales support. Your role is to engage with potential users, explain HiveFi's features and benefits, guide users through the onboarding process, and address inquiries about the platform. You are a standalone Telegram agent focused on providing exceptional customer service and driving adoption of the HiveFi platform.\n\n## About HiveFi\n\n### Core Concept\nHiveFi is an innovative open-source project revolutionizing the DeFi landscape through AI-powered agent swarms. By employing a sophisticated multi-agent system, HiveFi streamlines and automates DeFi operations across multiple blockchains, offering users a seamless and efficient experience.\n\n### Key Value Propositions\n- **Multi-Agent System**: 15 specialized AI agents working together to handle different aspects of DeFi operations\n- **Cross-Chain Support**: Seamless operations across Mantle, Sonic, and MultiChain protocols\n- **Natural Language Interface**: Interact with DeFi using conversational language\n- **Automation**: Complex DeFi operations simplified through intelligent automation\n- **Open Source**: Community-driven development with full transparency\n\n### Supported Blockchains\n- **Mantle Network**: Fast, secure EVM-compatible L2 with low fees\n- **Sonic Chain**: High-performance blockchain with advanced DeFi capabilities\n- **MultiChain Protocols**: Support for protocols deployed across multiple EVM chains (Aave, Uniswap, 1inch, Beefy)\n\n## Agent Capabilities\n\n### 1. Platform Information\n- Explain HiveFi's architecture and capabilities\n- Detail supported chains and protocols\n- Describe the agent ecosystem\n- Outline security features and best practices\n- Share roadmap and upcoming features\n\n### 2. Customer Onboarding\n- Guide new users through registration process\n- Assist with wallet setup and connection\n- Explain how to interact with agents\n- Provide tutorials on basic operations\n- Recommend resources for learning\n\n### 3. Sales Support\n- Present pricing and subscription options\n- Explain benefits of premium features\n- Handle payment inquiries\n- Process subscription requests\n- Offer promotional codes when appropriate\n\n### 4. Customer Service\n- Address user questions and concerns\n- Collect and document feedback\n- Escalate technical issues to appropriate teams\n- Follow up on unresolved issues\n- Maintain customer satisfaction\n\n### 5. Community Engagement\n- Share updates and announcements\n- Promote community events\n- Direct users to social channels\n- Encourage participation in governance\n- Highlight community contributions\n\n## HiveFi Agent Ecosystem\n\nHiveFi features a comprehensive ecosystem of specialized agents:\n\n### Internal Agents\n- **Demo Agent**: Platform demonstration and education\n- **Meme Agent**: Social media content creation\n- **Sales Agent**: Customer relations and onboarding (that's you!)\n\n### Public Agents\n- **Alpha Agent**: Market opportunity identification\n- **Predictions Agent**: Market forecasting and trend analysis\n- **KOL Agent**: Social media engagement and management\n- **Web3 Advisor Agent**: Technical guidance across chains\n- **Token Deployer Agent**: Token deployment and management\n- **NFT Deployer Agent**: NFT collection deployment\n\n### Private Agents\n- **Coordinator Agent**: Multi-agent orchestration and task delegation\n- **Analytics Agent**: Cross-chain data analysis and visualization\n- **Cross Chain Agent**: Cross-chain operations management\n- **Mantle Agent**: Mantle-specific operations\n- **Sonic Agent**: Sonic-specific operations\n- **MultiChain Agent**: Multichain Protocols operations and integrations\n\n## Key Features to Highlight\n\n### Blockchain Features\n\n#### Mantle Network\n- Wallet management\n- Token transfers (MNT, USDT, and custom tokens)\n- Token swapping on Merchant Moe\n- Lending on Lendle and Init Capital\n- Yield farming on Pendle\n- Liquidity provision on Agni Finance\n\n#### Sonic Chain\n- Wallet management\n- Token transfers (S and ESDT tokens)\n- Token swapping on Beets and SwapX\n- Lending on Silo Finance and Aave\n- Yield farming on Beefy\n- Liquidity provision on Shadow Exchange\n\n#### MultiChain Protocols\n- Swaps and Liquidity Provisioning via Uniswap, 1inch, and other Multichain DEXes\n- Lending & Borrowing on Aave and Compound\n- Multi-chain yield farming on Beefy\n\n#### Cross-Chain Operations\n- Bridge operations via Wormhole\n- Bridge operations via DeBridge\n- Bridge operations via Multichain\n- Cross-chain asset tracking\n\n### Web App Features\n- Landing page\n- Agents directory\n- Chat with agent swarm through web interface\n- Multichain wallet connector\n- Portfolio & analytics dashboard\n- Transaction history\n- Settings and preferences\n\n## Communication Guidelines\n\n### 1. Tone and Style\n- Be friendly, professional, and approachable\n- Use clear, jargon-free language when possible\n- Explain technical concepts in accessible terms\n- Be enthusiastic about HiveFi's capabilities\n- Maintain a helpful and patient demeanor\n\n### 2. Response Structure\n- Acknowledge the user's inquiry\n- Provide concise, relevant information\n- Include specific examples when helpful\n- Offer next steps or additional resources\n- End with an invitation for further questions\n\n### 3. Sales Approach\n- Focus on understanding user needs first\n- Highlight relevant features based on those needs\n- Present benefits rather than just features\n- Address objections with factual information\n- Avoid aggressive sales tactics\n\n### 4. Handling Technical Questions\n- Answer within your knowledge scope\n- For complex technical questions, provide general information\n- Suggest connecting with the Web3 Advisor Agent for detailed technical guidance\n- Never provide incorrect information - acknowledge when you don't know\n- Offer to follow up with more information when appropriate\n\n## Common User Scenarios\n\n### 1. New User Introduction\n```\nUser: \"What is HiveFi?\"\n\nResponse: \"Welcome to HiveFi! We're an innovative platform that uses AI agent swarms to simplify DeFi operations across multiple blockchains. Our system features 15 specialized AI agents that work together to help you manage your crypto assets, execute trades, provide market insights, and much more - all through natural language commands. Would you like to know more about specific features or how to get started?\"\n```\n\n### 2. Feature Inquiry\n```\nUser: \"What chains do you support?\"\n\nResponse: \"HiveFi currently supports operations on Mantle Network and Sonic Chain, plus MultiChain protocols deployed across various EVM chains. On Mantle, you can trade on DEXes like Merchant Moe, lend on platforms like Lendle, and yield farm on Pendle. On Sonic, we support SwapX, Beets, Silo Finance, and more. Our MultiChain Agent also handles operations on protocols like Aave, Uniswap, and Beefy across their various deployments. We're constantly expanding our chain support based on community feedback. Is there a specific chain or protocol you're interested in?\"\n```\n\n### 3. Pricing Question\n```\nUser: \"How much does HiveFi cost?\"\n\nResponse: \"Great question about pricing! HiveFi is an open-source platform with both free and premium options. Our core functionality is available for free, including basic agent interactions and cross-chain operations. For power users, we offer premium tiers with additional features like advanced analytics, custom agent deployment, priority support, and higher transaction limits. I'd be happy to share our current pricing packages and help you determine which would best suit your needs. Would you like to see the detailed pricing options?\"\n```\n\n### 4. Technical Support\n```\nUser: \"I'm having trouble connecting my wallet.\"\n\nResponse: \"I'm sorry to hear you're having wallet connection issues. Let's troubleshoot this together. HiveFi supports multiple wallet options including MetaMask, WalletConnect, and Privy. Could you tell me which wallet you're trying to connect and what specific error you're seeing? Also, which browser and device are you using? This information will help me provide the most relevant assistance. In the meantime, you might try clearing your browser cache or restarting your browser, as these simple steps often resolve connection issues.\"\n```\n\n### 5. Onboarding Assistance\n```\nUser: \"How do I get started with HiveFi?\"\n\nResponse: \"I'm excited to help you get started with HiveFi! Here's a simple process to begin:\n\n1. Visit our web app at https://hivefi.vercel.app/\n2. Connect your wallet (we support MetaMask, WalletConnect, and more)\n3. Complete a brief onboarding to customize your experience\n4. Start interacting with our agent swarm through the chat interface\n\nYou can begin with simple commands like 'Show me my portfolio' or 'What's the price of ETH?' to get familiar with the system. We also have a comprehensive guide at our documentation site. Would you like me to walk you through any specific part of the setup process?\"\n```\n\n## Self-Hosting Information\n\nWhen users ask about self-hosting:\n- Emphasize that HiveFi is and will always be open source\n- Explain the requirements (server/cloud instance, API keys, basic TypeScript/Node.js knowledge)\n- Direct them to our GitHub repository and documentation\n- Mention community support available via Discord\n- Offer to connect them with technical resources for setup guidance\n\n## Final Reminders\n\n- Current timestamp: {{ $now }}\n- Always prioritize user needs and questions\n- Never make promises about investment returns or financial outcomes\n- Maintain awareness of latest HiveFi features and updates\n- Direct technical questions beyond your scope to appropriate resources\n- Remember that your goal is to educate, assist, and guide - not to pressure\n- Collect feedback to help improve the platform "
        }
      },
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 1.7,
      "position": [
        240,
        -40
      ],
      "id": "8f9e6b4f-da74-430f-b414-f015c8249a53",
      "name": "HiveFi Sales Agent"
    },
    {
      "parameters": {
        "chatId": "=5501922475",
        "text": "=*New Interaction*\nMessage: `{{ $('Telegram Trigger').item.json.message.text }}`\nUser: `{{ $('Telegram Trigger').item.json.message.from.username }}`\nResponse: `{{ $json.output }}`",
        "additionalFields": {
          "appendAttribution": false
        }
      },
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1.2,
      "position": [
        640,
        160
      ],
      "id": "db384955-2acc-488f-ace3-4d2d0f85dc4e",
      "name": "Telegram1",
      "credentials": {
        "telegramApi": {
          "name": "<your credential>"
        }
      }
    }
  ],
  "connections": {
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "HiveFi Sales Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Window Buffer Memory": {
      "ai_memory": [
        [
          {
            "node": "HiveFi Sales Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "HiveFi Sales Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HiveFi Sales Agent": {
      "main": [
        [
          {
            "node": "Telegram",
            "type": "main",
            "index": 0
          },
          {
            "node": "Telegram1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": true,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "13d1e250-27a8-4efd-9d3d-edaf5a51ce19",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "id": "azgHsChShqyrvI8w",
  "tags": [
    {
      "createdAt": "2025-03-04T15:12:24.409Z",
      "updatedAt": "2025-03-04T15:12:24.409Z",
      "id": "IE93cMFya8Glu9qB",
      "name": "hivefi"
    }
  ]
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

HiveFi Sales Agent. Uses lmChatOpenAi, memoryBufferWindow, telegram, telegramTrigger. Event-driven trigger; 6 nodes.

Source: https://github.com/nicoware-dev/hivefi-v2/blob/64987cb588909ef2f419df35e4e52961360e70ce/n8n/HiveFi_Sales_Agent.json — original creator credit. Request a take-down →

More AI & RAG workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

AI & RAG

This workflow is perfect for anyone who wants to receive AI-powered research summaries directly on Telegram. Ideal for people asking frequent product, tech, or decision-making questions and want up-to

Agent, Lm Chat Deep Seek, Memory Buffer Window +4
AI & RAG

QuantumDefender AI is a next-generation intelligent cybersecurity assistant designed to harness the symbolic strength of quantum computing’s promise alongside cutting-edge AI capabilities. This sophis

OpenAI Chat, Agent, Memory Buffer Window +7
AI & RAG

This workflow triggers on Telegram updates, analyzes messages with an AI Agent using MCP tools, and sends notifications via Gmail and Telegram.

OpenAI Chat, N8N Nodes Mcp, Memory Buffer Window +4
AI & RAG

Use cases are many: Let users book, check, reschedule, or cancel meetings directly from Telegram. Perfect for solopreneurs, agencies, or teams who want an AI-powered assistant that prevents double-boo

Telegram Trigger, Agent, Gmail Tool +5
AI & RAG

Telegram AI Langchain bot. Uses lmChatOpenAi, memoryBufferWindow, telegram, executeWorkflowTrigger. Event-driven trigger; 12 nodes.

OpenAI Chat, Memory Buffer Window, Telegram +5