- CategoryPayments
- AuthSecret API key
- Scopes16
Overview
Connect Stripe so the AI agent can look up payments, send payment links and invoices, issue refunds and manage subscriptions in the chat. You connect it from Connections > Integrations with a restricted key or your secret key from the Stripe Dashboard. Customers pay on Stripe's own secure pages, payments and invoices update the conversation the moment they are paid, and every action the AI agent takes in Stripe is written in the conversation for your team.
What MessageMind can do with it
- The AI agent finds the customer in Stripe by email, phone or name and answers questions about their payments, invoices and subscriptions with live data.
- It checks any payment and tells the customer its status, amount and date, and the card used, shown as the brand and last four digits.
- It creates a Stripe payment link for your products or a custom amount and sends it on WhatsApp, Instagram, Messenger, SMS, email or your website chat.
- It creates a Stripe Checkout link for a basket of several items, a deposit or a first subscription payment, with the customer's email filled in.
- Customers pay on Stripe's own secure pages with the payment methods you accept in Stripe, such as cards, Apple Pay, Google Pay and Link.
- When a payment lands, the AI agent confirms it in the chat within seconds and sends the receipt link.
- It creates Stripe invoices with your products or custom line items, discounts, the customer's tax ID and a due date. Stripe emails the invoice and the AI agent shares the link to pay it in the chat.
- It sends the hosted invoice page or the PDF of any past invoice, and the receipt of any payment, as soon as a customer asks.
- It issues full or partial refunds by your rules, for example up to an amount you set or within a number of days after payment, and tells the customer when the money will reach their account.
- It manages subscriptions by your rules: it changes the plan or quantity, applies a promotion code, pauses or resumes billing, and cancels at the end of the period or straight away.
- It sends a secure link to your Stripe customer portal, where customers update their card, download invoices and manage their plan themselves.
- It applies your Stripe promotion codes to payment links, Checkout links, invoices and subscriptions when a customer asks for a discount you offer.
- It creates Stripe quotes for larger orders and sends the PDF. When the customer accepts in the chat, the quote becomes an invoice or a subscription in Stripe.
- New customers are added to Stripe with the name, email, phone and address from the conversation, so every payment and invoice belongs to the right person.
- Campaigns can start from Stripe events such as Payment Received, Invoice Paid, Invoice Overdue, Subscription Started and Subscription Cancelled, and their messages can include the amount, the invoice number and the plan.
- Every Stripe action appears in the conversation as a note with the amount, the link and the Stripe ID, so your team sees what was sent, paid and refunded.
Requirements
- A Stripe account that accepts live payments.
- A Stripe user with the Administrator or Developer role, to create the API key.
- Your products and prices in Stripe, which the AI agent quotes and adds to payment links, invoices and subscriptions.
How to connect
- In Stripe, open Developers > API keys and copy your secret key, or create a restricted key with the permissions listed under Authentication and permissions.
- In MessageMind, open Connections > Integrations, click Connect on the Stripe row, paste the key into Secret API Key and click Connect.
- MessageMind confirms the key with Stripe in a few seconds, and the Stripe row shows a tick and a Disconnect button.
- MessageMind adds its webhook endpoint to your Stripe account, so payments, invoices, refunds and subscription changes reach your conversations as they happen.
- Click the gear button on the Stripe row to set your payment rules (see Configuration).
Authentication and permissions
- Mechanism
- A Stripe API key that you paste into MessageMind. A restricted key lets you choose exactly what MessageMind can do in your Stripe account, and your standard secret key includes every permission.
- Credentials
- One key, pasted into Secret API Key when you connect. Restricted keys start with rk_live_ and secret keys with sk_live_, and both come from Developers > API keys in your Stripe Dashboard. Once saved, the key stays hidden in MessageMind.
Required scopes
Customers: WritePayment Intents: ReadPayment Methods: ReadCharges and Refunds: WriteCheckout Sessions: WritePayment Links: WriteProducts: WritePrices: WriteCoupons: ReadPromotion Codes: ReadInvoices: WriteCredit Notes: WriteQuotes: WriteSubscriptions: WriteCustomer Portal: WriteWebhook Endpoints: Write
Available data and actions
Reads
- Customers, found by email, phone or name: name, email, phone, address, tax IDs and the saved card's brand, last four digits and expiry date.
- Payments: amount, currency, status, date, payment method, receipt link and any refunds.
- Invoices: number, status, amount due and paid, due date, line items, the hosted invoice page and the PDF.
- Subscriptions: plan, price, quantity, status, trial end, next billing date and the amount of the next invoice.
- Products, prices and promotion codes, including recurring prices and the currencies set on each price.
- Payment links, Checkout Sessions and quotes created in a conversation, with their payment status.
- Events from your Stripe account, such as a payment received, an invoice paid or overdue, a refund issued or a subscription change, which reach MessageMind as they happen.
Writes
- Customers, created or updated with the name, email, phone, address and tax ID from the conversation.
- Payment links and Checkout Sessions for your prices or a custom amount, with quantities, promotion codes and the customer's email filled in.
- Invoices with line items, discounts and a due date, finalized and sent to the customer by Stripe.
- Refunds, full or partial, on any payment, with the reason recorded in Stripe, and credit notes on paid invoices.
- Subscriptions: new subscriptions, plan and quantity changes, promotion codes, pauses, resumptions and cancellations.
- Customer portal sessions, the secure link a customer opens to manage their card, invoices and plan.
- Quotes, finalized and sent as a PDF, and accepted when the customer agrees in the chat.
- Metadata on each payment, invoice and subscription that names the MessageMind conversation it came from, so your team can trace it back to the chat.
- A webhook endpoint named MessageMind under Developers > Webhooks, which tells MessageMind about payments, invoices, refunds and subscription changes.
AI agent use cases
- A customer on WhatsApp asks to pay the rest of their booking. The AI agent finds their open invoice in Stripe and sends the link to pay it.
- A visitor on your website chat wants two workshop tickets. The AI agent creates a Checkout link for both and confirms in the chat once the payment lands.
- Someone on Instagram asks for a refund within your 14-day window. The AI agent checks the payment, issues the refund and tells them when it will reach their card.
- A member asks to switch to the annual plan. The AI agent changes the subscription, explains the prorated amount and confirms the next billing date.
- A client needs last quarter's invoices for their accountant. The AI agent sends the PDFs in the chat in seconds.
- A renewal invoice is overdue, so a campaign sends the customer a link to the customer portal to update their card.
- A company asks for a quote for 40 seats. The AI agent creates a Stripe quote at your volume price and sends the PDF, and the quote becomes an invoice when they accept.
Configuration
- Click the gear button on the Stripe row in Connections > Integrations to open Stripe Settings. Make your changes and click Save at the top.
- Under Instructions for your AI, write the rules the AI agent follows for payments, for example which products it offers, when it sends an invoice instead of a payment link and how it explains a refund.
- Payment links and Checkout: choose the products and prices the AI agent offers, allow custom amounts, set how long a Checkout link stays open and add the page customers see after paying.
- Invoices: set the number of days customers have to pay and a memo the AI agent adds to every invoice.
- Refund rules: set the amount the AI agent refunds up to, the number of days after payment it refunds within and the reasons it records in Stripe.
- Subscription rules: choose the plans customers can switch to, whether changes are prorated, and whether a cancellation takes effect at the end of the period or straight away.
- Promotion codes: pick the Stripe promotion codes the AI agent can apply when a customer asks for a discount.
- Customer portal: the billing link opens the portal you design in Stripe under Settings > Billing > Customer portal, with your branding and the actions you allow.
- Tax: turn on Collect tax automatically so Stripe Tax adds the right tax to every link and invoice the AI agent creates.
- Notifications: choose the team members who hear about each payment, refund and subscription change made in a conversation.
Example workflows
The AI agent takes a payment in the chat
- A customer on WhatsApp asks to book a 90-minute session and pay now.
- The AI agent finds them in Stripe by their phone number, or adds them as a new customer with the name and email they give.
- It creates a Checkout link for the session price, with their email filled in, and sends it in the chat.
- The customer pays on Stripe's secure checkout page with a card, Apple Pay, Google Pay or Link.
- Seconds later the AI agent confirms the payment in the chat, and a note in the conversation shows the amount and the Stripe payment ID.
Send an invoice from the conversation
- A business customer asks for an invoice for 12 hours of consulting.
- The AI agent asks for the company name, billing email and VAT number, and saves them on the customer in Stripe.
- It creates the invoice at your hourly price, sets the due date from your settings and finalizes it.
- Stripe emails the invoice, and the AI agent shares the link to pay it in the chat.
- When the invoice is paid, the conversation updates and your Invoice Paid campaign sends a thank-you.
Refund a payment by your rules
- A customer on Instagram asks for a refund for yesterday's class.
- The AI agent finds the payment in Stripe and checks it against your refund rules.
- It issues the refund and tells the customer the amount and that their bank usually shows it within 5 to 10 business days.
- A note in the conversation shows the refund amount and its Stripe ID for your team.
Move a member to another plan
- A member asks to switch from the monthly plan to the annual plan.
- The AI agent reads their subscription and the next invoice, then explains the new price and the prorated amount.
- The member agrees, and the AI agent switches the subscription in Stripe.
- Stripe sends the updated invoice, and the AI agent confirms the next billing date in the chat.
Send a card update link when a renewal is overdue
- Open Workspace, click Campaigns in the left rail, click Create campaign and give it a name.
- Click Add a Trigger, pick Invoice Overdue under Stripe and click Save trigger.
- Add an Action step, pick Send Email or Send SMS, and insert the Amount Due and Customer Portal Link variables in the message.
- Switch the campaign from Draft to Published and click Save.
Disconnect and reconnect
- Open Connections > Integrations and click Disconnect on the Stripe row.
- Customers, payments, invoices, refunds and subscriptions created through MessageMind stay in your Stripe account.
- MessageMind removes its webhook endpoint from your Stripe account.
- To end access on the Stripe side as well, open Developers > API keys in Stripe, open the menu on the key you made for MessageMind and click Expire key.
- To reconnect, click Connect on the Stripe row and paste a key with the permissions listed above.