Templates / Monitor DeFi liquidation risk with OpenAI GPT-4.1 and Slack alerts

Monitor DeFi liquidation risk with OpenAI GPT-4.1 and Slack alerts

Ready for 3.0

by WeblineIndia ✓ · 13 views · created 2026-10-07 · Crypto Trading, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 14 nodes and runs on a schedule (every 10 minutes). Along the way it connects Google Sheets, OpenAI and Slack.

How it runs

Trigger: On a schedule (every 10 minutes).

  1. Load Monitor Configuration (Edit Fields (Set)): sets 5 fields: position_api_url, price_api_url, warning_threshold…
  2. Fetch Lending Position (HTTP Request): calls an HTTP API
  3. Validate Lending Position (If): checks a condition and branches into true / false
  4. Fetch Live Asset Price (HTTP Request): calls an HTTP API
  5. Validate Market Price (If): checks a condition and branches into true / false
  6. Calculate Risk Metrics (Code): runs custom JavaScript code
  7. Classify Liquidation Risk (Code): runs custom JavaScript code
  8. Log Monitoring Result (Google Sheets): append
  9. Check Alert Required (If): checks a condition and branches into true / false
  10. Generate Risk Alert Message (OpenAI): uses OpenAI

…plus 3 more steps. See the full node list below.

Services it uses

Google SheetsOpenAISlack

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (8)

From the author

Quick overview This workflow runs every 10 minutes to monitor a DeFi lending position by fetching position and price data via HTTP, calculating liquidation risk metrics, logging results to Google Sheets, and sending AI-written Slack alerts (via OpenAI) when…

Excerpt from WeblineIndia's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.