← Back to Salesforce
Salesforce project 1 · Home services

Smart case triage that hits SLAs

A Service Cloud solution for Olag Home Services, a fictional heating and appliance repair company. Urgent cases reach the right team automatically, Premium customers get a 4-hour response promise, agents get AI help, and repeat faults are fixed at the root.

Role
Business Analyst, admin and QA tester
Period
November 2026
Platform
Salesforce Service Cloud
Scope
8 user stories, 7 Flows, 2 AI prompts
Testing
27 test cases, 4 defects fixed
Evidence
64 screenshots

Data. Built in my own Salesforce Developer org. Olag Home Services, its customers and all cases are fictional test data.

The Olag Service manager dashboard: workload by queue, SLA results, what breaks most and repeat problems.
The Olag Service manager dashboard: workload by queue, SLA results, what breaks most and repeat problems.

Business problem

Why the project exists.

A LinkedIn post made a point that stayed with me: support teams measure how fast they close cases, but the same fault keeps coming back, because closing a case is not the same as solving the problem. I built this project around that idea.

Current state at Olag

  • Every request lands in one shared inbox, with no triage
  • A gas smell can wait behind an invoice question
  • Premium customers pay for faster service but have no response promise
  • Agents read long messages before they can reply, so customers wait longer
  • The same faults return for the same households; nobody records the root cause
  • Managers have no view of workload or response times

Goals

  • Urgent and safety cases reach the right team in seconds
  • Response times promised and tracked by customer tier
  • A warning before a promise is missed
  • Faster first replies with AI help, checked by an agent
  • Repeat faults grouped and closed only with a root cause
  • One dashboard for the service manager

What I built

Requirements as user stories, and the Salesforce design for each.

StoryRequirementSolution
US-01Capture every request from email and web, with an instant replyEmail-to-Case, Web-to-Case on a public Salesforce Site, auto-response rule
US-02Set priority automatically; never overwrite an agent's choiceBefore-save Flow with keyword and type rules
US-03Route to the right team: heating specialists, Premium or StandardAfter-save Flow, 3 queues, Omni-Channel
US-04Promise response times by tier: 4 h Premium, 24 h StandardEntitlement processes and milestones, after-save Flow
US-05Warn before a promise is missedFlow with a scheduled path and email alert
US-06Help agents with AI: summary and reply draftPrompt Builder templates, Dynamic Forms
US-07Fix the root cause of repeat faultsCustom object Olag Problem, Flow, validation rule
US-08Give managers one view4 reports, dashboard, branded Lightning app
Flow Builder canvas of the repeat-case Flow
One of the 7 Flows: linking repeat cases to a Problem (US-07).

Process map

From a customer's report to the manager's dashboard.

CustomerAutomation(Flows)AgentManager Reports a faultemail or web formGets an auto-replycase number + next steps 1 · Set prioritykeywords + type → High2 · Route to queueHeating · Premium · Standard3 · Entitlement + SLAPremium 4 h · Standard 24 h 5 · Repeat check3+ same type in 30 days4 · SLA warningemail if still New Resolve the Problemroot cause + fix requiredAgent works the casevia Omni-Channel queueAI summary + replyPrompt Builder, agent checks Manager dashboard (Olag Service home)workload · SLA results · what breaks most · repeat problems auto-response rule

Walkthrough

One gas-smell case, from the form to the SLA warning.

AI assistant

Two Prompt Builder helpers on the case page. The agent always checks before sending (human in the loop).

AI Summary

3 to 5 lines: the problem, how urgent it is and the next step. If details are missing, it tells the agent what to ask instead of guessing.

AI Reply Draft

A short, polite email for the agent to send. Safety rule: if the case mentions gas, the reply starts with "leave the building and call the emergency gas line".

How it helps the team

  • Understand a case in seconds (about 3 s per result)
  • Less writing on routine replies
  • Same tone and safety message for every agent

How it helps the business

  • Faster first response, so the Premium SLA is easier to meet
  • Lower handling time per case
  • Tested like any feature: accuracy, no invented details, safety

Test strategy and results

Requirements-based testing: every acceptance criterion covered and traced to its user story.

27test cases across 8 user stories
25passed (4 after a fix)
96%final pass rate (81% first time)
1blocked by the environment

Test types

  • Functional, positive and negative
  • Integration: email and web channels
  • End-to-end, from form to dashboard
  • Regression after every fix
  • AI output: accuracy, invented details, safety
  • Simulated UAT as agent and manager

Test data

  • Martin Household: Premium customer
  • Bernard Household: Standard customer
  • Realistic cases: gas smell, boiler leak, repeat installations
  • Existing records checked before writing expected results

Defects and root cause

Four tests failed first. Each was traced to its root cause, fixed and retested.

TestSeverityExpected vs actualRoot causeFix
TC-13HighQueue owner expected; case stayed with the default ownerOwner set before save was overwritten by a support settingRouting moved to an after-save Flow
TC-20HighSLA clock expected; web cases had noneSame order-of-execution issueAfter-save Update Records
TC-23CriticalNormal reply expected; water-leak customer told to evacuate for gasUnclear prompt rule ("mentions gas")Strict rule, negative test, regression on a gas case
TC-25MediumAI button expected on the case page; none shownThe app used its own default pagePage assigned as the app default

Test cases

Open a row for preconditions, steps and the expected result.

IDTest caseStoryResult
TC-01
Email creates a case
Precondition
Email-to-Case on; routing address set
Steps
  1. Send an email to the support address
  2. Wait 1 to 2 minutes
  3. Search the subject in Cases
Expected
New case, Origin = Email, sender linked as contact
US-01Pass
TC-02
Gmail forwards to Salesforce
Precondition
Access to Gmail settings
Steps
  1. Open Forwarding settings
  2. Check the full Salesforce address
  3. Check forwarding is on
Expected
Forwarding active to the complete address
Note
Typed address was cut off; pasted the full address
US-01Pass
TC-03
Replies stay on the same case
Precondition
TC-01 case and its auto-reply exist
Steps
  1. Reply to the auto-reply
  2. Forward it back
  3. Open the original case
Expected
Both messages on the same case, no new case
US-01Pass
TC-04
Web form creates a case
Precondition
Public Salesforce Site live
Steps
  1. Open the Report a problem form
  2. Fill in the fields
  3. Submit
  4. Open the newest case
Expected
Case created with Origin = Web
US-01Pass
TC-05
Web case gets a priority
Precondition
As TC-04
Steps
  1. Submit an urgent problem
  2. Check Priority
Expected
Priority reflects urgency
Note
Finding: no priority. Fixed by US-02
US-01Finding
TC-06 to 10
Priority rules
Precondition
Set Case Priority Flow active
Steps
  1. Create cases with heating, gas, boiler, leak
  2. Create a case with an urgent Type
  3. Create a normal case
  4. Submit gas leak via web form
  5. Check Priority on each
Expected
Urgent = High, normal = Medium
US-02Pass
TC-11
Agent's priority is kept
Precondition
A case exists
Steps
  1. Set Priority to Low by hand
  2. Edit another field and save
  3. Check Priority
Expected
Priority stays Low
US-02Pass
TC-12
Auto-reply
Precondition
Auto-response rule active
Steps
  1. Submit the form with your own email
  2. Open the mailbox
Expected
Email with case number and next steps
US-01Pass
TC-13
Urgent case to Heating Specialists
Precondition
Routing Flow and queues ready
Steps
  1. Submit No heating for a Premium customer
  2. Check Case Owner
Expected
Owner = Heating Specialists
Note
Owner set before save was overwritten by the Default Case Owner; moved to after-save
US-03Fail → Pass
TC-14
Premium case to Premium Support
Precondition
Customer tier = Premium
Steps
  1. Create a non-urgent case
  2. Check Case Owner
Expected
Owner = Premium Support
US-03Pass
TC-15
Standard case to Standard Support
Precondition
Customer tier = Standard
Steps
  1. Create a non-urgent case
  2. Check Case Owner
Expected
Owner = Standard Support
US-03Pass
TC-16
Case pushed to an available agent
Precondition
Agent Available in Omni-Channel
Steps
  1. Set agent to Available
  2. Create a case for their queue
  3. Watch the agent inbox
Expected
Case offered to the agent
Note
Needs a second agent user
US-03Blocked
TC-20
Entitlement and SLA clock
Precondition
Entitlements active; Flow active
Steps
  1. Submit a web case for a Premium customer
  2. Check Entitlement
  3. Check Milestones
Expected
Premium entitlement; 4 h First Response clock
Note
Value set before save was not kept; moved to after-save
US-04Fail → Pass
TC-21
SLA warning email
Precondition
SLA Warning Flow (test delay 5 min)
Steps
  1. Create a Premium case, leave it New
  2. Check the queued action
  3. Wait 10 to 15 min
  4. Check the mailbox
Expected
"SLA at risk" email received
US-05Pass
TC-22
AI case summary
Precondition
Template active; case with empty description
Steps
  1. Preview the summary on the case
  2. Read the response
Expected
3 to 5 lines, no invented details
US-06Pass
TC-23
AI reply, water leak (negative test)
Precondition
Reply template; water-leak case
Steps
  1. Preview the reply
  2. Read it
Expected
Polite reply, no gas warning
Note
AI added a gas warning; prompt rule rewritten twice
US-06Fail → Pass
TC-24
AI reply, gas case
Precondition
Gas smell case
Steps
  1. Preview the reply
  2. Read the first sentence
Expected
Safety instruction comes first
US-06Pass
TC-25
AI on the case page
Precondition
AI fields on the page (Dynamic Forms)
Steps
  1. Open the case
  2. Generate both AI fields
  3. Save
Expected
Both fields fill and save
Note
App used its own page; assigned as app default
US-06Fail → Pass
TC-26
Repeat cases create a Problem
Precondition
Repeat-case Flow active
Steps
  1. Submit 3 Installation cases for one household
  2. Open Olag Problems
  3. Open Related Cases
Expected
Problem created, matching cases linked
Note
6 linked: 2 older cases were in the window
US-07Pass
TC-27
Next case joins the same Problem
Precondition
TC-26 done
Steps
  1. Submit a 4th case
  2. Check for duplicates
Expected
Linked to the same Problem
US-07Pass
TC-28
Root cause required
Precondition
Problem open, Root Cause empty
Steps
  1. Set Status = Resolved and save
  2. Fill Root Cause and Corrective Action
  3. Save again
Expected
First save blocked; second saves
US-07Pass
TC-29
Other households not linked
Precondition
Another household with 1 older case
Steps
  1. Submit 1 Installation case
  2. Check the Problem
Expected
Not linked; no new Problem
US-07Pass
TC-30
Manager dashboard
Precondition
Dashboard set as app home
Steps
  1. Open the Olag Service app
  2. Refresh Home
Expected
4 widgets with current data
US-08Pass

Results

What the system now makes visible (test data).

36open cases across 4 owners
16old cases found that never reached a queue
11 / 12First Response milestones breached on unanswered test cases
6repeat cases grouped into one Problem

Lessons learned

Timing matters in automationBefore-save for simple changes to the same record; after-save for values another setting could overwrite. Root cause of TC-13 and TC-20.
AI needs testing tooOne unclear sentence in a prompt caused a critical defect. Fixed with a clear rule, a negative test and a regression test.
Check test data firstTwo older records changed the expected result of TC-26. The system was right; my expected result was not.
Reports find problems tooThe dashboard revealed unrouted cases, missing types and a resolved Problem with open cases.

Next improvements

Product backlog, each item linked to a finding.

  • When a Problem is resolved, prompt the agent to close or update its linked cases
  • Make Type required on the web form, or let AI suggest it
  • Production SLA timing: warn at 3 hours (Premium) and 22 hours (Standard)
  • Smarter priority keywords ("Oven not heating" was set to High)
  • Flag web cases from unknown emails so an agent can match the customer

Ola Grillon · Salesforce project 1