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
- In Stripe, create the Payment Links you want customers to use (Products → Payment links).
- Create a restricted Stripe secret key with permission to read Payment Links (or use a test key while experimenting).
- 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).
- 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
Description
Endpoint URL
Paste into Endpoint URL (https:// is added automatically).
HTTP method
Tool inputs (all)
Tool input: limit
Input name
Input type
Input description
Reference value
Use this as the request query or body value and choose “Tool input” in the form.
Request query (all)
Field name
Field value
Field name
Field value
Headers (all)
Header values are encrypted when stored. Replace placeholders with your real secrets.
Header name
Header value
