Skip to main content

AAVE portfolio professional AI agent | Telegram + Email + GPT-4o + Moralis

Workflow preview

Workflow preview
100%
AAVE portfolio professional AI agent | Telegram + Email + GPT-4o + Moralis preview
Open on n8n.io

Important notice

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

1. Workflow Overview

A next generation AI powered DeFi health monitor that tracks wallet positions across Aave V3 using GPT 4o and LangChain. It delivers human readable reports via Telegram and Gmail , triggered on sch...

Best for

  • Crypto Trading automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.telegram, n8n-nodes-base.scheduletrigger, @n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-base.httprequesttool, n8n-nodes-base.gmail, n8n-nodes-base.code, @n8n/n8n-nodes-langchain.agent, n8n-nodes-base.googlesheets

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
AAVE portfolio professional AI agent | Telegram + Email + GPT-4o + Moralis
Workflow name
AAVE portfolio professional AI agent | Telegram + Email + GPT-4o + Moralis

A next-generation AI-powered DeFi health monitor that tracks wallet positions across Aave V3 using GPT-4o and LangChain. It delivers human-readable reports via Telegram and Gmail, triggered on schedule or manually. Built for professionals monitoring multiple DeFi wallets.


🧩 System Components

Component Role
✅ Scheduler Triggers the workflow periodically
✅ Google Sheets Wallet Loader Loads all monitored wallet addresses
✅ Set Variables Injects dynamic wallet + date
✅ AAVE Portfolio AI Agent GPT-4o + LangChain AI that generates human-readable summaries
✅ Moralis API Nodes (3) Collect Aave V3 supply/borrow/collateral data
✅ OpenAI Chat Model (gpt-4o-mini) Interprets on-chain data and explains it
✅ Telegram Delivery Sends summary to Telegram chat
✅ Gmail Email Sender Sends full HTML report to email
✅ HTML Formatter Beautifies AI output into email structure

⚙️ How It Works

  1. Scheduled or manual trigger

  2. Pulls wallet addresses from Google Sheets

  3. For each wallet:

    • Pulls Aave data from Moralis
    • GPT-4o AI generates report
    • Sends summary to Telegram
    • Sends full HTML report via Gmail

🛠 Installation Steps

1. Import the Workflow

  • Upload AAVE_Portfolio_Professional_AI_Agent.json to your n8n instance.

2. Connect These Credentials

Service Required Credential Type
Moralis HTTP Header Auth (X-API-Key)
OpenAI GPT-4o via OpenAI API Key
Telegram Telegram Bot API Token
Gmail Gmail OAuth2 Credential

3. Create Google Sheet

  • Column name must be: wallet_address
  • Add wallet addresses you want monitored

📬 Output Format

Telegram Message Example

📊 Aave DeFi Health Report  
Wallet: 0xABC...123  
Date: 2025-05-21

▪️ Pool: Aave Ethereum USDC  
• Supply: $10,040  
• Borrowed: $5,500  
• Health Factor: 3.43  
• Liquidation Risk: No  

Email Report

  • Full HTML + plain text versions
  • Auto-generated date + styled per wallet
  • Includes notes and threshold warnings

🧠 Smart Features

  • GPT-4o generates clear human summaries
  • Monitors multiple wallets in one run
  • Flags liquidation risk dynamically
  • Logs daily performance snapshots

💡 Customization Ideas

  • Add Telegram slash command /aave <wallet>
  • Expand to monitor Compound, Lido, or Uniswap
  • Export to Notion, Slack, or Data Studio

🧾 Licensing & Attribution

© 2025 Treasurium Capital Limited Company

Architecture, prompts, and report formatting are intellectual property protected. No unauthorized rebranding, redistribution, or resale permitted.

🔗 For support or licensing inquiries: LinkedIn – Don Jayamaha


🚀 Track all your Aave DeFi positions using AI—delivered via Telegram + Gmail. Perfect for funds, traders, and DeFi power users.


🎥 Watch the Live Demo:

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 - Telegram

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

Block 2 - Schedule Trigger

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

Block 3 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 4 - getDefiSummary

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

Block 5 - getDefiPositionsSummary

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

Block 6 - getDefiPositionsByProtocol

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

Block 7 - Gmail

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

Block 8 - Format Email

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

Block 9 - AAVE Portfolio Professional AI Agent

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

Block 10 - Wallet Addresses to Monitor

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Block 11 - Edit Fields

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

Block 12 - Sticky Note

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

Block 13 - Sticky Note1

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

Block 14 - Sticky Note2

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

Block 15 - Sticky Note3

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

Block 16 - Sticky Note4

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

Block 17 - Sticky Note5

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

Block 18 - Sticky Note6

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

Block 19 - Sticky Note7

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

Block 20 - Sticky Note8

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

Block 21 - Sticky Note9

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

Block 22 - Sticky Note10

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

Block 23 - Sticky Note11

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

3. Summary Table

Workflow AAVE portfolio professional AI agent | Telegram + Email + GPT-4o + Moralis
Complexity advanced
Nodes 23
Categories Crypto Trading, AI Summarization
Author Don Jayamaha Jr
Published 21 May 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/4267/4267.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 AAVE portfolio professional AI agent | Telegram + Email + GPT-4o + Moralis do?

A next generation AI powered DeFi health monitor that tracks wallet positions across Aave V3 using GPT 4o and LangChain. It delivers human readable reports via Telegram and Gmail , triggered on sch...

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 Crypto Trading, AI Summarization use case.