I need to build an AI-powered catalog generator inside my Bubble.io application.
The goal is to allow users to create complete product catalogs in seconds using Artificial Intelligence.
Workflow
The user opens a popup and enters products in the following format:
iPhone 15-65000
iPhone 14-33000
iPhone XR-15000
or
iPhone 15-65000, iPhone 14-33000, iPhone XR-15000
Each line (or comma-separated value) contains:
- Product name
- Price
The system should automatically detect each product.
Image Source Options
The user must choose one of two modes before generating.
Option 1 – AI Generated Images
Generate a completely unique product image using AI.
Requirements:
- High-quality realistic image
- White background
- Similar to an e-commerce product photo
- One image for each product
Option 2 – Real Product Photos
Instead of AI generation, automatically search for a real product photo using Google Images or another image search API.
Requirements:
- Find the best matching product image
- Download/store the image
- Use it as the product image
AI Product Generation
For every detected product the AI should automatically generate:
- Product title
- Short description
- Long description
- Category
- SEO keywords
- Product tags
- Image (according to selected mode)
Automatic Category Detection
The AI should determine the correct category automatically.
Example:
iPhone 15
↓
Category:
Phones
Samsung TV
↓
Category:
Televisions
Nike Air Force
↓
Category:
Shoes
Database Creation
After generation the system should automatically create Product records inside Bubble’s database.
Each Product should contain:
- Name
- Price
- Description
- Category
- Image
- Tags
- SEO Keywords
- Status
- Created Date
No manual work should be required.
Progress Indicator
While generating, show progress such as:
Creating product 1 of 25...
Generating image...
Creating description...
Saving product...
After all products are completed:
Catalog created successfully.
Token System
Each generated product consumes one token.
Example:
20 products
↓
20 tokens
If the user does not have enough tokens, display:
You don’t have enough tokens to create these products. Please recharge your token balance.
Performance
The system should support generating:
- 10 products
- 50 products
- 100 products
- 500+ products
without blocking the UI.
Use backend workflows or scheduled API workflows in Bubble.