๐Ÿค Manage Stripe data using natural language with Kimi K2 via OpenRouter

โšก 606 views ยท ๐Ÿค CRM & Sales Operations

Description

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:

n8n:

OpenRouter:



๐Ÿšฆ 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


โฑ๏ธ Setup Steps


โœ… Summary

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


๐Ÿ™‹โ€โ™‚๏ธ Need Help?

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

๐Ÿ”— Nodes Used

AI Agent, Simple Memory, Chat Trigger, OpenRouter Chat Model

๐Ÿ“ฅ Import

Download workflow.json and import into n8n: Workflow menu โ†’ Import from File

๐Ÿ“– Importing guide ยท ๐Ÿ”‘ Credential setup