AI Builders
How to integrate Autumn using an AI application builder
Using Autumn, you can reliably integrate Stripe with your AI application builder like Lovable, Bolt.new, Replit or v0 in just a couple prompts—no webhooks or server management required.
1. Create your products
Create your free Autumn account at useautumn.com. Then navigate to the Connect Stripe page and paste in your Test and Live Secret API keys.
Your Test and Live keys can be found in the Stripe Dashboard, under Developers > API keys.
Create the Pro plan in the Products tab.
Create the Product
Create the Product
Click on the ”+ Product” button and name the product “Pro”.
Create the Messages Feature
Create the Messages Feature
Click the ”+ Feature” button, and in the feature list, select “Create new feature”.
Add the Product Items
Add the Product Items
Back on the products page, create a new product and name it “Pro”. Click ”+ Feature” and add a limit of 10 messages per month.
Then click ”+ Price” and a price of $20 per month.
2. Setup
Use this prompt to setup Autumn. Make sure you have auth already handled first.
3. Integrate your pricing model
Now you can describe to the AI the pricing plans you defined in Autumn (eg free tier has 3 messages, pro tier is 5 usd per month etc). Make sure to provide it with the productIds and featureIds (if you’re using usage pricing or limits). Then, paste in the prompt below.
I have a free and a pro tier. My free tier has 3 messages and pro has 100 messages for $10 per month. The product IDs are “free” and “pro”, and the feature ID is “messages”.
4. Handle failed payments and billing portal
Lastly, handle what should happen when a user’s payment fails and redirect them to the billing portal to manage or cancel their subscription.