111 lines
3.6 KiB
JSON
111 lines
3.6 KiB
JSON
{
|
|
"id": "b52b40a5-ad70-4c53-b5b0-5650a8387052",
|
|
"snapshot": "chrome",
|
|
"instruction": "Could you help me merge all PDF files in the email attachment in Thunderbird into one file and upload it to attachment_full.pdf in Google Drive?",
|
|
"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 = 'attachment_full.pdf' and 'root' in parents",
|
|
"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://www.freerice.com/",
|
|
"https://www.hku.hk/",
|
|
"https://about.meta.com/technologies/facebook-app/"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"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=1EHLRWzBCOsyERkSMUnTF2pnsR0n6ZvtR&export=download&authuser=0&confirm=t&uuid=11b93787-7076-47ba-b04b-b63a4e9aab02&at=APZUnTV_3ASC-R55FmBXgTLcC46e:1706187828620",
|
|
"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_pdfs",
|
|
"result": {
|
|
"type": "googledrive_file",
|
|
"settings_file": "evaluation_examples/settings/googledrive/settings.yml",
|
|
"query": [
|
|
"title = 'attachment_full.pdf' and trashed = false and 'root' in parents"
|
|
],
|
|
"dest": "attachment_full.pdf"
|
|
},
|
|
"expected": {
|
|
"type": "cloud_file",
|
|
"path": "https://drive.usercontent.google.com/download?id=1-FaONI6f5g9XyJAlx8vPFgTP_SEZ-1vV&export=download&authuser=0&confirm=t&uuid=b0ad08b7-5b4e-4372-99fa-0952cd096144&at=APZUnTVrZK9_alT_gchTKE6ZYeod:1706194464805",
|
|
"dest": "attachment_full_gold.pdf"
|
|
}
|
|
}
|
|
} |