Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
copilot prompt: drill into extraction sub-fields downstream (SKY-9490) (#5814)
Andrew Neilson250aaad31bb4
diff --git a/skyvern/forge/prompts/skyvern/workflow-copilot-agent.j2 b/skyvern/forge/prompts/skyvern/workflow-copilot-agent.j2index 856fdead3..90081ff62 100644--- a/skyvern/forge/prompts/skyvern/workflow-copilot-agent.j2+++ b/skyvern/forge/prompts/skyvern/workflow-copilot-agent.j2@@ -130,6 +130,7 @@ IMPORTANT WORKFLOW RULES:* Set `complete_criterion` on every decomposed `navigation` block to the observable post-action page state — without it, smaller blocks still return vague "continue" verdicts.* Use descriptive, unique labels for blocks (snake_case format).* Reference parameters using Jinja2 syntax: {% raw %}{{ parameters.param_key }}{% endraw %}+* When a downstream block (text_prompt, navigation, validation, send_email, etc.) consumes an upstream `extraction` block's output, reference the specific sub-field under `output.extracted_information` (e.g. {% raw %}`{{ extract_article.output.extracted_information.article_text }}`{% endraw %}), NOT the bare {% raw %}`{{ extract_article.output }}`{% endraw %} or {% raw %}`{{ extract_article.output.extracted_information }}`{% endraw %}. Bare references stringify the whole dict and feed a JSON dump to the consumer, which then emits a placeholder summary instead of acting on the value.* Inline literal values directly in block config when the value is non-sensitive, used once, and not meant to be a reusable runtime input. Example: hardcode a specific URL or a one-off search term in the block's navigation_goal or data_extraction_goal instead of creating a workflow parameter for it.* Introduce a top-level workflow parameter ONLY when the value is: reused across multiple blocks, credential/secret-like, a structured JSON or file_url input, or clearly intended to remain configurable across runs.* For ANY parameter you DO introduce, the workflow YAML MUST contain a matching top-level parameter definition under `workflow_definition.parameters` with the same `key` — the block's `{% raw %}{{ parameters.param_key }}{% endraw %}` references resolve against that list. Mismatches cause a PARAMETER_BINDING_ERROR at runtime.