Shop modülündeki ürünler için AI ile tamamen otomatik bilingual (TR + EN) içerik üretimi:
Akson Mili Kapağı - 414 ürünü için üretilen içerik:
User Input (Ürün Başlık + Kategori)
↓
OpenAI GPT-4 (Content Generation)
↓
Content Parsing (Title, Specs, Body, FAQ, Tags)
↓
Leonardo AI (2 Görsel Üretimi - Async)
↓
Image Embedding (Body içine otomatik)
↓
SEO Tag Injection (alt, title, loading)
↓
Database Save (ShopProduct model)
↓
Cache Clear + OPcache Reset
| Bileşen | Teknoloji | Açıklama |
|---|---|---|
| AI Content Generation | OpenAI GPT-4 | Bilingual content üretimi (TR + EN) |
| AI Image Generation | Leonardo AI (Lucid Origin) | 2 görsel: montaj + teknik çizim |
| API Prompt Enhancement | AIPromptEnhancer Service | Görsel promptları optimize eder |
| DB Storage | ShopProduct Model | Tenant-aware database |
| DB Media Storage | MediaLibraryItem Model | AI görselleri metadata ile saklar |
| UI Admin Interface | Livewire Component | Tek buton: "Generate AI Content" |
Dosya: Modules/Shop/app/Services/ShopProductAIContentService.php
Sorumluluk: Ürün bilgilerinden GPT-4 ile bilingual content üretimi
generateFullContent($title, $category, $options) - Ana metod
// Örnek prompt
"Generate bilingual product content for: {$title}
Category: {$category}
Sector: Industrial Equipment (Forklift Parts)
Pattern: Simple paragraphs with strong tags
Output: JSON with tr/en keys
Required fields: title, short_description, body, primary_specs(4), faq_data(5), tags(30)"
Dosya: Modules/Shop/app/Services/ShopProductImageGenerator.php
Sorumluluk: Leonardo AI ile 2 görsel üret ve body'ye embed et
// Örnek prompt generation
$prompt1 = "Close-up photo of {$productTitle} being installed,
industrial environment, technician hands, professional";
$prompt2 = "Technical blueprint of {$productTitle},
engineering drawing, dark blue background, CAD style";
Dosya: Modules/Shop/app/Http/Livewire/Admin/ProductAIContentGenerator.php
UI: Admin > Shop > Products > Manage > "Generate AI Content" button
Dosya: Modules/Shop/app/Jobs/GenerateProductImagesJob.php
Neden: Leonardo AI 20-30 saniye sürebilir, kullanıcı beklemez
Dosya: Mevcut AI credit system kullan
Akson Mili Kapağı örneğindeki pattern:
[
{"label": "Malzeme", "value": "Döküm Çelik"},
{"label": "Uyumluluk", "value": "Forklift Arka Dingil"},
{"label": "Seri", "value": "414"},
{"label": "Kaplama", "value": "Toz Boya Kaplama"}
]
// NOT: icon field KULLANMA (template parse hatası verir)
[
{
"question": {
"tr": "414 serisi hangi forklift modellerine uyumludur?",
"en": "Which forklift models is the 414 series compatible with?"
},
"answer": {
"tr": "1.5-5 ton kapasiteli standart forklift modellerinde...",
"en": "Used in standard forklift models with 1.5-5 ton capacity..."
}
}
// ... 4 soru daha
]
<a href='{$imageUrl}' class='glightbox block rounded-xl overflow-hidden border-2 border-gray-200 dark:border-gray-700 hover:border-blue-500 transition-all'>
<img
src='{$imageUrl}'
alt='Forklift Akson Mili Kapağı 414 Serisi Montajı - Arka Dingil Yedek Parça'
title='Akson kapağı montaj görseli - OEM kalite forklift yedek parça'
class='w-full aspect-square rounded-xl object-cover'
loading='lazy'
>
</a>
Sistem multi-tenant! Her tenant farklı sektör:
Her dosya işleminden sonra:
sudo chown tuufi.com_:psaserv /path/to/file
sudo chmod 644 /path/to/file
Content update sonrası mutlaka:
php artisan view:clear
php artisan responsecache:clear
curl -s -k https://ixtif.com/opcache-reset.php
Primary specs ve FAQ data'da icon field KULLANMA!
Blade template parse hatası verir. Sadece label/value ve question/answer kullan.
| Sıra | Dosya/Bileşen | Süre | Bağımlılık |
|---|---|---|---|
| 1 | ShopProductAIContentService.php | 2-3 saat | OpenAI API, AIPromptEnhancer |
| 2 | ShopProductImageGenerator.php | 2 saat | LeonardoAIService, MediaLibraryItem |
| 3 | GenerateProductImagesJob.php | 1 saat | Queue, ImageGenerator |
| 4 | ProductAIContentGenerator Livewire | 3 saat | ContentService, ImageGenerator |
| 5 | Test + Debug | 2 saat | Tüm bileşenler |
⏱️ Toplam Tahmini Süre: 10-12 saat
| Dosya | Açıklama |
|---|---|
/var/www/vhosts/tuufi.com/httpdocs/public/readme/2025/11/27/product-331-fixed/ai-content-v5.json |
Akson Mili Kapağı content örneği (final) |
Modules/MediaManagement/app/Http/Livewire/Admin/AiImageGeneratorComponent.php |
Leonardo AI entegrasyonu örneği |
app/Services/Media/LeonardoAIService.php |
Leonardo API service |
Modules/AI/app/Services/AIPromptEnhancer.php |
Prompt enhancement (GPT-4) |
Modules/Shop/resources/views/themes/ixtif/show.blade.php |
Product detail template (GLightbox mevcut) |