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
November 29, 20260
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
How to Approach This
- Start by mapping the business objective to a concrete ML objective and metric.
- Cover the full pipeline: data collection, feature engineering, model selection, training, serving.
- Discuss online vs offline evaluation. Plan an A/B test to validate real-world impact.
- Address the serving latency budget and whether batch or real-time inference is needed.
- 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 ProblemsSample 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
Moveworks Machine Learning Engineer Interview Guide
Interview process, tips, and preparation timeline