{
 "flow": [
  {
   "id": 1,
   "mapper": {},
   "module": "google-drive:watchFilesInAFolder",
   "version": 4,
   "metadata": {
    "designer": {
     "x": 0,
     "y": 0
    }
   },
   "parameters": {
    "limit": 1,
    "select": "create",
    "folderId": "root",
    "mimeType": "all",
    "destination": "drive"
   }
  },
  {
   "id": 2,
   "mapper": {
    "file": "{{1.id}}",
    "select": "map",
    "mimeType": "text/plain",
    "formatDrawings": "image/jpeg",
    "formatDocuments": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
    "formatSpreadsheets": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
    "formatPresentations": "application/vnd.openxmlformats-officedocument.presentationml.presentation"
   },
   "module": "google-drive:getAFile",
   "version": 4,
   "metadata": {
    "designer": {
     "x": 300,
     "y": 0
    }
   },
   "parameters": {}
  },
  {
   "id": 3,
   "mapper": {
    "model": "gpt-3.5-turbo",
    "top_p": 1,
    "select": "chat",
    "messages": [
     {
      "role": "user",
      "content": "סכם בעברית בקצרה (עד 4 משפטים) את תוכן הקובץ הבא לצורך תיעוד פנימי: {{2.data}}"
     }
    ],
    "max_tokens": 500,
    "temperature": 1,
    "n_completions": 1,
    "response_format": "text"
   },
   "module": "openai-gpt-3:CreateCompletion",
   "version": 1,
   "metadata": {
    "designer": {
     "x": 600,
     "y": 0
    }
   },
   "parameters": {}
  },
  {
   "id": 4,
   "mapper": {
    "name": "תקציר — {{1.name}}",
    "content": "{{3.result}}",
    "folderId": "/",
    "destination": "drive"
   },
   "module": "google-docs:createADocument",
   "version": 1,
   "metadata": {
    "designer": {
     "x": 900,
     "y": 0
    }
   },
   "parameters": {}
  }
 ],
 "name": "connect-drive-to-chatgpt-to-docs",
 "metadata": {
  "instant": false,
  "version": 1,
  "designer": {
   "orphans": []
  },
  "scenario": {
   "dlq": false,
   "slots": null,
   "dataloss": false,
   "maxErrors": 3,
   "autoCommit": true,
   "roundtrips": 1,
   "sequential": false,
   "confidential": false,
   "freshVariables": false,
   "autoCommitTriggerLast": true
  }
 }
}