Stripe app

Run workflows from Stripe payments and subscriptions.

Table of Contents

Available on all plans.

Admins can install the app. All members can use Stripe in workflows.

The Stripe app connects your Stripe account to Attio workflows. When a payment succeeds or fails, a customer is created, or a subscription starts, changes, or ends in Stripe, a workflow can start in Attio. For example, you can create a task for the account owner when a customer's payment fails, or update a company's plan when its subscription changes.

You can also look up a Stripe customer by ID with the Get customer step, and give a Custom agent block read access to your Stripe billing data while a workflow runs.

Connect Stripe to Attio

The Stripe app uses two connections, and each one powers a different part of the app:

  • Workspace connection: An admin connects one Stripe account for the whole workspace. Every Stripe trigger and the Get customer step use this connection.

  • Member connection: Members only need to connect their own Stripe account if they want to give a Custom agent block access to Stripe. All other Stripe workflow blocks use the workspace connection.

Set up the workspace connection

An admin installs the Stripe app and connects one Stripe account for the whole workspace.

Note: You can't connect a Stripe sandbox account.

  1. Click your workspace name, then click Apps.

  2. Search for and open Stripe.

  3. Click Install.

  4. Under Workspace connection, click Connect.

  5. Sign in to Stripe.

  6. Review the permissions Stripe shows, then approve them.

Once you're connected, the Stripe app creates an event destination named Attio in your Stripe account.

Connect your Stripe account

To use Stripe tools in a Custom agent block, connect your own Stripe account. An admin needs to install the app first.

  • Click your workspace name, then click Apps.

  • Open Stripe.

  • Under Member connections, click Connect next to your name.

  • Sign in to Stripe, then approve the permissions.

Use Stripe in a workflow

The Stripe app adds six triggers and one step to the Attio workflow builder.

Stripe triggers

Each Stripe trigger starts your workflow when a matching event happens in your connected Stripe account.

Stripe triggers have no inputs or filters. To run your workflow only for certain events, such as payments over a set amount, add a condition step, such as Filter, after the trigger.

Note: Stripe amounts are in the smallest unit of the currency, such as cents. For example, a $10.00 payment would show as 1000, and to filter for payments over $500, you would use 50000.

Payment succeeded

Starts a workflow when a Stripe payment succeeds.

Outputs: Stripe event ID, Payment intent ID, Amount received, Currency, Created at, Description, Receipt email, and Stripe customer ID. Stripe customer ID is empty when the payment has no customer.

Payment failed

Starts a workflow when a Stripe payment fails.

Outputs: Stripe event ID, Payment intent ID, Amount, Currency, Payment intent created at, Description, Receipt email, Failure message, Failure code, Decline code, and Stripe customer ID.

Failure message, Failure code, and Decline code come from the last payment error in Stripe. Stripe customer ID is empty when the payment has no customer.

Customer created

Starts a workflow when a customer is created in Stripe.

Outputs: Stripe event ID, Stripe customer ID, Created at, Customer email, Customer name, Customer phone, Description, Currency, Balance, and Delinquent.

Subscription created

Starts a workflow when a subscription is created in Stripe.

Outputs: Stripe event ID, Subscription ID, Stripe customer ID, Status, Currency, Subscription created at, Subscription start date, Description, Latest invoice ID, Subscription items, Cancels at period end, Trial start, and Trial end.

Subscription items is a list of the items on the subscription. Each item includes Price ID, Product ID, Price name, Unit amount, Billing interval, Billing interval count, and Quantity.

Status is the subscription's status in Stripe, such as active or trialing. Price name is the nickname of the price in Stripe.

Subscription updated

Starts a workflow each time a subscription changes in Stripe.

Outputs: The same outputs as Subscription created, plus Previously set to cancel at period end.

Previously set to cancel at period end only has a value when the change added or removed a cancellation at the end of the billing period. To spot a customer who just scheduled a cancellation, compare it with Cancels at period end.

Subscription ended

Starts a workflow when a subscription ends in Stripe. If a customer schedules a cancellation for the end of the billing period, Subscription updated runs right away, and Subscription ended runs when the period ends.

Outputs: Stripe event ID, Subscription ID, Stripe customer ID, Status, Currency, Subscription created at, Subscription start date, Description, Latest invoice ID, Subscription items, Was scheduled to end at period end, Canceled at, Subscription ended at, Cancellation comment, Cancellation feedback, and Cancellation reason.

Subscription items includes the same item details as Subscription created.

Stripe steps

Stripe steps run after the trigger to look up data in Stripe.

Get customer

Looks up a Stripe customer by ID.

Inputs:

  • Customer ID: The Stripe customer ID. Use a variable to bring in the Stripe customer ID from a Stripe trigger.

Outcomes:

  • Customer found: Stripe found the customer. The step returns the customer's details as outputs.

  • Customer not found: Stripe didn't find the customer, or the Customer ID was empty. This outcome has no outputs.

Outputs (Customer found): Stripe customer ID, Customer email, Customer name, and Customer deleted.

If the customer was deleted in Stripe, the step still goes to Customer found. Customer deleted is true, and Customer email and Customer name are empty.

Give a Custom agent access to Stripe

The Custom agent block runs an AI agent in your workflow based on your instructions. Once you've connected your own Stripe account, you can let the agent read live Stripe data while the workflow runs, such as your account balance, customers, products, prices, invoices, subscriptions, coupons, disputes, and payment intents. The agent can also search Stripe resources and the Stripe documentation.

  1. In the workflow builder, open the Custom agent block.

  2. Under Tool access, click Add tools.

  3. Under Apps, expand Stripe.

  4. Select the Stripe tools you want the agent to use.

The agent uses the Stripe connection of the workspace member selected in Run as. If that's someone else, they need to connect their own Stripe account before the agent can use Stripe.

The agent can only read Stripe data. It can't create, change, or delete anything in Stripe.

Frequently asked questions

Check that the workflow is turned on. Stripe triggers only receive events from the Stripe account connected to Attio, so events from accounts connected through Stripe Connect don't start workflows. In the Stripe Dashboard, check that the Attio event destination exists, is turned on, and shows the delivery.

Disconnect Stripe from Attio, then connect it again. This creates a new Attio event destination and saves a new signing secret. Do the same if someone deleted or turned off the Attio destination in Stripe, since Attio doesn't recreate it on its own.

Each time you connect Stripe, Attio creates a new Attio event destination, and disconnecting removes it. If a disconnect couldn't remove the old destination, it stays in your Stripe account. Delete the destination Attio no longer uses in the Stripe Dashboard.

No. Each trigger runs once for each Stripe event. If Stripe sends the same event again within 3 days, the workflow doesn't run again.

No. The Stripe app doesn't sync Stripe data to your records. To save Stripe data in Attio, add an Update record step after a Stripe trigger or the Get customer step, and use variables to bring in the Stripe outputs. To save an amount in dollars rather than cents, add a Formula step before Update record and divide the amount by 100.