Create autonomous payment agents using AgentGatePay and multi-chain tokens
Ready for 3.0Ready 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.
Nodes used (5)
- Manual Trigger
n8n-nodes-base.manualTrigger - Code
n8n-nodes-base.code - Data table
n8n-nodes-base.dataTable - If
n8n-nodes-base.if - HTTP Request
n8n-nodes-base.httpRequest
What it does
AgentGatePay N8N Quick Start Guide Get your AI agents paying for resources autonomously in under 10 minutes. > ⚠️ BETA VERSION: These templates are currently in beta. We're actively adding features and improvements based on user feedback. Expect updates for enhanced functionality, additional blockchain networks, and new payment options. --- What You'll Build - Buyer Agent: Automatically pays for API resources using USDC, USDT, or DAI on Ethereum, Base, Polygon, or Arbitrum blockchains - Seller API: Accepts multi-token payments and delivers resources - Monitoring: Track spending and revenue in real-time across all chains and tokens Supported Tokens: - USDC (6 decimals) - Recommended - USDT (6 decimals) - DAI (18 decimals) Supported Blockchains: - Ethereum (mainnet) - Base (recommended for low gas fees ~$0.001) - Polygon - Arbitrum --- Prerequisites (5 minutes) 1. Create AgentGatePay Accounts Buyer Account (agent that pays): bash curl -X POST https://api.agentgatepay.com/v1/users/signup \ -H "Content-Type: application/json" \ -d '{ "email": "[email protected]", "password": "SecurePass123!", "usertype": "agent" }' Seller Account (receives payments): bash curl -X POST https://api.agentgatepay.com/v1/users/signup \ -H "Content-Type: application/json" \ -d '{ "email": "[email protected]", "password": "SecurePass123!", "usertype": "merchant" }' Save both API keys - shown only once! 2. Deploy Transaction Signing Service (2 minutes) One-Click Render Deploy: 1. Click: !Deploy to Render 2. Enter: - AGENTGATEPAYAPIKEY: Your buyer API key - WALLETPRIVATEKEY: Your wallet private key (0x...) 3. Deploy → Copy service URL: https://your-app.onrender.com 3. Fund Wallet - Send USDC, USDT, or DAI to your buyer wallet - Default: Base network (lowest gas fees) - Need ~$1 in tokens for testing + ~$0.01 ETH for gas (on Ethereum) or ~$0.001 on Base --- Installation (3 minutes) Step 1: Import Templates In N8N: 1. Go to Workflows → Add Workflow 2. Click ⋮ (three dots) → Import from File 3. Import all 4 workflows: - 🤖 Create a Cryptocurrency-Powered API for Selling Digital Resources with AgentGatePay - 💲Create a Cryptocurrency-Powered API for Selling Digital Resources with AgentGatePay - 📊 Buyer Agent Monitoring - AgentGatePay Autonomous Payment Workflow - 💲 Seller Agent Monitoring - AgentGatePay Autonomous Payment Workflow Step 2: Create Data Table In N8N Settings: 1. Go to Settings → Data → Data Tables 2. Create table: AgentPayMandates 3. Add column: mandatetoken (type: String) 4. Save --- Configuration (2 minutes) Configure Seller API First Open: 💲Seller Resource API - CLIENT TEMPLATE Edit Node 1 (Parse Request): javascript const SELLERCONFIG = { merchant: { walletaddress: "0xYourSellerWallet...", // ← Your seller wallet apikey: "pklivexyz789..." // ← Your seller API key }, catalog: { "demo-resource": { id: "demo-resource", priceusd: 0.01, // $0.01 per resource description: "Demo API Resource" } } }; Activate workflow → Copy webhook URL Configure Buyer Agent Open: 🤖 Buyer Agent - CLIENT TEMPLATE Edit Node 1 (Load Config): javascript const CONFIG = { buyer: { email: "[email protected]", // ← Your buyer email apikey: "pkliveabc123...", // ← Your buyer API key budgetusd: 100, // $100 mandate budget mandatettldays: 7 // 7-day validity }, seller: { apiurl: "https://YOUR-N8N.app.n8n.cloud/webhook/YOUR-WEBHOOK-ID" // ← Seller webhook base URL ONLY (see README.md for extraction instructions) }, render: { serviceurl: "https://your-app.onrender.com" // ← Your Render URL } }; --- Run Your First Payment (1 minute) Execute Buyer Agent 1. Open Buyer Agent workflow 2. Click Execute Workflow 3. Watch the magic happen: - Mandate created ($100 budget) - Resource requested (402 Payment Required) - Payment signed (2 transactions: merchant + commission) - Payment verified on blockchain - Resource delivered Total time: ~5-8 seconds Verify on Blockchain Check transactions on BaseScan: https://basescan.org/address/YOURBUYERWALLET You'll see: - TX 1: Commission to Ag