Speed-to-lead playbook
How to Measure Speed to Lead in Salesforce
Salesforce will tell you when a lead was created and when it last had activity. It will not tell you how long a buyer who asked for a demo waited for a person. This guide builds that number from two stamps, one flow and one formula. For why it matters, start with the speed-to-lead guide; for the HubSpot version, see measuring speed to lead in HubSpot.
Why don't the standard fields work?
| Standard field | What it holds | Why it fails for speed to lead |
|---|---|---|
| CreatedDate | When the record was created | Imports and returning leads start the clock at the wrong moment |
| LastActivityDate | Date of the latest activity | A Date, not a DateTime, and it moves with every new activity |
| Task ActivityDate | The task's due or activity date | A Date, and reps can back-date it when logging later |
How do you build the speed-to-lead field?
1. Add two DateTime fields
On Lead, create Hand_Raise_At__c and First_Sales_Touch_At__c, both DateTime. Add the same pair on Contact for existing contacts who come back with a new request, and map the Lead fields to the Contact fields in lead conversion so the history survives conversion.
2. Stamp the hand-raise
Set Hand_Raise_At__c when a demo, contact-sales or pricing request arrives, from your form integration or a record-triggered flow on the field that records the request. Clear First_Sales_Touch_At__c in the same step, so each request gets its own clock.
3. Stamp the first human touch with a flow
Build a record-triggered flow on Task (and one on Event for booked meetings) that runs after save and checks four things: the record's WhoId is a lead or contact with an open hand-raise, the activity is a human sales touch (a call, a one-to-one email, a meeting, not a marketing send), it was created after Hand_Raise_At__c, and First_Sales_Touch_At__c is empty. If all four hold, write the activity's CreatedDate into the field. CreatedDate is system-set, so a rep logging a call late cannot make the response look faster.
4. Calculate the gap in minutes
A Number formula field, Speed_To_Lead_Minutes__c:
IF(
AND(NOT(ISBLANK(First_Sales_Touch_At__c)), NOT(ISBLANK(Hand_Raise_At__c))),
(First_Sales_Touch_At__c - Hand_Raise_At__c) * 1440,
NULL
)Subtracting two DateTime values in a formula returns days as a decimal; multiplying by 1440 turns it into minutes.
5. Add business minutes if your SLA is in-hours
Formulas cannot read your business hours. The Apex BusinessHours class can: its diff method returns the difference in milliseconds between two DateTime values based on a specific set of business hours, holidays included, and isWithin tells you whether a moment fell inside them. Wrap both in a small invocable action, call it from the first-touch flow, and store business minutes and an "arrived in staffed hours" flag on the record.
Which reports should you build?
- Median minutes by owner, split by the staffed-hours flag. The median is the typical buyer's wait.
- Share within five minutes, using a bucket field on the minutes formula (under 5, 5 to 30, 30 to 240, over 240).
- Minutes by lead source, so a broken form integration shows up as one source slowing down.
- Open hand-raisers with no touch, sorted by Hand_Raise_At__c, on the sales manager's home page.
- Meetings and opportunities by bucket, which turns the published benchmarks into your own evidence.
Salesforce has no standard field for lead response time, so speed to lead is measured with two DateTime fields on the Lead (hand-raise and first human sales touch), a record-triggered flow that stamps the first Task or Event once, and a formula that multiplies the DateTime difference by 1440 to return minutes. For business-hours SLAs, the Apex BusinessHours.diff method returns the difference in milliseconds between two DateTime values based on a specific set of business hours.
What breaks the measurement?
- Activities that never become Tasks. If your email or calendar sync stores activity elsewhere, the flow never fires. Test with a real first touch before you trust the report.
- Counting automated sends such as a sequence's first auto-email as the response.
- Starting at CreatedDate for imported or returning leads.
- Overwriting the first touch on every new activity, which turns it into a last-touch field.
- One blended number for in-hours and after-hours leads.
What do you fix first?
Split the gap into its parts: request to owner assignment (routing), assignment to alert, alert to touch. The longest part is the first fix. Routing models are compared in round-robin vs ownership routing, alerting in Slack and SMS lead alerts, and tools in the best lead routing tools. Harvard Business Review's 2011 study put the average first response at about 42 hours (Oldroyd, McElheran and Elkington), so most teams find hours, not seconds, in the first report.
Artemis GTM builds the measurement, routing and alerts inside your own Salesforce org as part of an engagement. To price the gap first, work out the cost of slow lead response.
Frequently asked questions
Does Salesforce have a built-in lead response time field?
What is the formula for lead response time in Salesforce?
How do I calculate response time in business hours in Salesforce?
Why does my first-touch field stay empty when reps send emails?
Should I start the clock at CreatedDate?
What is the fastest way to get an accurate speed to lead report in Salesforce?
Sources and references
- Salesforce Apex Reference, "BusinessHours Class": diff returns milliseconds between two DateTime values within a set of business hours; isWithin checks a moment against them.
- Oldroyd, McElheran and Elkington, "The Short Life of Online Sales Leads," Harvard Business Review (March 2011): the roughly 42-hour average first response.
- Oldroyd, J. B., Lead Response Management Study (2007): the 5-minute versus 30-minute qualification gap.
Not ready for an engagement?
If a Salesforce org that cannot say how long hand-raisers wait is the gap, the free guides let you price it in your own numbers before anyone builds anything. Start with the seven revenue leaks, then read The Engine Room to watch the systems getting built.
Done for you
Want this built inside your stack?
Artemis GTM is a GTM engineering firm that builds and runs outbound and inbound GTM systems for Seed to Series C B2B companies, hands-on, in three to six months, with its own agent architecture, then hands the systems over. One evaluation call and a written scoping note. Prices for both options are published on the pricing page.
Book a callNot ready for an engagement? Read The Engine Room, the build notes from inside the firm.