惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

美团技术团队
Microsoft Azure Blog
Microsoft Azure Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
B
Blog
Y
Y Combinator Blog
博客园_首页
有赞技术团队
有赞技术团队
博客园 - Franky
腾讯CDC
G
Google Developers Blog
Recent Announcements
Recent Announcements
博客园 - 【当耐特】
D
Docker
The GitHub Blog
The GitHub Blog
MyScale Blog
MyScale Blog
H
Help Net Security
Apple Machine Learning Research
Apple Machine Learning Research
A
About on SuperTechFans
D
DataBreaches.Net
T
The Blog of Author Tim Ferriss
V
V2EX
U
Unit 42
aimingoo的专栏
aimingoo的专栏
WordPress大学
WordPress大学

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
3 Ways Your AI Agent Can Alert You: Push, Telegram, and W...
Wallet Guy · 2026-04-23 · via DEV Community

When your AI agent manages real funds, you need to know what it's doing — especially when something goes wrong. Most wallet infrastructure forces you to choose between basic email notifications or no alerts at all, leaving you flying blind when your agent trades thousands of dollars.

Setting up proper notifications for self-hosted AI agents shouldn't require building your own alert system from scratch. You want immediate notifications when your agent executes large trades, gets blocked by policies, or encounters errors — without depending on third-party services that could go down or compromise your privacy.

Why Real-Time Notifications Matter for AI Agents

AI trading agents can execute hundreds of transactions per hour across multiple DeFi protocols. Unlike human traders who actively monitor their positions, agents operate autonomously. Without proper alerts, you might discover a failed arbitrage opportunity or policy violation hours too late.

The stakes are particularly high for self-hosted setups. You've chosen to run your own infrastructure for privacy and control — but that means you're also responsible for monitoring. No external service will alert you if your agent burns through your daily spending limit or gets stuck on a failed transaction.

The Three-Channel Approach with WAIaaS

WAIaaS provides three notification channels that work together to keep you informed without overwhelming you. Each channel serves different use cases and urgency levels.

1. Push Notifications (Instant Mobile Alerts)

Push notifications deliver instant alerts to your phone through the WAIaaS push-relay service. This channel is perfect for high-priority events that need immediate attention.

First, configure the push notification channel:

waiaas notification setup --type push

Enter fullscreen mode Exit fullscreen mode

The daemon automatically sends push notifications for:

  • Policy violations (when transactions get denied or delayed)
  • Large transactions that exceed your notify thresholds
  • Failed transactions that require intervention
  • System errors or connection issues

Push notifications include transaction details, amounts, and direct links to approve or cancel pending operations. The push-relay service runs alongside your main daemon container:

services:
  daemon:
    image: ghcr.io/minhoyoo-iotrust/waiaas:latest
    # ... main daemon config

  push-relay:
    image: ghcr.io/minhoyoo-iotrust/waiaas-push-relay:latest
    container_name: waiaas-push-relay
    environment:
      - WAIAAS_DAEMON_URL=http://daemon:3100
    restart: unless-stopped

Enter fullscreen mode Exit fullscreen mode

2. Telegram Bot (Rich Messaging + Approval Actions)

Telegram notifications provide richer context than push notifications, including transaction previews, market data, and interactive approval buttons. This channel excels at handling delayed transactions that need owner approval.

Set up the Telegram channel:

waiaas notification setup --type telegram --bot-token <your-bot-token>

Enter fullscreen mode Exit fullscreen mode

When your agent triggers a policy that requires approval, Telegram shows:

  • Complete transaction details and USD values
  • Current token prices and slippage estimates
  • Approve/Deny buttons for one-tap responses
  • Link to view the transaction in the admin UI

For example, if your agent attempts a $2,000 DeFi position that exceeds your delay threshold:

🚨 Transaction Requires Approval

Agent: trading-agent-v2
Action: Deposit to Aave v3
Amount: 2,000 USDC → aUSDC
Current APY: 3.2%

⏰ Auto-deny in: 14:32
[✅ Approve] [❌ Deny] [🔗 Details]

Enter fullscreen mode Exit fullscreen mode

3. WalletConnect (Secure Transaction Signing)

WalletConnect notifications appear directly in your mobile wallet app, providing the highest security level for transaction approvals. This channel is essential for high-value transactions or sensitive operations.

Connect your wallet for approvals:

curl -X POST http://127.0.0.1:3100/v1/walletconnect/connect \
  -H "Content-Type: application/json" \
  -H "X-Master-Password: <your-password>" \
  -d '{"walletId": "<wallet-uuid>"}'

Enter fullscreen mode Exit fullscreen mode

When your agent needs approval for a large trade, WalletConnect shows the raw transaction data in your wallet app. You can review the exact contract calls, gas estimates, and destination addresses before signing. This provides the same security guarantees as manually executing the transaction yourself.

Configuring Notification Triggers

WAIaaS notifications are driven by your policy configuration. The policy engine determines when to send alerts based on transaction amounts, security tiers, and custom rules.

Create a spending limit policy with notification tiers:

curl -X POST http://127.0.0.1:3100/v1/policies \
  -H "Content-Type: application/json" \
  -H "X-Master-Password: <your-password>" \
  -d '{
    "walletId": "<wallet-uuid>",
    "type": "SPENDING_LIMIT",
    "rules": {
      "instant_max_usd": 100,
      "notify_max_usd": 500,
      "delay_max_usd": 2000,
      "delay_seconds": 900
    }
  }'

Enter fullscreen mode Exit fullscreen mode

This configuration creates four notification behaviors:

  • $0-100: Execute instantly, no notification (INSTANT tier)
  • $101-500: Execute instantly, send notification (NOTIFY tier)
  • $501-2000: Delay 15 minutes, send notification with cancel option (DELAY tier)
  • $2001+: Block transaction, require explicit approval (APPROVAL tier)

Multi-Channel Notification Flow

The three channels work together to provide layered alerts. Here's what happens when your agent attempts a $1,500 Jupiter swap:

  1. Policy Check: Spending limit policy assigns DELAY tier (15-minute delay)
  2. Push Notification: Instant alert on your phone with basic transaction details
  3. Telegram Message: Rich notification with market data and cancel button
  4. 15-Minute Window: You can cancel via any channel if the trade looks wrong
  5. Auto-Execute: If no cancellation, transaction proceeds automatically

For transactions requiring approval (over $2,000), WalletConnect joins the flow:

  1. Push + Telegram: Initial alerts that approval is needed
  2. WalletConnect: Secure signing request in your wallet app
  3. No Auto-Execute: Transaction waits indefinitely until you approve or deny

Quick Start: Set Up All Three Channels

Step 1: Deploy WAIaaS with notification services

git clone https://github.com/minhoyoo-iotrust/WAIaaS.git
cd WAIaaS
docker compose up -d

Enter fullscreen mode Exit fullscreen mode

Step 2: Configure your notification channels

# Set up push notifications
waiaas notification setup --type push

# Set up Telegram (get bot token from @BotFather)
waiaas notification setup --type telegram --bot-token <your-token>

# Connect WalletConnect
waiaas owner connect

Enter fullscreen mode Exit fullscreen mode

Step 3: Create spending limit policies

waiaas quickset --mode mainnet  # Creates wallets + basic policies

Enter fullscreen mode Exit fullscreen mode

Step 4: Test notifications with a small transaction

# This will trigger a NOTIFY-tier alert
curl -X POST http://127.0.0.1:3100/v1/transactions/send \
  -H "Authorization: Bearer <your-session-token>" \
  -d '{"type": "TRANSFER", "to": "<test-address>", "amount": "0.01"}'

Enter fullscreen mode Exit fullscreen mode

Step 5: Monitor your notifications and adjust policy thresholds based on your agent's trading patterns

What's Next

With all three notification channels configured, you have complete visibility into your agent's activities without sacrificing the autonomy that makes AI agents valuable. You'll know immediately when something needs attention, while routine operations continue uninterrupted.

Ready to set up bulletproof notifications for your AI agent? Check out the WAIaaS repository for complete setup instructions, or visit waiaas.ai to learn more about self-hosted AI agent infrastructure.