AgentGate s'intègre en quelques lignes dans tous les frameworks d'agents majeurs. Peu importe votre stack — si votre agent peut faire un appel HTTP, il peut utiliser AgentGate.
Branchez AgentGate comme outil dans votre agent OpenAI. L'agent soumet ses intentions de paiement via la fonction `pay_with_agentgate` — chaque transaction passe par vos règles avant d'être exécutée.
from agents import Agent, tool
import httpx
@tool
def pay_with_agentgate(amount: float, beneficiary: str, iban: str, reason: str) -> str:
res = httpx.post(
"https://agentgate.eu/api/v1/payment-intents",
headers={"Authorization": f"Bearer {API_KEY}"},
json={"amount": int(amount*100), "currency": "EUR",
"beneficiary": {"name": beneficiary, "account_identifier": iban},
"category": "payment", "memo": reason}
)
return res.json().get("status")AgentGate expose un serveur MCP. Claude et tout agent compatible MCP peut soumettre des paiements nativement — sans écrire d'intégration sur-mesure.
{
"mcpServers": {
"agentgate": {
"command": "npx",
"args": ["-y", "@agentgate/mcp-server"],
"env": { "AGENTGATE_API_KEY": "votre_clé" }
}
}
}Créez un outil LangChain qui encapsule l'API AgentGate. Compatible avec LangGraph, LCEL et tous les agents LangChain.
from langchain.tools import tool
import httpx
@tool
def agentgate_pay(amount_eur: float, beneficiary: str, memo: str) -> dict:
"""Soumet un paiement à AgentGate pour validation."""
return httpx.post(
"https://agentgate.eu/api/v1/payment-intents",
headers={"Authorization": f"Bearer {API_KEY}"},
json={"amount": int(amount_eur * 100), "currency": "EUR",
"beneficiary": {"name": beneficiary}, "memo": memo}
).json()Utilisez le nœud HTTP Request dans n8n pour appeler l'API AgentGate depuis vos workflows d'automatisation. Parfait pour les agents n8n qui gèrent des paiements récurrents.
POST https://agentgate.eu/api/v1/payment-intents
Authorization: Bearer {{ $env.AGENTGATE_API_KEY }}
Content-Type: application/json
{
"amount": {{ $json.amount }},
"currency": "EUR",
"beneficiary": { "name": "{{ $json.vendor }}" },
"memo": "{{ $json.description }}"
}Intégrez AgentGate dans n'importe quel langage ou framework via notre API REST standard. Python, Node.js, Go, Ruby — tout ce qui peut faire un appel HTTP fonctionne.
curl -X POST https://agentgate.eu/api/v1/payment-intents \
-H "Authorization: Bearer $AGENTGATE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"amount": 15000,
"currency": "EUR",
"beneficiary": { "name": "Fournisseur SARL", "account_identifier": "FR76..." },
"category": "fournitures",
"memo": "Commande mensuelle"
}'