Skip to main content

Account Agents

Agents are programmable trigger-action rules attached to individual wallets. When a trigger condition is met, Avenue executes the associated action automatically — no polling required.

Agent anatomy

An agent has three components:

Triggers

Actions

Example: Auto-sweep on credit

Every time money lands on wal_abc123, it is automatically swept to wal_main_pool.

Agent logs

Every agent execution is recorded in agent_logs:
  • When it fired
  • Which trigger was met
  • What action was taken
  • Whether it succeeded
View execution history per agent in the dashboard or via GET /v1/agents/:id/logs.