Design a Self Healing Target Recovery Service for UI Automation

Last updated: November 29, 2026

Quick Overview

When a robot cannot find a UI element because the application changed (new attribute values, moved controls, redesign), design a service that proposes or applies a corrected target at runtime and learns from developer feedback. Cover signals, models, safety controls and rollout.

UiPath
ML System Design
Machine Learning Engineer
UiPath
November 29, 2026
Machine Learning Engineer
System Design Round
ML System Design
Hard

0

0

0 solved


When a robot cannot find a UI element because the application changed (new attribute values, moved controls, redesign), design a service that proposes or applies a corrected target at runtime and learns from developer feedback. Cover signals, models, safety controls and rollout.

Selector breakage is the classic maintenance cost of UI automation, and UiPath invests in healing agents and computer vision fallbacks to reduce it. ML system design rounds here test whether a candidate can combine structured UI trees, screenshots and history into a ranking problem, while treating a wrong click as a safety incident.

What the Interviewer Expects
  • Frames healing as candidate generation plus ranking with an abstain option
  • Uses multiple signals: attribute similarity, anchors and layout, visual embedding, OCR text, past successful runs
  • Designs safety: confidence thresholds, action risk levels, suggest versus auto-apply, post-action verification
  • Defines labels from developer accept or reject and from downstream run success
  • Handles latency on robot machines, privacy of screenshots, and per-app adaptation
  • Plans offline evaluation from recorded failures and staged rollout
Key Topics to Cover
Candidate ranking
Multimodal signals
Abstention
Human feedback
Safety controls
Edge inference
How to Approach This
  1. Start by mapping the business objective to a concrete ML objective and metric.
  2. Cover the full pipeline: data collection, feature engineering, model selection, training, serving.
  3. Discuss online vs offline evaluation. Plan an A/B test to validate real-world impact.
  4. Address the serving latency budget and whether batch or real-time inference is needed.
  5. Think about the data flywheel: how user feedback improves the model over time.
Possible Follow-up Questions
  • How do you avoid healing onto a similar but wrong button, such as Reject instead of Approve?
  • Screenshots may contain customer PII. What runs on the robot versus in the cloud?
  • How would you use a multimodal LLM here, and how do you bound its latency and cost?
  • How do you measure that healing reduces total maintenance, not just faults?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice ML System Design Problems
Sample Answer
Requirements

Trigger: a target lookup fails (or matches multiple) after normal retries. Output within about 2 seconds: either a healed target with confidence, or abstain and fault as before. Must never perform a h...

High-Level Design
  1. Capture at design time: the stored target includes the selector, anchors, relative layout, a small image crop and OCR text of the element.
  2. On failure, on the robot: enumerate candidate e...

Submit Your Answer
Markdown supported

Related Questions