Acceso a datos de Stripe mediante lenguaje natural con Kimi K2 y OpenRouter
Este es unCRM, AI Chatbotflujo de automatización del dominio deautomatización que contiene 12 nodos.Utiliza principalmente nodos como StripeTool, Agent, ChatTrigger, LmChatOpenRouter, MemoryBufferWindow. Gestión de datos de Stripe con lenguaje natural de Kimi K2 a través de OpenRouter
- •Clave de API de Stripe
Nodos utilizados (12)
Categoría
{
"id": "lc8NKe6V14iG51T4",
"meta": {
"instanceId": "9219ebc7795bea866f70aa3d977d54417fdf06c41944be95e20cfb60f992db19",
"templateCredsSetupCompleted": true
},
"name": "Access Stripe data in natural language with Kimi K2 via OpenRouter",
"tags": [],
"nodes": [
{
"id": "fc80d268-934e-4bb7-a854-0483732bfb34",
"name": "Agente de IA",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
-48,
-112
],
"parameters": {
"options": {
"systemMessage": "=You are an AI agent with authorized access to a defined set of Stripe tools. Your core objective is to understand and respond to user queries by securely interacting with Stripe's API, enabling read and write operations in accordance with their requests and permissions.\n\nTool Access and Capabilities\nRead Data Capabilities\nYou can retrieve the following information from Stripe:\nCustomers: Access and list multiple customer records.\nCharges: Retrieve and list multiple charge transactions.\nCoupons: Get lists of existing coupons.\nBalance: Obtain the current balance details.\n\nWrite Data Capabilities\nYou are authorized to:\nCreate Coupons: Generate new coupons within the Stripe system.\n\nStrictly follow these rules:\n\nNever access or attempt to retrieve data outside of the above abilities.\nAlways confirm actions (especially when creating coupons) and provide users with a summary of the resulting Stripe operation.\nClearly explain any Stripe terminology or usage as needed.\nReject and inform users if they request actions beyond your tool permissions.\nYour responses must be concise, accurate, and tailored to the user's intent regarding Stripe operations. \nUse Stripe data responsibly and in line with best practices for financial data access."
}
},
"typeVersion": 2
},
{
"id": "0dc1fc15-7958-4f01-be6d-bed3946d60c9",
"name": "Modelo de Chat OpenRouter",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
"position": [
-64,
112
],
"parameters": {
"model": "moonshotai/kimi-k2",
"options": {}
},
"credentials": {
"openRouterApi": {
"id": "TG7gYjmueITLXr7m",
"name": "OpenRouter account"
}
},
"typeVersion": 1
},
{
"id": "6edc5f19-be6c-4842-b69d-efc7bb46ad7f",
"name": "Cuando se recibe mensaje de chat",
"type": "@n8n/n8n-nodes-langchain.chatTrigger",
"position": [
-256,
-112
],
"webhookId": "ee12c9ab-62ac-4e5a-b657-4677bcfcf6d0",
"parameters": {
"options": {}
},
"typeVersion": 1.1
},
{
"id": "8f520f8d-5085-420a-907f-65958f4ca843",
"name": "Memoria Simple",
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"position": [
80,
112
],
"parameters": {
"contextWindowLength": 20
},
"typeVersion": 1.3
},
{
"id": "08695c48-3f6d-404d-acca-d799708f101b",
"name": "Crear un cupón en Stripe",
"type": "n8n-nodes-base.stripeTool",
"position": [
320,
368
],
"parameters": {
"resource": "coupon",
"percentOff": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Percent_Off', ``, 'number') }}"
},
"credentials": {
"stripeApi": {
"id": "zMFMWhEPuLeplXSo",
"name": "Stripe account"
}
},
"typeVersion": 1
},
{
"id": "c37f6b38-638b-46f6-a8d9-3ff526a7599b",
"name": "Obtener un balance en Stripe",
"type": "n8n-nodes-base.stripeTool",
"position": [
816,
96
],
"parameters": {},
"credentials": {
"stripeApi": {
"id": "zMFMWhEPuLeplXSo",
"name": "Stripe account"
}
},
"typeVersion": 1
},
{
"id": "1adee53c-0f39-44cb-b2c6-83779340bb0b",
"name": "Obtener múltiples cargos en Stripe",
"type": "n8n-nodes-base.stripeTool",
"position": [
496,
96
],
"parameters": {
"limit": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Limit', ``, 'number') }}",
"resource": "charge",
"operation": "getAll"
},
"credentials": {
"stripeApi": {
"id": "zMFMWhEPuLeplXSo",
"name": "Stripe account"
}
},
"typeVersion": 1
},
{
"id": "b9c48bc6-a79a-4e2b-bb2f-23837bd936af",
"name": "Obtener múltiples cupones en Stripe",
"type": "n8n-nodes-base.stripeTool",
"position": [
672,
96
],
"parameters": {
"limit": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Limit', ``, 'number') }}",
"resource": "coupon",
"operation": "getAll"
},
"credentials": {
"stripeApi": {
"id": "zMFMWhEPuLeplXSo",
"name": "Stripe account"
}
},
"typeVersion": 1
},
{
"id": "94ce8cf5-c2cf-4cb5-8a05-2a72c8011213",
"name": "Nota Adhesiva",
"type": "n8n-nodes-base.stickyNote",
"position": [
256,
-32
],
"parameters": {
"width": 688,
"height": 304,
"content": "## Read data\n"
},
"typeVersion": 1
},
{
"id": "5f79a25d-eab2-452d-ac07-8ccf3778ac2c",
"name": "Nota Adhesiva1",
"type": "n8n-nodes-base.stickyNote",
"position": [
256,
288
],
"parameters": {
"width": 224,
"height": 256,
"content": "## Write data"
},
"typeVersion": 1
},
{
"id": "4f9598f9-3e48-4979-a1f5-8c64b5c7b44c",
"name": "Obtener múltiples clientes en Stripe",
"type": "n8n-nodes-base.stripeTool",
"position": [
320,
96
],
"parameters": {
"limit": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Limit', ``, 'number') }}",
"filters": {},
"resource": "customer",
"operation": "getAll"
},
"credentials": {
"stripeApi": {
"id": "zMFMWhEPuLeplXSo",
"name": "Stripe account"
}
},
"typeVersion": 1
},
{
"id": "1cfd5b2f-36d7-42c8-ba67-0d2906d0bd93",
"name": "Nota Adhesiva2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-624,
96
],
"parameters": {
"color": 5,
"width": 464,
"height": 192,
"content": "## Requirements\n\n- An **Stripe** account and API key credentials enabled. n8n docs: https://docs.n8n.io/integrations/builtin/credentials/stripe/ \n- An **[OpenRouter](https://openrouter.ai)** account and API credentials enabled. Set up an API key at https://openrouter.ai/settings/keys "
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "58807a0c-a099-4d5f-9722-3bfce4363f80",
"connections": {
"8f520f8d-5085-420a-907f-65958f4ca843": {
"ai_memory": [
[
{
"node": "fc80d268-934e-4bb7-a854-0483732bfb34",
"type": "ai_memory",
"index": 0
}
]
]
},
"0dc1fc15-7958-4f01-be6d-bed3946d60c9": {
"ai_languageModel": [
[
{
"node": "fc80d268-934e-4bb7-a854-0483732bfb34",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"c37f6b38-638b-46f6-a8d9-3ff526a7599b": {
"ai_tool": [
[
{
"node": "fc80d268-934e-4bb7-a854-0483732bfb34",
"type": "ai_tool",
"index": 0
}
]
]
},
"08695c48-3f6d-404d-acca-d799708f101b": {
"ai_tool": [
[
{
"node": "fc80d268-934e-4bb7-a854-0483732bfb34",
"type": "ai_tool",
"index": 0
}
]
]
},
"1adee53c-0f39-44cb-b2c6-83779340bb0b": {
"ai_tool": [
[
{
"node": "fc80d268-934e-4bb7-a854-0483732bfb34",
"type": "ai_tool",
"index": 0
}
]
]
},
"b9c48bc6-a79a-4e2b-bb2f-23837bd936af": {
"ai_tool": [
[
{
"node": "fc80d268-934e-4bb7-a854-0483732bfb34",
"type": "ai_tool",
"index": 0
}
]
]
},
"6edc5f19-be6c-4842-b69d-efc7bb46ad7f": {
"main": [
[
{
"node": "fc80d268-934e-4bb7-a854-0483732bfb34",
"type": "main",
"index": 0
}
]
]
},
"4f9598f9-3e48-4979-a1f5-8c64b5c7b44c": {
"ai_tool": [
[
{
"node": "fc80d268-934e-4bb7-a854-0483732bfb34",
"type": "ai_tool",
"index": 0
}
]
]
}
}
}¿Cómo usar este flujo de trabajo?
Copie el código de configuración JSON de arriba, cree un nuevo flujo de trabajo en su instancia de n8n y seleccione "Importar desde JSON", pegue la configuración y luego modifique la configuración de credenciales según sea necesario.
¿En qué escenarios es adecuado este flujo de trabajo?
Intermedio - CRM, Chatbot de IA
¿Es de pago?
Este flujo de trabajo es completamente gratuito, puede importarlo y usarlo directamente. Sin embargo, tenga en cuenta que los servicios de terceros utilizados en el flujo de trabajo (como la API de OpenAI) pueden requerir un pago por su cuenta.
Flujos de trabajo relacionados recomendados
Aitor | 1Node
@aitoralonsoHi, I’m Aitor. At 1Node we deploy private AI infrastructure that saves teams above 5 figures annually switching from cloud Enterprise solutions. Guaranteed. We also enjoy playing around with n8n workflows. Need help integrating AI or have questions that need answers and guidance? Feel free to send us a message.
Compartir este flujo de trabajo