Should This Be an Agent or a Workflow?
The interviewer asksA customer wants an AI agent to process incoming invoices: extract details, match them to purchase orders, and flag mismatches. Agent or workflow?
Forward Deployed EngineerAI Product EngineerApplied AI PM (secondary)CoreCustomer scenario roundRepresentative7 min
On this page
The 30-second version
- The steps are known: extract → match → flag. That's a workflow.
- Use the model only where needed: reading varied invoices, fuzzy matching of names.
- Matching rules and totals belong in code: exact, auditable.
- Mismatches go to a person with the evidence.
- Consider an agent only for genuinely open-ended exceptions.
What it's really testing
- Workflow vs agent judgment
- Using AI only where it adds value
- Auditability
How to structure your answer
- Map the steps.
- Decide where AI is needed.
- Design the exception path.
- Explain to the customer.
The interview, played out
- InterviewerA customer wants an AI agent to process incoming invoices: extract details, match them to purchase orders, and flag mismatches. Agent or workflow?
- CandidateHow varied are the invoices, and what happens with exceptions today?
- Revealed when askedHundreds of suppliers with different layouts; exceptions go to a finance clerk.
- CandidateThe steps are the same every time, so a workflow. The model's job is reading varied invoice layouts into structured fields, and maybe fuzzy matching of supplier names. Matching totals and quantities against purchase orders should be code: exact and auditable.
- Strong moveUses AI only where it adds value.
- CandidateMismatches go to the clerk with the invoice, the matched order and what differs.
- InterviewerThe customer asked for an agent. How do you explain?
- CandidateAn agent decides its own steps, which is useful when steps vary. Here they don't, and finance needs every decision traceable. A workflow is cheaper, faster and easier to audit.
- Missed signalShould propose a narrow first rollout, such as the top 20 suppliers.
The strong answer, distilled
- Workflow: extract → match → flag, every time.
- AI where it helps: reading varied layouts; fuzzy supplier matching.
- Code for rules: totals and quantities matched exactly; auditable.
- Exceptions: to the clerk with the evidence.
- Explain: agents suit varying steps; finance needs traceability.
- Rollout: start with the top suppliers by volume.
This is one strong answer, not the only one.
How it's scored
| Dimension | Weak (2) | Passable (3) | Strong (5) |
|---|---|---|---|
| Structure | Agent by default | Workflow | Workflow with AI only where needed |
| Auditability | Ignored | Logs | Exact rules in code, evidence for exceptions |
| Communication | Jargon | Explains | Explains in the customer's terms |
Round scorecard: FDE: customer scenario round, filled in for the mock candidate
| Dimension | Weak | Passable | Strong | The mock candidate |
|---|---|---|---|---|
| Discovery questions | Starts building without asking what the customer needs. | Asks about requirements but not about users, data or success criteria. | Uncovers the real problem, the users, the data and how success will be judged. | Strong. Asked how varied the invoices and exceptions are. |
| Scoping | Promises everything. | Scopes a pilot but leaves risks implicit. | Scopes a pilot with a clear success bar and an explicit out-of-scope list. | Strong. Workflow for the standard path; narrow scope first. |
| Technical approach | Vague or unworkable architecture. | A workable approach with gaps in evaluation or failure handling. | A simple, workable design with evals and fallbacks built in. | Strong. Code steps where possible, model only for extraction and fuzzy matching. |
| Risk and data handling | Ignores data access, privacy and failure modes. | Mentions risks without mitigations. | Names the top risks with concrete mitigations and owners. | Strong. Audit trail and human review of mismatches. |
| Communication | Talks over the customer; jargon-heavy. | Clear but one-directional. | Plain language, checks understanding, adapts to the stakeholder. | Strong. Explained without jargon. |
| Path to production | Stops at the demo. | Mentions production but no plan. | A staged rollout with monitoring, ownership and handoff. | Passable. Rollout mentioned briefly. |
How the answer changes by role
| Role | What to emphasise |
|---|---|
| Forward Deployed EngineerForward Deployed Engineer. An engineer embedded with customers who scopes, builds and ships AI solutions into production. Read the full explanation | Explaining and scoping with the customer |
| AI Product Engineer | Extraction accuracy and the matching code |
| Applied AI PMProduct Manager. Decides what a product should do, for whom, and why. Read the full explanation | The clerk's exception experience |
Common mistakes
- Building an agent because it was requested
- Letting the model do arithmetic matching
- No audit trail
More follow-ups to practise
- "Extraction accuracy is 92%." Hint: which fields fail; confidence routing to review.
- "The customer wants it to email suppliers about mismatches." Hint: drafts for approval first.
Go deeper
- Module: Orchestration and routing
- Framework: Customer Scenario Framework
- Framework: Opening Any Interview Answer
- Lesson: Workflow or agent?
- Lesson: Workflow patterns
- Also tests: Customer deployment
- Also tests: Agent and RAG evals
Sources
Representative question: written to match customer scenario rounds for AI product roles, not a specific reported interview.