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.
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
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.
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).
| Role | Builds for | Code runs in | Done when |
|---|---|---|---|
| Product engineer | All customers | The product | The feature ships |
| Solutions engineer | A sales demo | A demo account | The customer signs |
| Forward deployed engineer | One customer | The customer's systems | The 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).
Chapter 1
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:
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.
V equals N times a times m, divided by sixty, times w.
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 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.
The big bar is all the typing today. The shaded part is what the system takes off people. Move the sliders.
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.
Chapter 2
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.
u equals f-one times f-two, and so on, times f-k.
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 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.
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.
Chapter 3
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.
A equals the sum over g of s-g times a-g.
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 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.
Each column is a segment. Its width is its share of traffic and its height is its accuracy. Drag the share of scans.
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.
Chapter 4
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.
c equals T-in times p-in, plus T-out times p-out, all divided by one million.
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 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.
The bar is one document, stage by stage. The dashed line is the budget. Change the document, the model or the output length.
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.
Chapter 5
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.
| Environment | What it is | What changes for you |
|---|---|---|
| Cloud VPC | The customer's private network in a public cloud | Pull images from their registry; use their managed database |
| On-premises | The customer's own data centre | Package every dependency; their hardware, their change windows |
| Air-gapped | No network link to the outside at all | Ship 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.
L equals lambda times W.
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 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.
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.
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.
Chapter 6
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.
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.
B equals r times s times t times delta-e.
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 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.
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.
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.
Chapter 7
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.
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.
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.
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%.
Chapter 8
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.
P equals C-zero divided by V minus R.
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 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.
The line starts at minus the one-time cost and climbs by the net gain each month. Where it crosses zero is the payback.
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.
Chapter 9
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.
| Term | What it is | Worked number here |
|---|---|---|
| Monthly value | N × a × m / 60 × w | $126,000 scoped, $107,460 measured |
| Usable share | The product of the required fields' fill rates | 0.611 raw, 0.918 after three fixes |
| Mix accuracy | The sum of segment share times segment accuracy | 0.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 law | In flight = arrival rate × time inside | 1.5 × 7 = 10.5, so 6 replicas |
| Blast radius | r × s × t × delta-e | 20 bad records at 5%, 400 at 100% |
| Time to empty a pool | Pool size / (rate × leak share) | 20 / (1.5 × 0.01) = 22 minutes |
| Payback period | C-zero / (V − R) | 3.9 months |
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
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.