Download, validate, and store portal reports
Turn a portal export into a checkable artifact with a predictable name and provenance receipt.
Before the first run
- An authorized report and account scope
- Required period, format, and storage destination
- A naming convention and duplicate policy
Define what the agent can do.
Approved report retrieval and storage. Changing report configuration for other users or sharing the file externally is outside scope.
The implementation sequence
- 01
Select the report contract
Verify report type, account, period, filters, and timezone where the interface exposes them. Record the requested settings before starting the export.
- 02
Request the export
Use the approved download path and track whether the export is immediate or queued. Avoid repeated requests while a prior export is still processing.
- 03
Validate the artifact
Check file type, non-empty content, required headers or metadata, and requested period. Treat a downloaded HTML login page as a failed collection.
- 04
Name and store
Build the filename from validated metadata and a safe identifier. Keep the original filename in the receipt and avoid overwriting an existing different artifact silently.
- 05
Record completion
Store the source reference, retrieval time, validation result, and file hash. Route conflicting versions or missing metadata to review.
Stop for human approval
Approve the account, report scope, and storage destination. Review artifacts whose period or identity cannot be verified.
Approval design principles →Implementation options
Playwright
Deterministic browser automation and testing across Chromium, Firefox, and WebKit.
Verified Sep 27, 2026Browser infrastructureBrowserbase
Managed browser sessions with observability, proxies, and computer-use integrations.
Verified Sep 27, 2026Agent & orchestrationBrowser Use
An open-source browser agent library with managed agents and cloud browser sessions.
Verified Sep 27, 2026Agent & orchestrationSkyvern
Vision-assisted browser workflows with a developer SDK and a visual workflow builder.
Verified Sep 27, 2026Failure & recovery
- Queued export never finishes
- Wrong timezone or period
- Partial file transfer
- Filename collision
What drives cost
- Export processing duration
- File size and transfer
- Validation and duplicate handling
Related use cases
Sources & verification
Reviewed Sep 27, 2026. Architecture recommendations are editorial analysis; linked vendor documentation supports the underlying capability and safety facts.
- developers.openai.com/api/docs/guides/tools-computer-use
- playwright.dev/docs/locators
- playwright.dev/docs/auth