Summary
This tutorial will guide you through building a car modification AI app using Next.js, Shadcn UI, and OpenAI. View the final product here by installing the app to your whop.1. Set up your Next.js project
Clone the Car Modification AI repository:2. Get your Whop API credentials
Create a Whop App
- Go to https://whop.com/dashboard
- Navigate to Developer
- Click the Create App button
- Give your app a name like “Car Modification AI”
- Click Create
Get your API Key, Agent User ID, and App ID
After creating your app:
- Copy the App API Key - you’ll need this for
WHOP_API_KEY - Copy the Agent User ID - you’ll need this for
WHOP_AGENT_USER_ID - Copy the App ID - you’ll need this for
WHOP_APP_ID
The Agent User ID is what allows your app’s agent to send post the results in forum.
3. Get OpenAI API Key
Create OpenAI Account
- Go to platform.openai.com
- Click Sign In or Sign Up
- Complete the registration process
5. Configure Environment Variables
7. Install Whop Dev Proxy
For Whop integration to work in development, you need to install the Whop dev proxy globally:The Whop dev proxy is required for the iframe integration to work properly
during development.
8. Run the Application
Lets start the Web Server with Whop Proxy. Run this command to start both the Whop proxy and Next.js development server:9. Configure App Settings in Whop
Important: You must configure these settings BEFORE installing the app to your community.10. Accessing the app (locally)
11. Deploy to Vercel
Now let’s deploy your car modification AI app to production so users can access it from anywhere. Push your code to GitHub First, commit all your changes and push to GitHub:Create a new project on Vercel
Go to vercel.com and click “New Project”
Import your GitHub repository
Connect your GitHub account and import the repository containing your car
modification app
Open Whop Developer Settings
Go to Whop dashboard and navigate to your app’s settings in the developer panel
Update Base URL
In the “App Settings” section, change the Base URL from
http://localhost:3000 to your Vercel URL: https://your-app.vercel.app12. Install to Your Whop Community
Troubleshooting
AI responses not working
AI responses not working
- Verify your OpenAI API key is correct
- Verify you have balance in the OpenAI Developer account
Expected car modification not happening
Expected car modification not happening
- Ensure you use a high quality image with a car in it 2. Use a clear prompt, such as “add a spoiler to this car”
Can't access in Localhost
Can't access in Localhost
- Make sure you’re using the Whop iframe method
- Ensure you’ve set the environment to localhost with correct port
- Check that your Whop App API key is correct, and all other environment variables as well
Need Help?
- Join the Developer Whop
- View the source code of this app here
- DM @AbdullahZHD on Whop

