{
  "id": "46407397-a7d5-4c6b-92c6-dbe038b1457b",
  "snapshot": "chrome",
  "instruction": "Help me export charts, graph or other images from docx files received in email \"Lecture Document\" in Notes folder and upload these png files to the figures/ folder in Google Drive for later use (use numbers to name them).",
  "source": "https://marketplace.uipath.com/listings/merge-pdfs-from-gmail-email-attachments-and-upload-to-gogle-drive",
  "config": [
    {
      "type": "googledrive",
      "parameters": {
        "settings_file": "evaluation_examples/settings/googledrive/settings.yml",
        "operation": [
          "delete"
        ],
        "args": [
          {
            "query": "title = 'figures' and 'root' in parents and mimeType = 'application/vnd.google-apps.folder'",
            "trash": false
          }
        ]
      }
    },
    {
      "type": "launch",
      "parameters": {
        "command": [
          "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
          "--remote-debugging-port=1337"
        ]
      }
    },
    {
      "type": "launch",
      "parameters": {
        "command": "ncat.exe -k -l 0.0.0.0 9222 --sh-exec \"ncat.exe 127.0.0.1 1337\"",
        "shell": true
      }
    },
    {
      "type": "chrome_open_tabs",
      "parameters": {
        "urls_to_open": [
          "https://news.google.com",
          "https://x.com"
        ]
      }
    },
    {
      "type": "login",
      "parameters": {
        "settings_file": "evaluation_examples/settings/google/settings.json",
        "platform": "googledrive"
      }
    },
    {
      "type": "download",
      "parameters": {
        "files": [
          {
            "url": "https://huggingface.co/datasets/xlangai/windows_osworld_file_cache/resolve/main/multi_app/46407397-a7d5-4c6b-92c6-dbe038b1457b/file_1Yy-ZrkMq4pIQq1Y75bD2WVJXxHMTaMqE.7z",
            "path": "C:\\Users\\User\\thunderbird-profile.7z"
          }
        ]
      }
    },
    {
      "type": "execute",
      "parameters": {
        "command": [
          "C:\\Program Files\\7-Zip\\7z.exe",
          "x",
          "C:\\Users\\User\\thunderbird-profile.7z"
        ]
      }
    },
    {
      "type": "execute",
      "parameters": {
        "command": "rd /s /q C:\\Users\\User\\AppData\\Roaming\\Thunderbird",
        "shell": true
      }
    },
    {
      "type": "execute",
      "parameters": {
        "command": "move C:\\Users\\User\\Thunderbird C:\\Users\\User\\AppData\\Roaming\\Thunderbird",
        "shell": true
      }
    },
    {
      "type": "launch",
      "parameters": {
        "command": [
          "C:\\Program Files\\Mozilla Thunderbird\\thunderbird.exe"
        ]
      }
    }
  ],
  "trajectory": "trajectories/",
  "related_apps": [
    "thunderbird",
    "chrome"
  ],
  "evaluator": {
    "func": "compare_image_list",
    "result": {
      "type": "googledrive_file",
      "settings_file": "evaluation_examples/settings/googledrive/settings.yml",
      "query_list": [
        [
          "title = 'figures' and trashed = false and 'root' in parents and mimeType = 'application/vnd.google-apps.folder'",
          "title = '1.png' and trashed = false"
        ],
        [
          "title = 'figures' and trashed = false and 'root' in parents and mimeType = 'application/vnd.google-apps.folder'",
          "title = '2.png' and trashed = false"
        ],
        [
          "title = 'figures' and trashed = false and 'root' in parents and mimeType = 'application/vnd.google-apps.folder'",
          "title = '3.png' and trashed = false"
        ]
      ],
      "dest": [
        "1.png",
        "2.png",
        "3.png"
      ]
    },
    "expected": {
      "type": "cloud_file",
      "path": [
        "https://huggingface.co/datasets/xlangai/windows_osworld_file_cache/resolve/main/multi_app/46407397-a7d5-4c6b-92c6-dbe038b1457b/1.png",
        "https://huggingface.co/datasets/xlangai/windows_osworld_file_cache/resolve/main/multi_app/46407397-a7d5-4c6b-92c6-dbe038b1457b/2.png",
        "https://huggingface.co/datasets/xlangai/windows_osworld_file_cache/resolve/main/multi_app/46407397-a7d5-4c6b-92c6-dbe038b1457b/3.png"
      ],
      "dest": [
        "1_gold.png",
        "2_gold.png",
        "3_gold.png"
      ],
      "multi": true,
      "gives": [
        0,
        1,
        2
      ]
    }
  }
}