{
 "name": "S12 - עוזר AI בטלגרם",
 "flow": [
  {
   "id": 1,
   "module": "telegram:WatchUpdates",
   "version": 1,
   "parameters": {
    "__IMTHOOK__": null
   },
   "mapper": {},
   "metadata": {
    "designer": {
     "x": 0,
     "y": 0,
     "name": "הודעה נכנסת"
    }
   }
  },
  {
   "id": 8,
   "module": "builtin:BasicRouter",
   "version": 1,
   "parameters": {},
   "mapper": null,
   "metadata": {
    "designer": {
     "x": 300,
     "y": 0,
     "name": "קול / טקסט"
    }
   },
   "routes": [
    {
     "flow": [
      {
       "id": 2,
       "module": "telegram:DownloadFile",
       "version": 1,
       "parameters": {
        "__IMTCONN__": null
       },
       "mapper": {
        "fileId": "{{1.message.voice.file_id}}"
       },
       "metadata": {
        "designer": {
         "x": 600,
         "y": -150,
         "name": "הורדת קובץ קולי"
        }
       },
       "filter": {
        "name": "קול",
        "conditions": [
         [
          {
           "a": "{{1.message.voice.file_id}}",
           "o": "exist"
          }
         ]
        ]
       }
      },
      {
       "id": 3,
       "module": "placeholder:Placeholder",
       "version": 1,
       "parameters": {},
       "mapper": {},
       "metadata": {
        "designer": {
         "x": 900,
         "y": -150,
         "name": "⚙️ OpenAI ← Create a Transcription (File = voice.ogg, Language = he)"
        }
       }
      },
      {
       "id": 4,
       "module": "placeholder:Placeholder",
       "version": 1,
       "parameters": {},
       "mapper": {},
       "metadata": {
        "designer": {
         "x": 1200,
         "y": -150,
         "name": "⚙️ Make AI Agent ← Run an agent (Input = התמלול, Conversation ID = chat.id)"
        }
       }
      },
      {
       "id": 5,
       "module": "telegram:SendReplyMessage",
       "version": 1,
       "parameters": {
        "__IMTCONN__": null
       },
       "mapper": {
        "chatId": "{{1.message.chat.id}}",
        "text": "(מפו את פלט הסוכן)",
        "parseMode": "HTML",
        "disableNotification": false,
        "disableWebPagePreview": false
       },
       "metadata": {
        "designer": {
         "x": 1500,
         "y": -150,
         "name": "תשובה"
        }
       }
      }
     ]
    },
    {
     "flow": [
      {
       "id": 6,
       "module": "placeholder:Placeholder",
       "version": 1,
       "parameters": {},
       "mapper": {},
       "metadata": {
        "designer": {
         "x": 900,
         "y": 150,
         "name": "⚙️ Make AI Agent ← Run an agent (Input = {{1.message.text}})"
        }
       },
       "filter": {
        "name": "טקסט",
        "conditions": [
         [
          {
           "a": "{{1.message.text}}",
           "o": "exist"
          },
          {
           "a": "{{1.message.voice.file_id}}",
           "o": "notExist"
          }
         ]
        ]
       }
      },
      {
       "id": 7,
       "module": "telegram:SendReplyMessage",
       "version": 1,
       "parameters": {
        "__IMTCONN__": null
       },
       "mapper": {
        "chatId": "{{1.message.chat.id}}",
        "text": "(מפו את פלט הסוכן)",
        "parseMode": "HTML",
        "disableNotification": false,
        "disableWebPagePreview": false
       },
       "metadata": {
        "designer": {
         "x": 1200,
         "y": 150,
         "name": "תשובה"
        }
       }
      }
     ]
    }
   ]
  }
 ],
 "metadata": {
  "instant": true,
  "version": 1,
  "scenario": {
   "roundtrips": 1,
   "maxErrors": 3,
   "autoCommit": true,
   "autoCommitTriggerLast": true,
   "sequential": false,
   "slots": null,
   "confidential": false,
   "dataloss": false,
   "dlq": true,
   "freshVariables": false
  },
  "designer": {
   "orphans": []
  },
  "zone": "eu1.make.com"
 }
}