Block 1 - 📡 GET /resource/{id}
- Type / Role
- n8n-nodes-base.webhook - webhook
- Config choices
- Version 1.1
This workflow is provided as-is. Please review and test before using in production.
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 feat...
n8n-nodes-base.webhook, n8n-nodes-base.code, n8n-nodes-base.if, n8n-nodes-base.respondtowebhook, n8n-nodes-base.httprequest, n8n-nodes-base.stickynote
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by AgentGatePay.
Original n8n.io sourceGet 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.
Supported Tokens:
Supported Blockchains:
Buyer Account (agent that pays):
curl -X POST https://api.agentgatepay.com/v1/users/signup \
-H "Content-Type: application/json" \
-d '{
"email": "[email protected]",
"password": "SecurePass123!",
"user_type": "agent"
}'
Seller Account (receives payments):
curl -X POST https://api.agentgatepay.com/v1/users/signup \
-H "Content-Type: application/json" \
-d '{
"email": "[email protected]",
"password": "SecurePass123!",
"user_type": "merchant"
}'
Save both API keys - shown only once!
One-Click Render Deploy:
AGENTGATEPAY_API_KEY: Your buyer API keyWALLET_PRIVATE_KEY: Your wallet private key (0x...)https://your-app.onrender.comIn N8N:
🤖 Create a Cryptocurrency-Powered API for Selling Digital Resources with AgentGatePay💲Create a Cryptocurrency-Powered API for Selling Digital Resources with AgentGatePay📊 AgentGatePay - Monitoring DashboardIn N8N Settings:
AgentPay_Mandatesmandate_token (type: String)Open: 💲Seller Resource API - CLIENT TEMPLATE
Edit Node 1 (Parse Request):
const SELLER_CONFIG = {
merchant: {
wallet_address: "0xYourSellerWallet...", // ← Your seller wallet
api_key: "pk_live_xyz789..." // ← Your seller API key
},
catalog: {
"demo-resource": {
id: "demo-resource",
price_usd: 0.01, // $0.01 per resource
description: "Demo API Resource"
}
}
};
Activate workflow → Copy webhook URL
Open: 🤖 Buyer Agent - CLIENT TEMPLATE
Edit Node 1 (Load Config):
const CONFIG = {
buyer: {
email: "[email protected]", // ← Your buyer email
api_key: "pk_live_abc123...", // ← Your buyer API key
budget_usd: 100, // $100 mandate budget
mandate_ttl_days: 7 // 7-day validity
},
seller: {
api_url: "https://YOUR-N8N.app.n8n.cloud/webhook/YOUR-WEBHOOK-ID" // ← Seller webhook base URL ONLY (see README.md for extraction instructions)
},
render: {
service_url: "https://your-app.onrender.com" // ← Your Render URL
}
};
Total time: ~5-8 seconds
Check transactions on BaseScan:
https://basescan.org/address/YOUR_BUYER_WALLET
You'll see:
Open: 📊 AgentGatePay - Monitoring Dashboard
Edit Node 1: Set your buyer wallet address and API key
Execute → See:
Open: 📊 AgentGatePay - Monitoring Dashboard
Edit Node 1: Set your seller wallet address and API key
Execute → See:
1. Buyer Agent requests resource
↓
2. Seller returns 402 Payment Required
(includes: wallet address, price, token, chain)
↓
3. Buyer signs TWO blockchain transactions via Render:
- Merchant payment (99.5%)
- Gateway commission (0.5%)
↓
4. Buyer resubmits request with transaction hashes
↓
5. Seller verifies payment with AgentGatePay API
↓
6. Seller delivers resource
AP2 Mandate:
x402 Protocol:
Two-Transaction Model:
Edit seller Node 1:
catalog: {
"expensive-api": {
id: "expensive-api",
price_usd: 1.00, // ← Change price
description: "Premium API access"
}
}
catalog: {
"basic": { id: "basic", price_usd: 0.01, description: "Basic API" },
"pro": { id: "pro", price_usd: 0.10, description: "Pro API" },
"enterprise": { id: "enterprise", price_usd: 1.00, description: "Enterprise API" }
}
Buyer requests by ID: ?resource_id=pro
By default, templates use Base + USDC. To change:
Edit buyer Node 1 (Load Config):
const CONFIG = {
buyer: { /* ... */ },
seller: { /* ... */ },
render: { /* ... */ },
payment: {
chain: "polygon", // Options: ethereum, base, polygon, arbitrum
token: "DAI" // Options: USDC, USDT, DAI
}
};
Important:
Token Decimals:
Replace "Execute Workflow" trigger with Schedule Trigger:
Add Slack/Email node to send alerts.
Fix: Delete mandate from Data Table → Re-execute workflow
Fix: Wait 10-15 seconds for blockchain confirmation → Retry
Fix: Render free tier spins down after 15 min → First request takes ~5 sec (cold start)
Fix: Send more tokens (USDC/USDT/DAI) to buyer wallet
Fix: Ensure seller workflow is Active (toggle in top-right)
Before going live:
You just built:
Total setup time: ~10 minutes Total cost: $0 (Render free tier + AgentGatePay free)
Ready to scale? Connect multiple agents, add more resources, integrate with your existing systems!
Questions? Check README.md or contact [email protected]
Website: https://www.agentgatepay.com
This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.
| Workflow | Create a cryptocurrency-powered API for selling resources with AgentGatePay |
|---|---|
| Complexity | advanced |
| Nodes | 15 |
| Categories | Crypto Trading, AI Chatbot |
| Author | AgentGatePay |
| Published | 16 Dec 2025 |
Use the JSON export at /data/workflows/11874/11874.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.
Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.
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 feat...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Crypto Trading, AI Chatbot use case.