Design an LLM Planner That Selects and Calls Enterprise Plugins

Last updated: November 29, 2026

Quick Overview

Design the reasoning component of an employee assistant that takes a request like "I need access to Figma and my laptop is overheating", decides which of a tenant's hundreds of plugins to invoke, fills their arguments, asks clarifying questions when needed, and executes actions safely.

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

0

0

0 solved


Design the reasoning component of an employee assistant that takes a request like "I need access to Figma and my laptop is overheating", decides which of a tenant's hundreds of plugins to invoke, fills their arguments, asks clarifying questions when needed, and executes actions safely.

Agentic reasoning over customer-specific plugins is the heart of a modern enterprise assistant, and the hard parts are plugin selection at scale, grounded argument filling, and never taking a wrong irreversible action. The interviewer expects an end-to-end design spanning retrieval, LLM orchestration, guardrails, latency and evaluation.

What the Interviewer Expects
  • Decomposes multi-intent requests into separate tasks
  • Retrieves a shortlist of candidate plugins before LLM selection
  • Validates generated arguments against schemas and resolves entities against real systems
  • Gates side-effecting actions with confirmation and policy checks
  • Defines offline and online evaluation of plan quality
  • Addresses latency budget and model choice per step
Key Topics to Cover
Tool selection
LLM orchestration
Slot filling
Guardrails
Agent evaluation
Latency budgets
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
  • A customer adds 40 new plugins with overlapping descriptions; how do you keep selection accurate?
  • How do you stop the model from fabricating a ticket number or an approval?
  • Which steps would you move to a small fine-tuned model and why?
  • How would you A/B test a new planner prompt safely across enterprise tenants?
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

Inputs: user message, conversation state, employee profile, tenant plugin catalog (name, description, argument schema, side-effect level). Outputs: either a reply, a clarifying question, or a sequence...

High-Level Design

Pipeline: (1) a planner LLM call splits the message into tasks; (2) for each task, embed it and retrieve the top ~10 plugins from the tenant catalog (dense plus keyword, boosted by usage priors); (3) ...


Submit Your Answer
Markdown supported

Related Questions