diff --git a/ai-connector/excalidraw/excalidraw.json b/ai-connector/excalidraw/excalidraw.json index 0bf0f3e..1d0ebc2 100644 --- a/ai-connector/excalidraw/excalidraw.json +++ b/ai-connector/excalidraw/excalidraw.json @@ -1,5 +1,9 @@ { + "meta": { + "schemaVersion": "1.0.0" + }, "data": { + "type": "blueprint", "attributes": { "getDocuments": [ { @@ -9,12 +13,26 @@ { "action": "waitForNetworkIdle" }, + { + "action": "wait", + "seconds": 2 + }, { "action": "forEach", - "id": "invoice-links-loop", + "id": "stripe-invoices", "on": { - "querySelector": ".ml-auto a[href]" + "querySelector": "a[href*='invoice.stripe.com']" }, + "selectorStrategies": [ + { + "strategy": "href-pattern", + "value": "a[href*='invoice.stripe.com']" + }, + { + "strategy": "css", + "value": "tbody a[href*='stripe.com']" + } + ], "steps": [ { "action": "getPdf", @@ -31,11 +49,21 @@ "action": "downloadPdfsFromUrls", "inputVariable": "all_pdfs" } + ], + "checkAuth": [ + { + "action": "goToUrl", + "url": "https://app.excalidraw.com/o/4v5Tc76L4dv/settings/billing" + }, + { + "action": "waitForNetworkIdle" + }, + { + "action": "checkAuth", + "authSelector": "a[href*='/settings/billing']", + "timeout": 10000 + } ] - }, - "type": "blueprint" - }, - "meta": { - "schemaVersion": "1.0.0" + } } } \ No newline at end of file