Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
Auto-sanitize workflow YAML block labels and import references (#4654)
Suchintanfe9324a86ba6
diff --git a/skyvern/forge/sdk/routes/agent_protocol.py b/skyvern/forge/sdk/routes/agent_protocol.pyindex 62aeb545e..fa392da3e 100644--- a/skyvern/forge/sdk/routes/agent_protocol.py+++ b/skyvern/forge/sdk/routes/agent_protocol.py@@ -1004,6 +1004,8 @@ async def update_workflow(try:if data.yaml_definition:workflow_json_from_yaml = yaml.safe_load(data.yaml_definition)+ # Auto-sanitize block labels and update references for imports+ workflow_json_from_yaml = sanitize_workflow_yaml_with_references(workflow_json_from_yaml)workflow_definition = WorkflowCreateYAMLRequest.model_validate(workflow_json_from_yaml)elif data.json_definition:workflow_definition = data.json_definition