Build and Manage Document Intelligence Templates
A template tells TEDI how to read one vendor's (or customer's) layout and how to code it. You do not build templates from scratch: approving a document saves one. Use Templates to tune it so the next document from that sender needs less work. This page is for AP leads and controllers.
Where: Desk > Add to workspace > Document Intelligence > Templates, then open it from the rail.
Requires: The Robonauts subscription, with this PC paired to TEDI. See Document Intelligence workflow.
Team-wide auto-approve, the Vista entry default, and AP statement comparison are not here. Owners set them in Admin > Document Intelligence. See Team settings.

How templates are created and updated
When you approve a document on AP Invoices, AP Statements, AR Remittances, or MS Haul Payments:
- No template yet for this layout: TEDI saves one, named from the document. You see "Approved. Template saved for" and the name.
- A template exists and your boxes did not move: the template is left alone.
- A template exists and you moved or redrew boxes: clicking Approve opens Approve and update template? Click Approve and update to save the new fields and regions, or Approve, don't update for a one-off document. Both buttons approve the document; no second approval opens.
Approving a document also pins a sample PDF to the template. Until one is pinned, the template detail shows No sample PDF yet ("Approve an invoice to pin one.").
Find a template
| Control | What it does |
|---|---|
| Search box | Searches name, vendor, and family. |
| Family filter | AP Invoice, AR Remittance, AP Statement, or MS Haul Payment. Clear filter shows all. |
| Columns | Show, hide, reorder, or Reset columns. |
| Refresh | Reloads the list. |
List columns: Family, Name, Version, Defaults, Rules, Remembered, Force, Boxes, Vista entry, Updated.
If the list is empty, it reads "No templates yet" and "Approve a document on AP Invoices, AP Statements, AR Remittances or MS Haul Payments to pin a template."
Click a row to open the template. Use the icon buttons Previous record, Next record, and Jump to record to move between templates, and Back to the template list to return.
Template detail
The detail view has the template name (editable), its family, Save, and a More actions menu with Archive template and Delete template. The left side has tabs; the right side shows the sample PDF.
Every family has the same three tabs: Fields, Coding, and Settings. When a family has no coding, or lacks a setting, that tab says so instead of hiding it.
Click Save to keep your changes. You see "Template saved." If the layout saved but the coding did not, the message starts "Layout saved; coding was not saved:".

Fields: boxes on the sample PDF
Fields lists every field the template reads: "Select a field, then draw or move its box on the PDF. Colors match invoice review."
| Column | What it shows |
|---|---|
| Field | The field. Custom rows have a Custom key box. |
| Value | What TEDI reads inside the box on the sample PDF. |
| Box | A check when a box is set. |
| Force | Overwrite the extract with this box. Available once a box is drawn (otherwise the tooltip reads "Draw a box first"). |
| (actions) | Icon buttons: Clear removes the box; Remove removes a custom field. |
To place or fix a box:
- Click the field in the list.
- In the PDF toolbar, click Draw region and drag a box around the value. To adjust an existing box, drag it to move it or drag its handles to resize.
- TEDI reads the text in the new box and shows it under Value.
- Click Save.
Click Add field (icon) to add a custom field. Custom fields can drive coding rules (for example a salesperson printed on the invoice). If a custom field or rule field cannot be read on a later document, that document gets a review issue.
Coding (AP invoices)
The Coding tab controls how this vendor's lines get coded. The order TEDI applies on each invoice is shown at the top: Matching (PO/SL/Job), then Rules, then Remembered patterns, then Vendor defaults, then the clerk.
Rules
"Overrides defaults when this field matches. Does not change PO/SL lines. First match wins. Missing IF values go to review."
- Click Add rule.
- In If field, pick Salesperson (custom), Vendor, Vendor #, HQ Co, PO, Line description, Material, or one of your custom fields.
- Pick an Operator: equals, one of, is empty, or contains (contains only for Line description and Material).
- Enter the Value (for one of, Values (comma)).
- Choose the line type and destination the rule applies, or check Split to split the line across several destinations (see Splits).
- Use the switch next to Rule n to turn a rule on or off, and Remove to delete it.
Remembered patterns
"Saved from Remember this coding on an invoice. Only used if the line is still uncoded after matching and rules."
Each pattern (Pattern n) shows its Description words (type a word and press Enter to add one; click × to remove one), When it matches (Suggest or Accept), and the coding it applies. Click Add pattern to create one by hand, or Remove to delete one.
See Review and code an AP invoice for how patterns are saved from an invoice.
Vendor defaults
"Used when a line is still blank after matching, rules, and remembered patterns. Shared for this vendor across layout versions."
Do not import PDF line items: check this for bills whose detail rows are not charge lines (for example, time entries or usage detail). The helper text reads: "For bills whose detail rows are not charge lines (time entries, usage detail). The invoice total is coded from this vendor's coding instead." When checked, TEDI drops the PDF line rows before PO/job matching and coding, keeping only the header fields. See Review and code an AP invoice.
Pick the line type and destination, or check Split (see Splits). Use prior coding opens Prior codings, which lists this vendor's coding from approved invoices first, then from posted Vista history. Click one and Use this coding to copy it. Each split leg has its own Use prior coding button. A Percent split also works when the invoice has no lines (none on the PDF, or removed by the rule above): TEDI builds a single line from the invoice total (subtotal, else gross, else total) and splits it by the percentages.
Splits
When Split is checked on a rule or on vendor defaults, pick Split by: Percent or Dollar amount. New splits start at Percent, 50/50.
- Percent: enter a Percent for each leg. The footer shows the total (for example "90% of 100%"). The percentages must total 100%.
- Dollar amount: each leg gets a fixed Amount ($). The last leg shows Remainder (balance of the line). The helper text reads: "Each leg gets a fixed amount; the last leg gets whatever is left. If the fixed amounts are more than the line, it goes to review unsplit." The footer shows the fixed total plus remainder.
Click Add leg to add a leg, and Remove to delete one (when there are more than two). Code each leg's line type and destination.
TEDI applies the split when it reads an invoice. A split that cannot apply (a bad percent total, or fixed legs more than the line) leaves the line unsplit for you to code. See Template splits that TEDI could not apply.

Settings
Auto-approve (AP invoices)
The section shows the team policy, for example "Team policy is On · $5,000. Inherit unless this template should never auto-approve or use a different cap." In Auto-approve, pick:
- Inherit team policy
- Never auto-approve
- Override cap, then set Max amount (blank or 0 = unlimited).
Vista entry (AP invoices)
"Team default is Unapproved Invoice. Inherit unless this vendor should always use Unapproved Invoice or Transaction Entry." In Vista entry, pick Inherit team default, Unapproved Invoice, or Transaction Entry. An invoice can still be changed one at a time in its review.
Unit of measure (AP invoices)
"Same as Review: ignore invoice-vs-PO UM warnings for every PO from this vendor, or only for listed POs."
- Ignore UM for this vendor: every purchase order from this vendor.
- Ignore UM on these POs: type a PO number and press Enter to add it; click × to stop ignoring one.
These are the same settings as Ignore UM for this vendor and Ignore UM on this PO in the review issues dialog. The template needs a vendor name first ("Save a vendor name before storing this coding preference.").
Comparison scope (AP statements)
"Open AP matching uses this scope. Approve also writes it when promoting the template." In Comparison, pick Single HQ Co, Multiple HQ Co, or Vendor Group, then the companies or group. See Reconcile AP statements.
Archive or delete templates
- Archive: opens the Archive templates approval. Archived templates drop off the list. Existing invoices keep the layout they already used. Click Archive.
- Delete: opens the Delete templates permanently approval. This removes the template and its other versions. Existing invoices keep their layout; new invoices will not match it. Click Delete.
On the list, check several templates and use Archive (n) or Delete (n), or use the icon buttons in each row's Actions cell (Archive template, Delete template).
Common mistakes
- Expecting Team settings here. They moved to Admin > Document Intelligence.
- A percent split that does not total 100%. TEDI leaves the line unsplit. Check the footer before you save.
- Saving a UM preference without a vendor name. Save the vendor name first.