diff --git a/skyvern/forge/agent.py b/skyvern/forge/agent.py index 01497bf24e..0d5912ad01 100644 --- a/skyvern/forge/agent.py +++ b/skyvern/forge/agent.py @@ -131,7 +131,7 @@ async def create_task_and_step_from_block( task_url = validate_url(task_url) task = await app.DATABASE.create_task( url=task_url, - title=task_block.title, + title=task_block.title or task_block.label, webhook_callback_url=None, totp_verification_url=task_block.totp_verification_url, totp_identifier=task_block.totp_identifier, diff --git a/skyvern/forge/sdk/workflow/models/block.py b/skyvern/forge/sdk/workflow/models/block.py index ccaf71bcf0..318a082182 100644 --- a/skyvern/forge/sdk/workflow/models/block.py +++ b/skyvern/forge/sdk/workflow/models/block.py @@ -170,7 +170,7 @@ class TaskBlock(Block): block_type: Literal[BlockType.TASK] = BlockType.TASK url: str | None = None - title: str = "Untitled Task" + title: str = "" navigation_goal: str | None = None data_extraction_goal: str | None = None data_schema: dict[str, Any] | list | None = None diff --git a/skyvern/forge/sdk/workflow/models/yaml.py b/skyvern/forge/sdk/workflow/models/yaml.py index 2a989b1505..fbe431b445 100644 --- a/skyvern/forge/sdk/workflow/models/yaml.py +++ b/skyvern/forge/sdk/workflow/models/yaml.py @@ -117,7 +117,7 @@ class TaskBlockYAML(BlockYAML): block_type: Literal[BlockType.TASK] = BlockType.TASK # type: ignore url: str | None = None - title: str = "Untitled Task" + title: str = "" navigation_goal: str | None = None data_extraction_goal: str | None = None data_schema: dict[str, Any] | list | None = None