Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
use workflow_run_id screenshot when task has the workflow_run_id (#798)
Shuchang Zhengdeb80bce9c64
diff --git a/skyvern/forge/sdk/routes/streaming.py b/skyvern/forge/sdk/routes/streaming.pyindex 8bbc3692f..a5df5e996 100644--- a/skyvern/forge/sdk/routes/streaming.py+++ b/skyvern/forge/sdk/routes/streaming.py@@ -89,6 +89,8 @@ async def task_stream(if task.status == TaskStatus.running:file_name = f"{task_id}.png"+ if task.workflow_run_id:+ file_name = f"{task.workflow_run_id}.png"screenshot = await app.STORAGE.get_streaming_file(organization_id, file_name)if screenshot:encoded_screenshot = base64.b64encode(screenshot).decode("utf-8")