Forward Deployed Engineer

The same extraction model writes 933 wrong claim records a day when it ships as built, and 66 when an engineer fits it to the customer's data. A forward deployed engineer does that fitting, inside the customer's systems.

Pick a deployment and watch where 2,000 claim documents go each day. Then we build each skill, piece by piece: scoping, data, evals, budgets, sizing, rollout, debugging and the value case.

You need some Python and a rough idea of what a language model is (text in, text out, priced per token). We build the rest from zero.

A Day in the Life guide. The insurer, its documents and every rate on this page are made up. The arithmetic is exact. Sibling guide: Applied AI Engineer.

Ship one model three ways

Illustrative: 2,000 documents a working day. Usable records: 61% before the data fixes, 92% after (Chapter 2). Accuracy: 92.8% on the vendor test mix, 87.3% on the customer's mix (Chapter 3). The fitted deployment sends scans and unusable records to a person.

Chapter 0

What the Role Builds

Follow one customer deployment from the first meeting to the handoff, and see where the weeks go

An insurer gets 40,000 claim documents a month. Staff read each one and type 12 fields into the claims system. Your company sells a model that can read documents. The demo on your own test files scored 93%. Now it must work inside the insurer's network, on the insurer's documents.

A forward deployed engineer (FDE) is a software engineer who works inside one customer's environment and ships a working system there, built on the company's product. The code runs on the customer's servers, reads the customer's data and answers to the customer's metric.

Plan one engagement

Each bar is a phase of the work, in weeks. Change the customer's environment and watch which phases grow.

Illustrative phase lengths for one mid-sized engagement. Real plans vary by customer.

Access and deployment grow with the environment. The model work does not. In an air-gapped site, nothing downloads at run time, so every file ships in a checked bundle (Chapter 5).

Three roles, side by side

RoleBuilds forCode runs inDone when
Product engineerAll customersThe productThe feature ships
Solutions engineerA sales demoA demo accountThe customer signs
Forward deployed engineerOne customerThe customer's systemsThe customer's metric moves

Companies describe the job in their own postings. Palantir says its FDSEs "work directly with customers to quickly understand their greatest problems" (posting). OpenAI's team owns delivery "from first prototype to stable production" (posting). Anthropic's FDEs build "MCP servers, sub-agents, and agent skills" in customer workflows (posting).

Failure: the pilot impresses everyone, then never reaches production. Measure: track how many pilots have real users 90 days later. Fix: agree on one production metric in week one, and plan the work back from it (Chapter 1).

The road

  1. Scope the problem in numbers: what the work is worth each month.
  2. Map the customer's data: why small gaps per field add up.
  3. Evaluate on their documents: the mix decides the score.
  4. Budget latency and cost: seconds and dollars per document.
  5. Fit their environment: Little's law sizes the service.
  6. Roll out in steps: limit the damage of a bad release.
  7. Debug through a mail slot: find a leak without a shell.
  8. Prove the value, then hand off: payback, honesty and a runbook.
  9. Field guide: numbers, checklist, code and links.
The same document model goes to a cloud customer and to an air-gapped one. Which phase grows most for the air-gapped site?

Chapter 1

Scope the Problem in Numbers

Turn "we need AI for claims" into a monthly value that everyone can check

The insurer's head of claims says, "We need AI for claims." That is a solution, not a problem. Your first job in discovery, the meetings where you learn the real problem, is to turn that sentence into numbers.

Ask five questions, in this order:

  1. What happens if we do nothing? Get a cost, not an adjective.
  2. Show me the work today, step by step. Find the manual steps.
  3. Where does the data live, in what format, and how fresh is it?
  4. Which number tells us it worked? "Accuracy" is not enough; name the count.
  5. What limits us? Compliance, network, hardware, deadline, who must approve.

Here the answers give four quantities. Call the documents a month N. Call the minutes of typing per document m. Call the share of documents the system can handle with no person a, the automation share. Call the cost of one staff hour w.

Say it aloud

V equals N times a times m, divided by sixty, times w.

V
V the value of the work each month, in dollars.
N
N claim documents a month.
a
a the automation share: documents done with no person, from 0 to 1.
m
m minutes of typing per document today.
60
sixty turns minutes into hours.
w
w the cost of one staff hour, in dollars.
In plain words

Count the documents N that no person touches: N times a. Multiply by the minutes m each one took, and divide by 60 for hours. Multiply the hours by w.

With numbers

With made-up numbers: N = 40,000, a = 0.70, m = 6, w = $45. V = 40,000 × 0.70 × 6 / 60 × 45 = $126,000 a month. That is 2,800 staff hours freed.

Fill in the scoping sheet

The big bar is all the typing today. The shaded part is what the system takes off people. Move the sliders.

40,000
6
70%
$45

Illustrative inputs. The automation share is a scoping guess here; Chapters 2 and 3 measure it.

Write V, the metric and the limits on one page, and get it signed. That page is the scope. When a new request arrives in week four, point to the page: "We can add it. It moves the date by two weeks. Which item drops?"

Failure: twelve "small" requests double the project. Measure: keep a list of every request with its estimate in days. Fix: any request outside the signed page gets a cost and a trade before work starts.

10,000 documents a month take 9 minutes each. The system handles half of them alone. A staff hour costs $40. What is V?

Chapter 2

Map the Customer's Data

Multiply the fill rate of each required field and see why most records fail

The sample the insurer emailed was a clean spreadsheet. The live feed is different. Dates come in three formats. Some addresses are blank. The vehicle number is missing on every home claim, because homes have no vehicle.

Your system needs 8 fields from each record. A record is usable only if every required field is present and parses. Call the share of records where field i is good its fill rate, fi. With k required fields, the usable share u is a product.

Say it aloud

u equals f-one times f-two, and so on, times f-k.

u
u the usable share: records with every required field good, from 0 to 1.
f1
f-one the fill rate of the first field: the share of records where it is present and parses.
f2
f-two the fill rate of the second field.
fk
f-k the fill rate of the last required field; k is how many fields are required, here 8.
In plain words

Start with all records. Keep the share f-one that has field one. Of those, keep the share f-two that has field two. Repeat for every field up to f-k. What is left is u. This assumes the gaps fall on different records.

With numbers

With made-up fill rates 1.00, 0.99, 0.81, 0.97, 0.99, 0.92, 0.88 and 0.98: u = 0.611. Every field looks fine alone, but 39% of records fail.

Fix the fields, one by one

Each step down is one field. The line is the share of records still usable after that field. Switch the fixes on.

Illustrative fill rates measured on a made-up week of 10,000 records. The product rule assumes gaps fall on different records; measure u directly too.

The fixes go in an adapter: a layer that maps the customer's names and formats to yours, from a config file. The model never sees raw records. Next to it sits a schema contract: the list of columns and types you expect. Check it on every batch.

pythonCONTRACT = {"clm_no": str, "pol_no": str, "loss_dt": str, "amt": float}
DATE_FORMATS = ["%Y-%m-%d", "%m/%d/%y", "%d.%m.%Y"]   # all three seen in the feed

def check_batch(columns):
    missing = set(CONTRACT) - set(columns)
    extra = set(columns) - set(CONTRACT)
    if missing: raise RuntimeError(f"stop: columns gone {missing}")
    if extra: warn(f"new columns {extra}: check them")

Failure: the customer renames a column, and your extractor fills that field with blanks for two weeks. Measure: log the fill rate of every field per day. Fix: stop the batch when a contract column disappears, and alert when a fill rate drops 5 points.

Ten required fields each have a 95% fill rate, with gaps on different records. About what share of records is usable?

Chapter 3

Evaluate on the Customer's Documents

Weight each document type by its share of real traffic and watch the score move

Your test set scored 92.8%. It was 70% typed PDFs, the easy kind. The insurer's mailroom scans paper forms, and 35% of its documents are scans. On scans the model gets all 12 fields right only 74% of the time.

So split the documents into segments: groups that behave differently, here typed PDF, email and scan. Call the share of traffic in segment g sg. Call the model's accuracy on that segment ag: the share of documents with every field right. The overall accuracy A is a weighted average.

Say it aloud

A equals the sum over g of s-g times a-g.

A
A the overall accuracy on a given mix of documents, from 0 to 1.
Σg
the sum over g add one term for each segment: typed, email and scan.
sg
s-g the share of documents in segment g. The shares add up to 1.
ag
a-g the accuracy on segment g alone.
In plain words

For each segment g, multiply its share s-g by its accuracy a-g. Add the results. The same model gets a different A on a different mix.

With numbers

With made-up accuracies 0.96 typed, 0.91 email and 0.74 scan. Test mix 70, 20, 10: A = 0.672 + 0.182 + 0.074 = 0.928. Customer mix 45, 20, 35: A = 0.432 + 0.182 + 0.259 = 0.873. Same model, 5.5 points lower.

Change the mix, keep the model

Each column is a segment. Its width is its share of traffic and its height is its accuracy. Drag the share of scans.

35%

Illustrative accuracies. Email stays at 20% of traffic; typed PDFs take the rest.

Build the eval set from last month's real documents. Sample each segment, and have the insurer's own staff write the correct fields. With 300 documents at 87.3%, the 95% band is about plus or minus 3.8 points. The 105 scans in that set give a band of plus or minus 8.4 points on the scan score alone.

Failure: overall accuracy holds, but complaints come from one branch office. Measure: report accuracy per segment and per office, each with its sample size. Fix: route the weak segment to a person, or improve that segment's input, then measure again.

A model scores 0.95 on email and 0.70 on scans. Traffic is 60% email, 40% scans. What is the overall accuracy?

Chapter 4

Budget Latency and Cost

Add up the seconds and the dollars of one document, and check both against the limits

An adjuster opens a claim and wants the fields on screen within 8 seconds. Finance wants the bill per document. OCR, optical character recognition, turns a scanned image into text. Every document passes the same stages: fetch it, run OCR on scans, call the model, check the output, write to the claims system.

The provider charges per token, a piece of a word. Call the tokens sent in Tin and their price per million pin. Call the tokens written back Tout and their price per million pout.

Say it aloud

c equals T-in times p-in, plus T-out times p-out, all divided by one million.

c
c the model cost of one document, in dollars.
Tin
T-in tokens sent in: the instructions plus the document text.
pin
p-in dollars per million input tokens.
Tout
T-out tokens the model writes: the 12 fields as JSON.
pout
p-out dollars per million output tokens, usually several times p-in.
1,000,000
one million turns a price per million tokens into a price per token.
In plain words

Multiply the tokens in, T-in, by their price p-in. Multiply the tokens out, T-out, by their price p-out. Add the two and divide by one million.

With numbers

With made-up prices for a large model: T-in 3,000, p-in $3, T-out 400, p-out $15. c = (9,000 + 6,000) / 1,000,000 = $0.015. At 40,000 documents that is $600 a month.

Spend the 8 seconds

The bar is one document, stage by stage. The dashed line is the budget. Change the document, the model or the output length.

400

Illustrative: fetch 150 ms, OCR 1,200 ms, check 20 ms, write 200 ms. Large model: first token 400 ms, 80 tokens a second, $3 and $15 per million. Small: 200 ms, 160 a second, $0.25 and $1.25.

A scan with the large model takes 6.97 s: 150 + 1,200 + 400 + 5,000 + 20 + 200 ms. Writing 400 tokens at 80 a second is 5 of those seconds. Shorter JSON cuts time more than any other knob. Here cost is small next to the $126,000 of value; time is the tight budget.

Failure: the median is 5 s, but adjusters complain. Measure: the 95th percentile per segment: the time 95% of documents beat. Scans sit near the limit. Fix: process documents when they arrive, before anyone opens the claim, so the wait leaves the adjuster's screen.

A model writes 80 tokens a second. You cut the JSON from 400 to 200 tokens. How much time does each document save?

Chapter 5

Fit the Customer's Environment

Size the service with Little's law and fit it inside the customer's quota

Your service runs on the insurer's machines, under the insurer's rules. Where it runs changes how you ship it.

EnvironmentWhat it isWhat changes for you
Cloud VPCThe customer's private network in a public cloudPull images from their registry; use their managed database
On-premisesThe customer's own data centrePackage every dependency; their hardware, their change windows
Air-gappedNo network link to the outside at allShip model weights inside the image, as a checksummed bundle; no remote logs

Now size it. Monday at 9:00 the mailroom scans the weekend's post: 1.5 documents arrive each second. Call that arrival rate λ, lambda. Call the time one document spends in the service W. Then the number of documents inside the service at once, L, follows from Little's law.

Say it aloud

L equals lambda times W.

L
L documents in the service at the same moment, on average.
λ
lambda the arrival rate, in documents per second.
W
W the time one document spends inside, in seconds.
In plain words

Multiply how fast documents arrive, lambda, by how long each one stays, W. That is how many are inside at once, L. It holds for any steady system, whatever the order of service.

With numbers

With made-up numbers: lambda = 1.5 per second and W = 7 s. L = 1.5 × 7 = 10.5 documents in flight. If each replica, one running copy of the service, holds 2 at once, you need 6 replicas.

Size the service

Each box is one replica with two slots. Dots are documents in flight. Boxes past the customer's quota of 8 turn red. Move the sliders.

1.5
7 s

Illustrative: each replica holds 2 documents, because each needs about 600 MB under a 2 GB pod limit. The quota is 8 replicas.

Scans take about 10 s, so L = 15 and you need 8 replicas: the whole quota, with no room for a spike. Keep about 40% spare. Here that means asking for 12 replicas, or processing scans from a queue at a steady rate.

Failure: pods restart every few minutes at the customer site, never on your cluster. Measure: the restart reason says "OOMKilled", out of memory. Your nodes had 64 GB; their pod limit is 2 GB. Fix: ask for quotas in discovery, and test under the same limits.

Documents arrive at 2 per second and each takes 4 s. Each replica holds 2 at once. How many replicas do you need before spare capacity?

Chapter 6

Roll Out in Steps

Send a new version to a small share first, and count the bad records a mistake can write

Version 2 of your prompt passed the eval. It can still be worse in production: a form type the eval missed, a field that now parses wrong. You do not switch everyone at once. You roll out in stages.

  1. Shadow: version 2 runs beside staff and writes nothing. Compare its fields with theirs.
  2. Canary: version 2 writes for 5% of documents. The rest stay on version 1.
  3. Ramp: 25%, then 100%, each after a clean day.
  4. Rollback: one tested command returns everyone to version 1 in under 5 minutes.

How much damage can a bad version do before you catch it? Call the documents a day r. Call the share sent to the new version s. Call the days until you notice t. Call the extra error rate of the bad version Δe, delta-e. The bad records written are the blast radius, B.

Say it aloud

B equals r times s times t times delta-e.

B
B the blast radius: extra wrong records written before rollback.
r
r documents a day.
s
s the share of documents on the new version, from 0 to 1.
t
t days from release to rollback.
Δe
delta-e how much higher the new version's error rate is than the old one's.
In plain words

Count the documents the new version touches: r times s, every day, for t days. Multiply by the extra share it gets wrong, delta-e. That is B.

With numbers

With made-up numbers: r = 2,000, s = 0.05, t = 2, delta-e = 0.10. B = 2,000 × 0.05 × 2 × 0.10 = 20 bad records. At s = 1, the same mistake writes 400.

Release a bad version

Each bar is one stage. Its height is the bad records written before you roll back. Pick a stage and change how long detection takes.

2 days
10 pts

Illustrative: 2,000 documents a working day.

Both levers shrink B. A small s limits how many documents a bad version touches. A short t needs a check you run daily: compare a sample of canary fields with staff corrections.

Failure: rollback fails because version 2 dropped a database column that version 1 reads. Measure: run the rollback in staging before every release. Fix: add columns first, remove old ones only after the release has settled.

A bad version reaches 25% of 2,000 documents a day, gets 8 extra points wrong, and you notice after 3 days. What is B?

Chapter 7

Debug Through a Mail Slot

Find a connection leak with exported numbers, one targeted question at a time

It is 2:00 at night. The alert says writes to the claims system take 30 s at the 99th percentile. The median is still 0.2 s. You cannot log in to their servers. You have exported metrics and an engineer on a call.

  1. Times, not stories. "When did it start? What changed then?"
  2. Exact requests. Send the command to paste, not "send logs".
  3. Three guesses, ordered by how likely and how cheap to test.
  4. One test per guess. Each answer rules one guess in or out.
  5. Fix, then stay on the call until the metric recovers.

The first guess is the connection pool: a fixed set of 20 database connections that writes borrow and return. Little's law from Chapter 5 says how many are busy. Writes arrive at 1.5 a second and hold a connection 0.2 s, so L = 1.5 × 0.2 = 0.3 busy. The pool should never run out.

Watch the pool drain

The purple line is connections in use; the top is the pool of 20. Raise the share of writes that fail, then switch the fix on.

1%

Illustrative: 1.5 writes a second, 0.2 s per write, a pool of 20, a 30 s wait timeout. Each failed write keeps its connection forever.

The pasted query shows 20 connections held and none idle. The deploy log shows a release at 1:38. In it, an error path returns early and skips handing the connection back. Each failed write keeps one connection forever.

time to empty = 20 connections / (1.5 writes a second × 0.01 failures per write) = 1,333 s, about 22 minutes

After that, every write waits for the 30 s timeout. The median stayed low until then because most writes still found a free connection.

pythonconn = pool.getconn()
try:
    if doc.amount < 0:
        raise ValueError("negative amount")
    conn.execute(INSERT_SQL, doc.fields)
finally:
    pool.putconn(conn)          # runs on every path, so nothing leaks

Failure: the call turns into blame. Measure: lay out a timeline of the release, the pool count and the latency. Fix: show the timeline and propose two fixes: theirs in the code, yours as an alert when the pool passes 80%.

A pool has 30 connections. Writes arrive at 3 a second and 0.5% leak a connection. About how long until the pool is empty?

Chapter 8

Prove the Value, Then Hand Off

Compute the payback from measured numbers, and leave a system the customer can run

The insurer's finance team asks one question: when does this pay for itself? Answer with measured numbers, not the scoping guess. The fitted deployment from the hero handles 59.7% of documents with no person, not the 70% you hoped for in Chapter 1.

Call the one-time cost of the project C0: licence, integration and setup. Call the monthly value V, from Chapter 1 with the measured automation share. Call the monthly running cost R: model calls, hosting and support. The payback period P is the months until the savings cover C-zero.

Say it aloud

P equals C-zero divided by V minus R.

P
P the payback period, in months.
C0
C-zero the one-time cost, in dollars.
V
V the value freed each month, in dollars.
R
R the running cost each month, in dollars.
In plain words

Subtract the running cost R from the monthly value V. That is the net gain each month. Divide the one-time cost C-zero by it.

With numbers

With made-up costs: V = 40,000 × 0.597 × 6 / 60 × 45 = $107,460, R = $4,000, C-zero = $400,000. P = 400,000 / 103,460 = 3.9 months.

Find the payback month

The line starts at minus the one-time cost and climbs by the net gain each month. Where it crosses zero is the payback.

59.7%
$400,000

Illustrative: 40,000 documents, 6 minutes each, $45 a staff hour, R = $4,000 a month.

If the checks had to send 60% of documents to staff, the automation share would be 40% and P would grow to 5.9 months. Show finance that range, and show the demo the same way: their documents, plus one case the system routes to a person.

Then hand off. The customer's team runs the system after you leave, so leave them:

Last, write up what broke for your product team. A fix you made by hand for one customer becomes a feature for every customer.

Failure: a sales lead promises live processing in three weeks; the pipeline needs eight. Measure: estimate each phase from Chapter 0's plan. Fix: offer a phased plan: batch results in three weeks, live in eight.

A project costs $300,000 once. It frees $80,000 a month and costs $5,000 a month to run. What is the payback period?

Chapter 9

Field Guide

Keep the terms, the numbers, the checklist and the code in one place

A forward deployed engineer turns one customer's problem into a running system on the customer's data and machines. Each skill on this page is one number you can compute and one failure you can catch.

Terms and numbers

TermWhat it isWorked number here
Monthly valueN × a × m / 60 × w$126,000 scoped, $107,460 measured
Usable shareThe product of the required fields' fill rates0.611 raw, 0.918 after three fixes
Mix accuracyThe sum of segment share times segment accuracy0.928 test mix, 0.873 customer mix
Cost per document(T-in × p-in + T-out × p-out) / 1,000,000$0.015, or $600 a month
Little's lawIn flight = arrival rate × time inside1.5 × 7 = 10.5, so 6 replicas
Blast radiusr × s × t × delta-e20 bad records at 5%, 400 at 100%
Time to empty a poolPool size / (rate × leak share)20 / (1.5 × 0.01) = 22 minutes
Payback periodC-zero / (V − R)3.9 months

Checklist before production

The core as code

pythonfrom math import prod, ceil

def monthly_value(n, a, minutes, wage):  return n * a * minutes / 60 * wage
def usable_share(fill_rates):           return prod(fill_rates)
def mix_accuracy(share, acc):           return sum(share[g] * acc[g] for g in share)
def doc_cost(t_in, t_out, p_in, p_out):   return (t_in * p_in + t_out * p_out) / 1e6
def replicas(rate, secs, per_replica): return ceil(rate * secs / per_replica)   # Little's law
def blast_radius(r, s, t, de):          return r * s * t * de
def payback(c0, v, run):                 return c0 / (v - run)

acc = {"typed": .96, "email": .91, "scan": .74}
print(mix_accuracy({"typed": .45, "email": .20, "scan": .35}, acc))   # 0.873
print(replicas(1.5, 7, 2))                                          # 6
print(payback(400_000, monthly_value(40_000, .597, 6, 45), 4_000))  # 3.87

Keep going

How companies describe the role

The takeaway. The model is the same at every customer. The data, the mix, the machines and the rollout are not. Measure each one at the customer site before you promise a number.

Now press Present or Teach and explain from memory: the value formula, why fill rates multiply, why the mix moves the score, Little's law and the blast radius. Then go back to the hero and say which chapter's fix moved each count.

Forward Deployed Engineer: Scoping, Data Integration, Evals and Rollout
Applied AI Engineer · Evaluation Statistics · Back to Gleams