Overview
Automation Tasks combine deterministic Playwright code for speed and consistency with agentic steps when the page needs more flexibility. As websites change, Anchor helps your tasks stay reliable in two ways:
AI fallback keeps today’s run on track. Self-healing turns what worked agentically into a stronger deterministic workflow for tomorrow.
AI fallback
When a step needs more flexibility than deterministic code alone, Anchor completes it with an AI agent. The run keeps going — you get the result, and you can see exactly where the agent stepped in.How to spot agentic steps
On the execution. Runs that used AI fallback show an AI Fallback badge in the task execution list and on the run detail page. Look for it next to the run status. On the workflow graph. Open a run to view the Workflow Graph. Any segment that completed agentically shows an AI Fallback badge on that segment’s card — during the run and after it finishes. In the steps panel. The right-hand Steps panel lists each segment in order. Expand a segment to see its logs. When the agent completed that step, an Agent Logs section appears underneath — these are the agentic actions taken for that segment.Turning AI fallback off
Some workflows must run deterministically or not at all — compliance-sensitive flows, or pipelines where a silent agent recovery masks a real regression. Setai_fallback_enabled to false on the task to disable it.
In the dashboard, open the task and toggle Allow AI in this task off under Settings. The Overview tab shows the current state. New tasks default to on, and existing tasks are unchanged.
Via API:
ai_fallback_enabled on POST /v2/tasks/generate. GET /v1/task/{taskId} returns the current value as aiFallbackEnabled.
What changes when it’s off:
Workflow self-healing
After a run where a deterministic step failed, Anchor can study the execution and propose an updated workflow. Nothing goes live automatically — self-healing creates a draft version and waits for your approval.When it triggers automatically
Self-healing runs automatically after workflow runs that give Anchor enough signal to propose an update:- The task is a workflow task, and the run reached a terminal state other than cancelled or timed out — a run that failed still heals
- A segment’s deterministic code failed — whether or not AI fallback then recovered it — or a logic segment surfaced a condition worth updating in the workflow
Review and approve
1
Open the execution
In the Tasks UI, open the task and find the run that triggered self-healing. Expand the execution to see the summary and suggested improvement.
2
Review the proposed changes
Click Apply fix to open a side-by-side comparison of the current workflow and the healed draft. Switch between Code and Graph views to inspect what changed.
3
Test the healed version
Click Test Run to execute the draft with the same inputs as the original run (or your own). Confirm the updated workflow runs deterministically before promoting it.
4
Deploy to production
Click Deploy to promote the healed draft to the task’s latest version. Until you do, production runs continue using the previous version.
POST /v2/tasks/{taskId}/publish-draft.
Webhooks
Subscribe totask.healed to get notified when self-healing creates a draft version ready for review:
published_as_draft: true means the healed workflow was saved as a draft — not deployed. Use healed_task_version_id in your CI or ops pipeline to review, test, and promote the update when ready. See Webhook events for the full event catalog.
Next steps
- Run a Task — execute workflows and inspect execution results
- Code Tasks — read draft versions and deploy via API
- Webhook events — automate on
task.healed

