Back to all tools
Needs API key

Stripe Payment Links

Create Payment Links in the Stripe Dashboard first. This tool lists active links (GET) so the agent can share URLs. Creating links via API needs form-encoding, which custom tools do not support.

What this tool does

Taking a deposit in the chat removes a step that often loses customers. This tool lets your agent list the active Payment Links in your Stripe account and send the right one, for example a consultation deposit or a package payment. You create the links in the Stripe Dashboard first. The tool reads them with a restricted API key and does not create new ones, because Stripe expects form-encoded requests for that. Stripe handles the checkout, so card details never pass through the chat.

Example conversation

Customer

I would like to secure the Saturday slot. Do you need a deposit?

Tool callget_stripe_payment_links

limit: 10, active: true

AI agent

Yes, we take a $50 deposit, which comes off your final bill. Here is the secure payment link.

Customer

Paid!

AI agent

Thank you! Once Stripe confirms the payment, your Saturday 11 AM slot is reserved. We will send a reminder the day before.

Example only. Tool calls are shown so you can see when the agent uses this template. Your agent’s wording depends on your prompt and business information.

Who uses it

  • Clinics and med spas taking consultation deposits.
  • Coaches and tutors selling session packages in the chat.
  • Event and travel businesses collecting booking deposits.

Setup

  1. In Stripe, create the Payment Links you want customers to use (Products → Payment links).
  2. Create a restricted Stripe secret key with permission to read Payment Links (or use a test key while experimenting).
  3. Add the custom tool and replace sk_live_YOUR_SECRET_KEY in the Authorization header with your secret key (use sk_test_… in test mode).
  4. In your prompt, tell the agent to call get_stripe_payment_links when the customer is ready to pay, then share the matching url from the response.

Copy into custom tool form

Copy each value into the matching field when you add a custom tool on the create or edit agent page. Replace any YOUR_… placeholders with your real credentials.

Tool name

get_stripe_payment_links

Description

Fetch active Stripe Payment Links so you can share the correct checkout URL with the customer. Create Payment Links in the Stripe Dashboard first, then use this tool to list them.

Endpoint URL

Paste into Endpoint URL (https:// is added automatically).

api.stripe.com/v1/payment_links

HTTP method

GET

Tool inputs (all)

1. limit (integer) Max number of payment links to return (1–100). Use 10 unless the customer needs more options.

Tool input: limit

Input name

limit

Input type

integer

Input description

Max number of payment links to return (1–100). Use 10 unless the customer needs more options.

Reference value

Use this as the request query or body value and choose “Tool input” in the form.

{{limit}}

Request query (all)

active: true limit: {{limit}}

Field name

active

Field value

true

Field name

limit

Field value

{{limit}}

Headers (all)

Header values are encrypted when stored. Replace placeholders with your real secrets.

Authorization: Bearer sk_live_YOUR_SECRET_KEY

Header name

Authorization

Header value

Bearer sk_live_YOUR_SECRET_KEY