Kütüphane / Yapay Zekâ Ajanları ve Asistanlar
Yapay Zekâ Ajanları ve Asistanlar
Google Drive ve OpenAI kullanarak Excel raporlarından stok yenileme miktarlarını hesaplayın
Google Drive klasöründeki yeni XLSX envanter raporlarını izler, her parti için GPT-4.1 mini ile yeniden sipariş miktarlarını ve gerekçelerini hesaplar ve sonuçları dosyaya geri yazar.
Ne yapar
## Calculate stock replenishment from an Excel report with AI ### How it works 1. A Google Drive trigger watches a folder for new XLSX inventory reports. 2. The file is downloaded, parsed and split into batches of 15 rows. 3. For each batch, a Code node builds a compact product list (sales, purchases, warehouse and store stock) and GPT-4.1 mini returns how many units to reorder plus a one-sentence reason. 4. The answers are written back to each row as columns AB (need) and AC (reason). 5. All rows are reassembled in order, converted back to XLSX, the original file is updated and moved to an output folder. ### Setup - [ ] Google Drive: in Google Cloud Console (cloud.google.com) create an OAuth Client ID and Client Secret and add them as a Google Drive credential - [ ] Pick the folder to watch in Trigger_XLSX_Uploaded_to_Drive - [ ] Once Drive is connected, open Download XLSX, Update Sheet and Move To New Folder so they use the credential, and choose your output folder - [ ] OpenAI: add your API key credential to Message a model - [ ] Replace MARKA ADI in the system prompt with your brand name ### Customization The Code nodes and AI prompt are built around one specific spreadsheet's column names, so other files will need changes: - Paste the Code node scripts and the AI prompt into ChatGPT, share your column names or upload your Excel file, and ask it to adapt them - Change batchSize in Code: ChunkToBatches to balance speed and token usage
Adımlar
- Loop Over Items
- Code: ChunkToBatches
- Code: BuildPrompt
- Code: MapBack
- Code: Reassemble
- Extract from XLSX
- Convert to XLSX
- Download XLSX
- Trigger_XLSX_Uploaded_to_Drive
- Move To New Folder
- Update Sheet
- Message a model
Benzer otomasyonlar
Web Kazıma ve AraştırmaWeb Sitelerini Sheets, Excel ve E-postayla CSV'ye Aktarma10 adımVeri Senkronizasyonu ve ETLMicrosoft Excel Sayfasından Veri Al2 adımFinans, Faturalar ve MuhasebeMoney Forward ve Google Drive'dan beş Japon vergi Excel raporu oluştur44 adımE-posta OtomasyonuOutlook E-posta Eklerini Gemini ile Sınıflandırıp Excel'e Yazma39 adım