Sales POP - Purveyors of Propserity
How Do You Get AI to Fill In CRM Fields From a Document?
Blog / Coevera / Nov 25, 2026 / Posted by Coevera

How Do You Get AI to Fill In CRM Fields From a Document?

To get AI to fill in CRM fields from a document reliably, let one AI field read the document and let the fields that take out values read that field’s result. In Coevera (formerly Pipeliner CRM), one AI Smart Field reads the attached PDFs and writes a structured worksheet in JSON format into a long text field. Each reader field reads only that worksheet and takes out one value. Twenty values then cost one document read plus twenty text reads, and every value comes from the same reading. In the build the blueprint documents, 6 of 22 AI fields carry the result, including the margin percentage.

The blueprint calls this pattern “recognize once, read many”.

Why does the margin field end up as a guess?

The blueprint starts with a reseller. Each deal has two PDFs: the supplier’s quote (the cost) and the company’s own quote to the customer (the selling price). The margin is the difference.

Nobody worked it out at deal time. The margin field held a default percentage, and the real number appeared weeks later at invoicing. Every pipeline report and forecast, and every commission projection in between, was built on a guess. The business wanted the real cost and margin from the documents as soon as the quotes were attached, with no new data entry for the sales team.

The documents also rarely match. A supplier framework quote can cover far more than the deal sells, so comparing document totals gives a badly wrong margin. The correct comparison scales by the quantity actually sold.

Why not give every field its own AI prompt?

The first idea is twenty AI fields, each pointed at the documents. The blueprint shows four problems:

  • It is slow. A document read took about 23 seconds for a two-document set, against about 11 seconds for a text-only read. Twenty fields repeat the slowest step twenty times.
  • The numbers disagree. Each field calculates on its own, so the cost of sale and the margin may not match, and you cannot tell which one is wrong.
  • There is no fixed order. Fields started from the Update Fields button run in no defined order, so a field that depends on another may work in the first test and fail later.
  • A field cannot see what another field just wrote. An automation process reads a copy of the record taken when the process starts. An AI field in the same process reads the old value, and no error appears.

How do you set up AI to fill in CRM fields?

The setup has three kinds of fields:

  • One worksheet field. A long text field with the documents turned on as a data source. Its prompt asks for one JSON object and nothing else.
  • Reader fields. One for each value you need in a real field, with documents turned off. Each one reads the worksheet and takes out one value. For example, a cost of sale reader points at the path totals.cost_of_sale in the JSON.
  • Formula fields. They do the arithmetic. They are always up to date, unlike a third AI field doing sums.

The rule: a field reads either the documents or the worksheet, never both. A reader with document access left on calculates the values again from the source and can contradict the worksheet.

Because a process reads an old copy of the record, each step where one AI field depends on another needs its own process, started when the AI field has finished writing. The blueprint’s build runs twelve processes for this reason.

What it looked like in the blueprint’s build

  • A status field acts as a gate. The business wanted a clear signal when the documents cannot give a reliable answer, not a confident wrong number. The status field decides if the document set is usable before other AI calls are spent on it.
  • A second check calculates the same figure in a different way. A cross-check field reads the documents directly, and the difference between the two results is shown on the record.
  • A platform change fixed the locking problem. AI Smart Fields first ran synchronously and blocked the database for two to five minutes per pass, so the build was held back from production. Since the asynchronous release, the chain takes about three and a half minutes instead of two to three, without blocking anyone, and gives the same figures.

How many AI fields do you need?

It depends on how much detail people need on the record. In the blueprint’s build, 6 of 22 AI fields carry the result: the status, two money totals, the margin percentage, a confidence rating and a list of flags. The other 16 add detail for people who read the record. Removing them roughly halves the run time, but you lose that detail on the record.

Which field types can an AI field write to?

Currency, email, float, integer, single-line text, phone, text area and URL. It cannot write to date, dropdown, checkbox or lookup fields. Store a date as text. For a value from a fixed list, use a text field and let the prompt limit the answer to a fixed list of codes.

Why does an AI field report success but write nothing?

Most ways this setup fails look like success. There are two common causes:

  • The field it reads is not on the edit form. An AI field can only read fields placed on the record’s edit form. Otherwise it writes nothing, with no error.
  • The AI credits ran out. The step reports success with zero fields updated, usually at the end of a chain.

If other AI steps in the same run wrote values, check the form. If the failures are at the end of a chain, check the credits. Read the run log after every run. A step that should write twelve fields must report twelve.

When does this approach fall short?

  • The prompt editor removes text in angle brackets. In the blueprint’s build, one edit in the editor destroyed 23 of 26 placeholders in a prompt. Use literal examples such as "", 0, [] and null, and keep a copy of each prompt outside the CRM.
  • Document limits are not published. Test file type, size and volume with your own documents.

Key takeaways

  • Let one AI field read the documents and write a JSON worksheet.
  • Turn documents off on every reader field.
  • Use formula fields for the arithmetic.
  • Put each AI-to-AI step in its own process.
  • Place every field that an AI field reads on the edit form.
  • Check the field count in the run log, not the success message.

The full field setup, process chain and verification checklist are in the Coevera Blueprint How do you get AI to read a document and fill in CRM fields reliably?

FIGURES STUCK IN YOUR PDFs?

Talk it through with us

If the numbers your pipeline needs are in quotes and other documents, we can walk through how one reading AI field and a set of reader fields fit your documents.

Talk to the Coevera Team →

    About Author

    The content team at Coevera Sales applies their expertise in many areas of sales. We continue to provide tools, helpful articles and graphical aids to always help you sell better and smarter.