Skip to main content

Manage Stripe data using natural language with Kimi K2 via OpenRouter

Workflow preview

Workflow preview
100%
Manage Stripe data using natural language with Kimi K2 via OpenRouter preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Elevate your Stripe workflows with an AI agent that intelligently, securely, and interactively handles essential Stripe data operations. Leveraging the Kimi K2 model via OpenRouter, this n8n templa...

Best for

  • CRM automation workflows
  • AI Chatbot automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatopenrouter, @n8n/n8n-nodes-langchain.chattrigger, @n8n/n8n-nodes-langchain.memorybufferwindow, n8n-nodes-base.stripetool, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Aitor | 1Node.

Original n8n.io source

1.1 Workflow description

Title
Manage Stripe data using natural language with Kimi K2 via OpenRouter
Workflow name
Manage Stripe data using natural language with Kimi K2 via OpenRouter

Elevate your Stripe workflows with an AI agent that intelligently, securely, and interactively handles essential Stripe data operations. Leveraging the Kimi K2 model via OpenRouter, this n8n template enables safe data retrieval. From fetching summarized financial insights to managing customer discounts, while strictly enforcing privacy, concise outputs, and operational boundaries.


đź§ľ Requirements

Stripe:

  • Active Stripe account
  • API key with read and write access.

n8n:

  • Deployed n8n instance (cloud or self-hosted)

OpenRouter:

  • Active OpenRouter account with credit
  • API key from OpenRouter

đź”— Useful Links


🚦 Workflow Breakdown

  1. Trigger: User Request

    • Workflow initiates when an authenticated user sends a message in the chat trigger.
  2. AI Agent (Kimi K2 OpenRouter): Intent Analysis

    • Determines whether the user wants to:
      • List customers, charges, or coupons
      • Retrieve the account’s balance
      • Create a new coupon in Stripe
    • Filters unsupported or unclear requests, explaining permissions or terminology as needed.
  3. Stripe Data Retrieval

    • For data queries:
      • Only returns summarized, masked lists (e.g., last 10 transactions/customers)
      • Sensitive details, such as card numbers, are automatically masked or truncated
      • Never exposes or logs confidential information
  4. Coupon Creation

    • When a coupon creation is requested:
      • AI agent collects coupon parameters (discount, expiration, restrictions)
      • Clearly summarizes the action and requires explicit user confirmation before proceeding
      • Creates the coupon upon confirmation and replies with only the public-safe coupon details

🛡️ Privacy & Security

  • No data storage: All responses are ephemeral; sensitive Stripe data is never retained.
  • Strict minimization: Outputs are tightly scoped; only partial identifiers are shown and only when necessary.
  • Retention rules enforced: No logs, exports, or secondary storage of Stripe data.
  • Confirmation required: Actions modifying Stripe (like coupon creation) always require the user to approve before execution.
  • Compliance-ready: Aligned with Stripe and general data protection standards.

⏱️ Setup Steps

  • Setup time: 10–15 minutes
  • Add Stripe API credentials in n8n
  • Add the OpenRouter API credentials in n8n and select your desired AI model to run the agent. In our template we selected Kimi K2 from Moonshot AI.

âś… Summary

This workflow template connects a privacy-prioritized AI agent (Kimi K2 via OpenRouter) with your Stripe account to enable:

  • Fast, summarized access to customer, transaction, coupon, and balance data
  • Secure, confirmed creation of discounts/coupons
  • Complete adherence to authorization, privacy, and operational best practices

🙋‍♂️ Need Help?

Feel free to contact us at 1 Node Get instant access to a library of free resources we created.

1.2 Logical Blocks

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.

2. Block-by-Block Analysis

Block 1 - AI Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2

Block 2 - OpenRouter Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenRouter - lmChatOpenRouter
Config choices
Version 1

Block 3 - When chat message received

Type / Role
@n8n/n8n-nodes-langchain.chatTrigger - chatTrigger
Config choices
Version 1.1

Block 4 - Simple Memory

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 5 - Create a coupon in Stripe

Type / Role
n8n-nodes-base.stripeTool - stripeTool
Config choices
Version 1

Block 6 - Get a balance in Stripe

Type / Role
n8n-nodes-base.stripeTool - stripeTool
Config choices
Version 1

Block 7 - Get many charges in Stripe

Type / Role
n8n-nodes-base.stripeTool - stripeTool
Config choices
Version 1

Block 8 - Get many coupons in Stripe

Type / Role
n8n-nodes-base.stripeTool - stripeTool
Config choices
Version 1

Block 9 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 10 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Get many customers in Stripe

Type / Role
n8n-nodes-base.stripeTool - stripeTool
Config choices
Version 1

Block 12 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Manage Stripe data using natural language with Kimi K2 via OpenRouter
Complexity intermediate
Nodes 12
Categories CRM, AI Chatbot
Author Aitor | 1Node
Published 21 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6221/6221.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

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.

Frequently asked questions

What does Manage Stripe data using natural language with Kimi K2 via OpenRouter do?

Elevate your Stripe workflows with an AI agent that intelligently, securely, and interactively handles essential Stripe data operations. Leveraging the Kimi K2 model via OpenRouter, this n8n templa...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

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 CRM, AI Chatbot use case.