● # AgentGatePay Examples
Examples and workflow templates for autonomous AI agent payments.
Automate crypto payments (USDC/USDT/DAI) across Ethereum, Base, Polygon, and Arbitrum using zero-code n8n workflows, AI framework integrations, and API demos. AgentGatePay currently supports multi-chain cryptocurrency payments. We are actively working to expand support for additional payment methods. If you would like to see a specific payment method or feature, please contact support@agentgatepay.com. Your feedback helps shape our roadmap.
AgentGatePay is currently in BETA. By using these examples and the AgentGatePay service, you acknowledge and accept:
- Service Availability: The service may be unavailable, suspended, or permanently shut down at any time without prior notice. No SLA or uptime guarantees.
- Data Loss Risk: All data may be lost at any time without recovery. Users are solely responsible for maintaining independent backups of transaction records.
- No Liability: AgentGatePay is NOT LIABLE for any direct, indirect, or consequential damages including lost cryptocurrency, failed transactions, service interruptions, or loss of revenue.
- Financial Risk: Blockchain transactions are irreversible. Users are solely responsible for securing private keys, API keys, and compliance with applicable laws.
- No Warranty: These examples and the service are provided "AS IS" without warranties of any kind.
📄 Read the full DISCLAIMER.md before using these examples or AgentGatePay.
BY USING THESE EXAMPLES, YOU AGREE TO THESE TERMS.
Cryptocurrencies: USDC, USDT, DAI Blockchains: Ethereum, Base, Polygon, Arbitrum
Supported Combinations:
- USDC: All chains (Ethereum, Base, Polygon, Arbitrum)
- USDT: Ethereum, Polygon, Arbitrum (not available on Base)
- DAI: All chains (Ethereum, Base, Polygon, Arbitrum)
Gas Tokens Required:
- Ethereum: ETH
- Base: ETH
- Polygon: MATIC
- Arbitrum: ETH
For automation users who want zero-code blockchain payment workflows:
- Import workflow JSON from
n8n/directory into your N8N platform - Configure your AgentGatePay API key
- Set up notifications (Slack, Email, or Discord)
- Deploy transaction signing service using one-click Render deploy
- Activate workflow to begin monitoring payments
Complete setup time: approximately 5-10 minutes.
Production examples for popular AI agent frameworks using AgentGatePay SDKs.
Python Framework Examples:
- LangChain Integration - Autonomous tool-calling agents with payment capabilities (10 complete examples)
JavaScript/TypeScript Framework Examples:
- LangChain.js Integration - Node.js/TypeScript agents with blockchain payments (10 complete examples)
Need help with other platforms or languages? Contact support@agentgatepay.com and we'll help you integrate AgentGatePay with your framework.
Production-ready n8n templates for autonomous blockchain payment automation:
Buyer Agent Workflow
- Autonomous payment for API resources using pre-authorized mandates
- Multi-chain support (Ethereum, Base, Polygon, Arbitrum)
- Budget management with AP2 mandate protocol
- Automatic transaction signing via Render or Railway service
- Configuration time: 10 minutes
Seller Resource API Workflow
- Monetize n8n webhooks and APIs with cryptocurrency payments
- HTTP 402 Payment Required protocol implementation
- On-chain payment verification
- Automatic resource delivery upon payment confirmation
- Customizable resource catalog
Buyer Monitoring Dashboard
- Real-time spending analytics (track outgoing payments)
- Mandate budget tracking (remaining balance, spent amount, utilization percentage)
- Transaction history (payments YOU sent to merchants)
- Multi-wallet support
- Budget depletion and spending alerts
Seller Monitoring Dashboard
- Revenue analytics (total, daily, weekly, monthly breakdowns)
- Payment tracking (payments YOU received from buyers)
- Multi-chain revenue breakdown
- Top buyers analytics
- Webhook delivery status tracking
Official SDK integration examples for popular AI agent frameworks.
Python SDK Examples (Browse Python examples)
- LangChain - Payment-enabled tool agents, API marketplace agents, budget-managed research assistants (10 complete examples)
- REST API Integration - Integration guides for any framework
- MCP Integration - Model Context Protocol (15 tools)
JavaScript/TypeScript SDK Examples (Browse JavaScript examples)
- LangChain.js - Node.js/TypeScript payment agents, Express.js webhook servers (10 complete examples)
- REST API Integration - Integration guides for any JavaScript framework
- MCP Integration - Model Context Protocol (15 tools)
- AIF (Agent Interaction Firewall) - First firewall built for AI agents with rate limiting and reputation system
- Multi-chain blockchain support (Ethereum, Base, Polygon, Arbitrum)
- Multi-token support (USDC, USDT, DAI) with automatic decimal handling
- Real-time notifications (Slack, Email, Discord, Webhooks)
- Complete audit log integration for compliance tracking
- Production-ready error handling and retry logic
- Webhook signature verification (HMAC)
- Budget management using AP2 mandate system with TTL and scope controls
- One-click deployment for transaction signing service
- Comprehensive documentation with troubleshooting guides
Gateway Commission: 0.5% fee on all payments
- Automatically deducted via two-transaction model
- Commission TX: 0.5% → AgentGatePay wallet (covers infrastructure costs)
- Merchant TX: 99.5% → seller wallet
- Both transactions atomic and transparent on-chain
For n8n Workflows:
- AgentGatePay API key
- n8n instance (Cloud or self-hosted)
- Ethereum-compatible wallet funded with payment tokens (USDC, USDT, or DAI) and gas tokens
- Transaction signing service (deployed via Render or Railway)
For Framework Integrations:
- Python 3.9+ or Node.js 18+ (framework dependent)
- AgentGatePay SDK:
pip install agentgatepay-sdkornpm install agentgatepay-sdk - AgentGatePay API key
- Ethereum-compatible wallet funded with payment tokens and gas tokens
- API Endpoint: https://api.agentgatepay.com - REST API for payments, mandates, webhooks
- MCP Endpoint: https://mcp.agentgatepay.com - Model Context Protocol (15 tools)
- SDK Repository - Official SDKs (JavaScript + Python)
- Python SDK on PyPI - Install:
pip install agentgatepay-sdk - JavaScript SDK on npm - Install:
npm install agentgatepay-sdk - n8n Complete Guide - Full setup, configuration, and troubleshooting
- Python LangChain Examples - Complete guide with multi-token/chain configuration
- JavaScript/TypeScript LangChain.js Examples - Complete guide with multi-token/chain configuration
Contributions are welcome. To contribute:
- Fork this repository
- Create a feature branch (
git checkout -b feature/new-example) - Commit your changes (
git commit -m 'Add new integration example') - Push to the branch (
git push origin feature/new-example) - Open a Pull Request
For bugs or feature requests, please email support@agentgatepay.com.
AgentGatePay is actively expanding payment method support beyond cryptocurrency. Planned additions include:
- Credit and debit card processing (Stripe, Square)
- Bank transfers (ACH, SEPA)
- PayPal, Venmo, Cash App
- Regional payment methods (Alipay, WeChat Pay, PIX)
- Mobile payment integrations
To request features or provide feedback:
- Email: support@agentgatepay.com
Your input directly influences development priorities.
MIT License - see LICENSE file for details.
Free for production use, modification, and distribution. Commercial use permitted.
If you are using AgentGatePay in production, please star this repository. Stars help other developers discover these integration tools.
API Endpoint: api.agentgatepay.com MCP Endpoint: mcp.agentgatepay.com
Maintained by the AgentGatePay team.