{
  "openruna_format": "flow-graph-v1",
  "title": "1307_Code_Converttofile_Send_Webhook",
  "slug": "1307-code-converttofile-send-webhook",
  "source_filename": "1307_Code_Converttofile_Send_Webhook.json",
  "nodes": [
    {
      "id": "Gmail Trigger",
      "name": "Gmail Trigger",
      "integration": "gmail",
      "kind": "trigger"
    },
    {
      "id": "Microsoft Outlook Trigger",
      "name": "Microsoft Outlook Trigger",
      "integration": "microsoftOutlook",
      "kind": "trigger"
    },
    {
      "id": "Screenshot HTML",
      "name": "Screenshot HTML",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Retrieve Screenshot",
      "name": "Retrieve Screenshot",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Set Outlook Variables",
      "name": "Set Outlook Variables",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Set Gmail Variables",
      "name": "Set Gmail Variables",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Retrieve Headers of Email",
      "name": "Retrieve Headers of Email",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Format Headers",
      "name": "Format Headers",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "Analyze Email with ChatGPT",
      "name": "Analyze Email with ChatGPT",
      "integration": "@n8n/n8n-nodes-langchain.openAi",
      "kind": "action"
    },
    {
      "id": "Create Potentially Malicious Ticket",
      "name": "Create Potentially Malicious Ticket",
      "integration": "jira",
      "kind": "action"
    },
    {
      "id": "Create Potentially Benign Ticket",
      "name": "Create Potentially Benign Ticket",
      "integration": "jira",
      "kind": "action"
    },
    {
      "id": "Rename Screenshot",
      "name": "Rename Screenshot",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "Set Jira ID",
      "name": "Set Jira ID",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Upload Screenshot of Email to Jira",
      "name": "Upload Screenshot of Email to Jira",
      "integration": "jira",
      "kind": "action"
    },
    {
      "id": "Upload Email Body to Jira",
      "name": "Upload Email Body to Jira",
      "integration": "jira",
      "kind": "action"
    },
    {
      "id": "Convert Email Body to File",
      "name": "Convert Email Body to File",
      "integration": "convertToFile",
      "kind": "action"
    },
    {
      "id": "Set Email Variables",
      "name": "Set Email Variables",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Rename Email Body Screenshot",
      "name": "Rename Email Body Screenshot",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "Check if Malicious",
      "name": "Check if Malicious",
      "integration": "if",
      "kind": "logic"
    }
  ],
  "edges": [
    {
      "from": "Set Jira ID",
      "to": "Rename Screenshot"
    },
    {
      "from": "Gmail Trigger",
      "to": "Set Gmail Variables"
    },
    {
      "from": "Format Headers",
      "to": "Set Outlook Variables"
    },
    {
      "from": "Screenshot HTML",
      "to": "Retrieve Screenshot"
    },
    {
      "from": "Rename Screenshot",
      "to": "Upload Screenshot of Email to Jira"
    },
    {
      "from": "Check if Malicious",
      "to": "Create Potentially Malicious Ticket"
    },
    {
      "from": "Check if Malicious",
      "to": "Create Potentially Benign Ticket"
    },
    {
      "from": "Retrieve Screenshot",
      "to": "Analyze Email with ChatGPT"
    },
    {
      "from": "Set Email Variables",
      "to": "Convert Email Body to File"
    },
    {
      "from": "Set Gmail Variables",
      "to": "Set Email Variables"
    },
    {
      "from": "Set Outlook Variables",
      "to": "Set Email Variables"
    },
    {
      "from": "Microsoft Outlook Trigger",
      "to": "Retrieve Headers of Email"
    },
    {
      "from": "Retrieve Headers of Email",
      "to": "Format Headers"
    },
    {
      "from": "Analyze Email with ChatGPT",
      "to": "Check if Malicious"
    },
    {
      "from": "Convert Email Body to File",
      "to": "Screenshot HTML"
    },
    {
      "from": "Rename Email Body Screenshot",
      "to": "Upload Email Body to Jira"
    },
    {
      "from": "Create Potentially Benign Ticket",
      "to": "Set Jira ID"
    },
    {
      "from": "Upload Screenshot of Email to Jira",
      "to": "Rename Email Body Screenshot"
    },
    {
      "from": "Create Potentially Malicious Ticket",
      "to": "Set Jira ID"
    }
  ]
}