> For the complete documentation index, see [llms.txt](https://docs.ai.insly.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ai.insly.com/nora/configuration-guide/writing-ai-hints.md).

# Writing AI hints

## What it is

Every field in a template can take an optional **AI hint**: a short instruction the AI reads when it extracts that field. Use it to tell the AI how to map what the broker sent to the field, when the field title alone is not enough.

Many fields need no hint. The template structure and field titles are often descriptive enough (e.g. **Applicant > First name**). Add a hint where testing shows the AI getting a field wrong, or where you already know the source is ambiguous.

## What makes a good hint

* **Short and direct.** One or two sentences about this one field.
* **Examples.** Show the input and the expected result: `"AB12 CDE" → "AB12CDE"`. Examples work better than descriptions.
* **Say what to do when the answer is missing.** Leave it empty, or derive it from somewhere else. Without that, the AI may guess.
* **Name the trap.** If there is a similar value it tends to pick instead, say which one not to use.

## Examples by type

### Format / normalise

* **Registration number:** Return it with all spaces removed. Keep every other character exactly as written. Examples: "AB12 CDE" → "AB12CDE"; "A123 BCD" → "A123BCD".
* **Date of birth:** In YYYY-MM-DD. Examples: "16/11/1963" → "1963-11-16"; "2 January 2002" → "2002-01-02".
* **UK phone number:** Keep the leading 0 (e.g. 07123 456789), never drop it.

### Infer / derive

* **Applicant > Country of residence:** If this is not stated in the source document, infer it from the correspondence address.
* **Gross vehicle weight in tonnes:** The source column is in kg, so divide by 1000. Example: 3500 → 3.5.

### Locate: where in the document to look

* **Number of seats:** Found under "Number of seats" / "Seating capacity", usually in the vehicle's Additional Details section. Extract only when stated; do not infer it from body type.

### Default / when to leave empty

* **Modified?:** Answer "Yes" or "No" only if the document has a modifications question and answers it. If modifications aren't mentioned, leave it empty. Do NOT default to "No".

### Disambiguate: don't confuse with a similar value

* **Policy start date:** When the NEW quoted cover begins. A broker's "Renewal date 15/03/27" is the START of the new cover. Never use the email date, document date or the previous policy's expiry.

### Split one source value into two fields

* **Model:** The base model name only. Everything after it goes in Trim. Examples: "DEFENDER 110 HSE HARD TOP D250" → model "DEFENDER 110", trim "HSE HARD TOP D250"; "FABIA 2" → model "FABIA", trim "2". Never repeat words across model and trim.

## Check the result

After adding or changing a hint, rerun a sample submission that had the problem and check the field. See [Sample submissions and golden records](https://docs.ai.insly.com/nora/onboarding/sample-submissions-and-golden-records.md).
