diff --git a/ai-connector/amazon/amazon-us.json b/ai-connector/amazon/amazon-us.json new file mode 100644 index 0000000..299e7de --- /dev/null +++ b/ai-connector/amazon/amazon-us.json @@ -0,0 +1,44 @@ +{ + "meta": { + "schemaVersion": "1.0.0" + }, + "data": { + "type": "blueprint", + "attributes": { + "getDocuments": [ + { + "action": "goToUrl", + "url": "https://www.amazon.com/gp/css/order-history" + }, + { + "action": "forEach", + "id": "invoice-links-loop", + "on": { + "querySelector": "a[href*='/invoice']" + }, + "steps": [ + { + "action": "click" + }, + { + "action": "waitForNetworkIdle" + }, + { + "action": "findPdfs", + "outputVariable": "new_pdfs" + }, + { + "action": "mergeVariables", + "inputVariable": "new_pdfs", + "outputVariable": "all_pdfs" + } + ] + }, + { + "action": "downloadPdfsFromUrls", + "inputVariable": "all_pdfs" + } + ] + } + } +}