AAVE Portfolio Professional AI Agent | Telegram + Email + GPT-4o + Moralis

Go to Workflow
414 views
Built by Don Jayamaha Jr Don Jayamaha Jr
Created on June 07, 2026

Description

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

Scheduled or manual trigger
Pulls wallet addresses from Google Sheets
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:



Nodes Used (6)

AI Agent
@n8n/n8n-nodes-langchain.agent
Code
n8n-nodes-base.code
Gmail
n8n-nodes-base.gmail
Google Sheets
n8n-nodes-base.googleSheets
OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi
Telegram
n8n-nodes-base.telegram