Feature Snapshot
Summary:
Calculated fields let a LeadConduit flow create new lead values, like a score, a tier, a flag or a price, from data the lead already has. You set up the rules once in a Calculated fields step, and every later step in the flow can filter, route, price or deliver on the result. Calculated fields is in beta. To turn it on, open Add to Flow → Built-in steps → Calculate fields and click Request Access.
Key Benefits:
- One place for your logic - scoring and tiering live in one step, not in each source’s mappings or each recipient
- No code - build rules with the same condition builder as filters, plus Math, Format, Manipulate and Hash helpers
- Reuse across flows - make a field global to keep the same scoring model in every flow, and update it once
- Easy to check - every lead event shows the value each field got and the data the rules read
- No extra cost - the step is free and doesn’t add to your lead costs
Typical Use Cases:
- Grading a lead from a data service result, like rating a phone Great, Good or Bad from phone validation data
- Rating leads good, better or best (or red, yellow, green) so your CRM or call center works the best leads first
- Adding points for answers, phone quality and TrustedForm data into one lead score
- Rejecting leads below a score with a filter, or running a later step only for high scores
- Keeping rejection reasons in one global field, so every flow tells sources exactly why a lead was rejected
- Replacing the same conditional mapping in several recipient steps with one field you map everywhere
- Working out a bid, a payout or a ratio like loan-to-value
- Cleaning up or combining fields, like a full name, before they go to your CRM
How do calculated fields work?
You add a Calculated fields step to a flow, below the steps that add the data your rules need. The step holds one or more fields. Each field has a name you choose, a type (Number or String), a list of rules and a fallback. When a lead reaches the step, each field checks its rules top to bottom, and the first rule that matches sets the value. If no rule matches, the field gets its fallback. The result is saved on the lead as calculated.<name>, and the lead always continues to the next step.
There are two kinds of calculated field:
| Kind | Where it’s defined | Where you edit it |
|---|---|---|
| Local | Inside one flow’s Calculated fields step | Right in the flow |
| Global | Settings → Advanced Settings → Calculated Fields | In Settings. Changes apply to every flow that uses it. Inside a flow it’s read-only. |
A rule’s value can be plain text, a number, another field, or a formula. Type # in a value box to insert a field or one of these helpers:
| Helper | Use it to | Example |
|---|---|---|
| Math | Add, subtract, multiply, divide and round Number fields | phone_points + timeframe_points + readiness_points |
| Format | Change how a value is written, like dates or numbers | A submission date as YYYY-MM-DD |
| Manipulate | Change text: trim, upper or lower case, replace | Turn Windows into windows |
| Hash | Hash a value, like an email, with SHA-256 or MD5 | A hashed email for an ad platform |
Rules to keep in mind:
- Fields read top to bottom. A field can use fields above it in the same step and fields from earlier steps, but not fields below it.
- Rule order matters. The first matching rule wins, so put the most specific rules first. A rule with no conditions matches every lead, so any rule below it never runs.
- Number fields must produce a number. If a rule’s value can’t be worked out, for example a Math input is empty, that rule is treated as not matched and the next rule runs, then the fallback.
- The fallback is required. Use
0when the field feeds a sum, ornullto leave the field empty.nullisn’t saved as the word “null”.
Step-by-Step Instructions
Add a Calculated fields step
Place the step after every step that adds data your rules need. For example, if a rule uses TrustedForm Insights, put it below your TrustedForm step.
-
Open the flow and click Add to Flow.
-
Under Built-in steps, choose Calculate fields. The step opens in the panel on the right.
Calculate fields is under Built-in steps in the Add to Flow menu.
-
Optional: add a Description so you can tell steps apart in the flow sidebar.
-
Click Add Calculated Field, then Create calculated field.
-
Enter any name you like and choose a type: Number for anything you’ll do math on, String for text like tiers. For the example below we chose String.
-
Fill in the first rule: Set the field to a value. A rule with no conditions always applies, so click Add Condition and pick a field, an operator and a value. With two or more conditions, choose whether all or any of them must be true.
A rule with two conditions. Choose all or any to decide how they combine.
-
Click Add Rule for each other case, and drag rules to change their order.
-
Enter the fallback in If no rules match, set fallback value to.
-
Add more fields with Add Calculated Field. A field can use any field above it in the same step.
-
Save the flow, then click Test Flow or send a test lead and check the result on the lead event.
Create a global field
- Go to Settings → Advanced Settings → Calculated Fields and click Create Calculated Field.
- Enter a name, a type and an optional description. The name and type can’t change after you create the field, because later steps use the name.
- Add rules and a fallback, the same way as in a flow, and save.
Creating a global calculated field in Settings.
You can also build a field in a flow first, then choose Convert to global from its card menu. This is the easiest way to build a field that uses data from earlier steps in that flow.
Add a global field to a flow
- In the Calculated fields step, click Add Calculated Field → Add global calculated field.
- Search for the field and select it. It appears with a Global badge.
To change its rules, choose Edit in calculated fields from its menu. To make a local copy for just this flow, choose Detach. The copy no longer syncs with the global field, and this can’t be undone.
A global field in a flow shows a Global badge and a summary of its rules.
Use the result in later steps
Each field is available as calculated.<name> in every step below the Calculated fields step, in the same field pickers as other lead data:
- Filters and acceptance criteria: reject or stop leads, for example when
calculated.phone_qualityis equal to Bad. - Recipient mappings: send the value to your CRM’s score field.
- Math in later steps: Number fields appear in the Math helper, so a later step can build on them.
- Exports and reports: values are saved with the lead event.
Example setups (made-up names):
The field names below are examples only. LeadConduit has no built-in fields with these names: you name each calculated field yourself, and the lead fields in your conditions are the ones in your own flow.
Example 1: Phone quality grade
Grade each phone number from phone validation data. Put the step below your Trestle Phone Validation step so its data is available. This is the field shown in the screenshots above.
| Field (String) | Rules, top to bottom | Fallback |
|---|---|---|
phone_quality |
Great when Trestle Phone Intelligence Is Valid is true and Trestle Phone Intelligence Activity Score is greater than 80; Good when Is Valid is true and Activity Score is greater than 30; Bad when Is Valid is not true |
null |
Make it a global field to grade phones the same way in every flow, then route or price on calculated.phone_quality.
Example 2: Lead score from phone quality and answers
Turn each signal into points, then add them into one score out of 100. phone_points reads phone_quality from Example 1, so keep it below that field, in the same step or a later one. Some teams use two steps: one turns signals into points, and the next adds them up.
| Field (Number) | Rules, top to bottom | Fallback |
|---|---|---|
phone_points |
40 when calculated.phone_quality is equal to Great; 20 when it’s Good |
0 |
timeframe_points |
30 when Project Timeframe is equal to 0_30; 10 when it’s 30_60 |
0 |
readiness_points |
30 when Readiness is equal to ready_now; 10 when it’s researching |
0 |
intent_score |
One rule, no conditions: Math phone_points + timeframe_points + readiness_points |
0 |
Example 3: One rejection reason for every flow
Sources want to know exactly why a lead was rejected. Instead of repeating the same filter rules in every flow, keep the reasons in one global field and point one filter at it.
| Field (String) | Rules, top to bottom | Fallback |
|---|---|---|
rejection_reason |
Invalid phone when Trestle Phone Intelligence Is Valid is not true; Outside service area when State is not included in your service states |
null |
Below the step, add a filter that rejects when calculated.rejection_reason is not blank, and set the filter’s reason to {{calculated.rejection_reason}}. The source gets “Invalid phone” or “Outside service area” back, and a change to a reason in Settings applies to every flow.
Example 4: TrustedForm Insights points
| Field (Number) | Rules, top to bottom | Fallback |
|---|---|---|
input_points |
3 when TrustedForm Form Input Method includes typing and does not include autofill |
0 |
duration_points |
5 when TrustedForm Event Duration is greater than 30 | 0 |
Example 5: Intent tier from a score
| Field (String) | Rules, top to bottom | Fallback |
|---|---|---|
intent_tier |
high when intent_score is greater than 85; medium when it’s greater than 50 |
low |
The “greater than 85” rule must come before “greater than 50”. Map calculated.intent_tier to your CRM or dialer so agents call high leads first. Labels like good, better, best or red, yellow, green work the same way.
Example 6: A ratio with Math
| Field (Number) | Rules, top to bottom | Fallback |
|---|---|---|
loan_to_value |
When Loan Amount and Property Value are not blank: Math Loan Amount / Property Value × 100, rounded to 2 places |
null |
Example 7: Source payout as a share of revenue
| Field (Number) | Rules, top to bottom | Fallback |
|---|---|---|
source_payout |
When Source is equal to Partner A: Math Buyer Price × 0.6; when Source is equal to Partner B: Math Buyer Price × 0.5 |
null |
Building your own scoring model
ActiveProspect doesn’t supply the points or weights. They come from your own results. A simple way to start:
- Export 60 to 90 days of leads with their outcomes from your CRM, like sale, appointment, wrong number or out of area.
- Compare those outcomes with data you have before delivery: TrustedForm Insights, phone validation results, source, sub-source, time of day and answers like timeframe.
- Give more points to values that show up more often in good outcomes, and fewer to values that show up in bad ones.
- Build a separate score for each vertical or product if they behave differently, for example roofing and bath.
- Start by filtering only the lowest-scoring 10 to 20% of leads, watch the results, then adjust.
Expected Result:
Every lead that runs through the step carries the new values under calculated.<name>, ready for filters, routing, pricing and delivery in the steps below it.
Validation & Monitoring (optional)
Check a test lead:
- Save the flow, then click Test Flow or send a test lead.
- Open the lead’s events and click the Calculated fields event. It shows the outcome (always continue), the configured rules, Data Calculated during step (each field and its value) and Data available at start of this step (what the rules could read).
The Calculated fields event on a test lead. Data Calculated during step shows the value each field got.
Where to monitor?:
- The Calculated fields event on each lead, to see why a field got its value.
- Exports and reports, where calculated values are saved with the lead.
- Settings → Advanced Settings → Calculated Fields, for each global field’s type, flow usage and last update.
Best Practices
- Name fields the way your CRM or team says them, so mappings are easy to read.
- Use Number for anything you’ll add, compare or price, and String for labels like tiers.
- Give every score field a fallback of
0, so sums still work when a rule doesn’t match. - Put the most specific rules first, and test with a lead that should match each rule and one that should match none.
- Keep your standard scoring model in global fields, and keep flow-specific tweaks local.
- Use one step for most flows. Add a second Calculated fields step only to keep groups apart, like points in one step and the final score in the next.
Troubleshooting
| Symptom / Error | Likely Cause | Resolution |
|---|---|---|
| I don’t see Calculate fields in Add to Flow | Calculated fields isn’t turned on for your account yet | Click Request Access under Built-in steps. We’ll email you when it’s on. |
| A field got its fallback when I expected a rule to match | The lead data doesn’t match the conditions, or a Number rule’s value couldn’t be worked out | Compare the conditions with Data available at start of this step on the lead event. A field is often missing or spelled differently. |
A later step can’t find calculated.<name> |
That step is above the Calculated fields step | Move the Calculated fields step above it. |
| [field] isn’t available yet. Add it to the flow or move it above this field so these rules can run. | A rule uses a field that isn’t set before this point | Add the step that provides it above this step, or move the field it depends on higher in the list. |
| [field] is already in use. Try a different name. | Two calculated fields in the flow, local or global, have the same name | Rename one of them. |
| This calculated field is incomplete. Add the missing details below. | A name, a rule value or the fallback is empty | Fill in the highlighted inputs and save again. |
| Must have math expression | A Math helper was added with nothing inside it | Open the Math helper and enter the formula. |
| The following flows are missing fields this change needs… | You’re editing a global field, and some flows don’t have the data the new rules need | Fix those flows, or save anyway. They keep the previous rules until they’re updated. |
| Delete is disabled on a global field | The field is used in at least one flow | Detach it or remove it from those flows first. |
Frequently Asked Questions (FAQ)
Can a Calculated fields step reject a lead? No. The step only sets values, and the lead always continues. Use a filter or acceptance criteria after it to act on the result.
What’s the difference between a local and a global field? A local field lives in one flow’s step. A global field is defined once in Settings and reused in any flow, so changes apply everywhere it’s used.
What happens to my flows when I edit a global field? LeadConduit checks each flow that uses it before you save. If you save anyway, a flow missing a needed field keeps the previous rules until you fix it, so its leads keep running.
Can a rule add to a value set earlier? No. Rules set a value. To total points, use one field per signal and add them with Math.
Can I work out age from a date of birth, or the time between two dates? Not yet. There’s no built-in date difference. Ask your account team about your use case.
Can calculated fields bring in outside data? No. They work with data already on the lead. Add an enhancement or recipient step above to bring in outside data.
Does it cost anything? No. The step is free and doesn’t add to your lead costs.
Do calculated fields run on pings? No. They run when a lead is posted, in flow step order. Set ping pricing with your flow’s pricing options.
Can source acceptance criteria or volume caps use a calculated field? No. Those are checked before flow steps run. Use a filter below the Calculated fields step instead.
Does ActiveProspect provide a scoring model? No. You decide the rules and points. See Building your own scoring model above.
Can I use more than one Calculated fields step? Yes. For example, grade the phone right after phone validation, then build the final score after your TrustedForm step.
Glossary
| Term | Definition |
|---|---|
| Calculated fields step | A built-in flow step that holds one or more calculated fields and runs them top to bottom. It never stops a lead. |
| Calculated field | A new lead value with a name you choose and a type, Number or String. Its name becomes its field ID, so “Phone Quality” is saved as phone_quality. |
| Rule | “Set field to value when conditions are true.” The first rule that matches sets the value, and later rules are skipped. |
| Condition | A check on lead data, like Project Timeframe is equal to 0_30. With two or more, choose all or any. A rule with no conditions always matches. |
| Value | What the field is set to: text, a number, another field, or a formula built with Math, Format, Manipulate or Hash. |
| Fallback | The required value used when no rule matches. null leaves the field empty. |
calculated.<name> |
Where the result lives on the lead. Later steps, mappings, the lead event and exports read it from here. |
| Local field | A calculated field defined in one flow’s step and edited there. |
| Global field | A calculated field defined once in Settings and reused across flows. Read-only inside a flow. |
| Detach | Turns a global field in one flow into a local copy that no longer syncs. |
- image7.png40 KB
- image1.png200 KB
- image8.png30 KB
- image2.png80 KB
- image4.png200 KB
- image5.png30 KB
- image3.png60 KB
- image6.png100 KB
Comments
0 comments
Please sign in to leave a comment.