Bibliothek / KI-Agenten & Assistenten
KI-Agenten & Assistenten
Lagernachbestellungen aus Excel-Berichten mit Google Drive und OpenAI berechnen
Überwacht einen Google-Drive-Ordner auf neue XLSX-Inventarberichte, berechnet mit GPT-4.1 mini pro Charge die Nachbestellmengen und Begründungen und schreibt die Ergebnisse zurück in die Datei.
Was sie bewirkt
## 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
Die Schritte
- 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
Ähnliche Automatisierungen
Web Scraping & RechercheWebsites scrapen nach Sheets, Excel und per E-Mail als CSV10 SchritteDatensynchronisierung & ETLDaten aus einem Microsoft-Excel-Blatt abrufen2 SchritteFinanzen, Rechnungen & BuchhaltungErstellung von fünf japanischen Steuerberichten in Excel aus Money Forward und Google Drive44 SchritteE-Mail-AutomatisierungOutlook-E-Mail-Anhänge mit Gemini klassifizieren und in Excel schreiben39 Schritte