From eb04091bf470a72e97d297b249925c572c022de8 Mon Sep 17 00:00:00 2001 From: bastienwellapp Date: Tue, 28 Apr 2026 15:42:35 +0200 Subject: [PATCH] fix: update blueprint for openai --- ai-connector/openai/openai.json | 35 +++++++++++++++++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git a/ai-connector/openai/openai.json b/ai-connector/openai/openai.json index 6383988..eb247e7 100644 --- a/ai-connector/openai/openai.json +++ b/ai-connector/openai/openai.json @@ -10,12 +10,29 @@ "action": "goToUrl", "url": "https://platform.openai.com/settings/organization/billing/history" }, + { + "action": "waitForNetworkIdle" + }, + { + "action": "wait", + "seconds": 3 + }, { "action": "forEach", - "id": "invoice-links-loop", + "id": "stripe-invoices", "on": { - "querySelector": "td a" + "querySelector": "a[href*='invoice.stripe.com']" }, + "selectorStrategies": [ + { + "strategy": "href-pattern", + "value": "a[href*='invoice.stripe.com']" + }, + { + "strategy": "css", + "value": "table.tbl.billing-history-table a.lkCln" + } + ], "steps": [ { "action": "getPdf", @@ -32,6 +49,20 @@ "action": "downloadPdfsFromUrls", "inputVariable": "all_pdfs" } + ], + "checkAuth": [ + { + "action": "goToUrl", + "url": "https://platform.openai.com/settings/organization/billing/history" + }, + { + "action": "waitForNetworkIdle" + }, + { + "action": "checkAuth", + "authSelector": "table.tbl.billing-history-table", + "timeout": 10000 + } ] } }