135 lines
4.9 KiB
JSON
135 lines
4.9 KiB
JSON
{
|
|
"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": [
|
|
"google-chrome",
|
|
"--remote-debugging-port=1337"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "launch",
|
|
"parameters": {
|
|
"command": [
|
|
"socat",
|
|
"tcp-listen:9222,fork",
|
|
"tcp:localhost:1337"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"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://drive.usercontent.google.com/download?id=18jdi0OanMtAQenm4ODTivsxTSzdj4HUV&export=download&authuser=0&confirm=t&uuid=e858d3cc-4535-4419-a651-8856ac517d19&at=APZUnTW7g4ygfrkKTPBWCO13twRj:1706611460571",
|
|
"path": "/home/user/thunderbird-profile.tar.gz"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "execute",
|
|
"parameters": {
|
|
"command": [
|
|
"tar",
|
|
"-xzv",
|
|
"--recursive-unlink",
|
|
"-f",
|
|
"/home/user/thunderbird-profile.tar.gz",
|
|
"-C",
|
|
"/home/user/"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "launch",
|
|
"parameters": {
|
|
"command": [
|
|
"/usr/bin/thunderbird"
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"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://drive.usercontent.google.com/download?id=19J5tzWjx9hdo-n0MC3upzAntVMa8WUgk&export=download&authuser=0&confirm=t&uuid=be790579-8db9-4bd2-a757-beb27af386af&at=APZUnTVM2PjNDXhlwFZ6WAFdNVsD:1706497547717",
|
|
"https://drive.usercontent.google.com/download?id=1S04RpR5dk80LylIYGvA4e3sAUBd6wdlQ&export=download&authuser=0&confirm=t&uuid=b302de03-04f7-455c-ab0c-b3cbbeb6929a&at=APZUnTVD8zMZGO1_GWaFUm1cNXul:1706497555463",
|
|
"https://drive.usercontent.google.com/download?id=11NRLh93RTzEd0Cy-cYwMyNJSFG7-vP9c&export=download&authuser=0&confirm=t&uuid=02500115-dea3-481a-af4f-a723d9a62169&at=APZUnTW9-gENlsyfdIPA4PTA0emh:1706497560874"
|
|
],
|
|
"dest": [
|
|
"1_gold.png",
|
|
"2_gold.png",
|
|
"3_gold.png"
|
|
],
|
|
"multi": true,
|
|
"gives": [0, 1, 2]
|
|
}
|
|
}
|
|
} |