---
title: Processing a case
description: Reading a conversation end to end — documents, line items, parameters, products.
sidebar:
  label: Processing
  order: 4
---

## What this process achieves

An enquiry is read: documents converted, line items identified, parameters
extracted and checked against what the client wrote. The result is what the
quotation is built from, with a product suggested for each line.

## Who is involved

- **The system** — the run.
- **Developer** — can process an email again from Mail Debug. Mail Debug's header
  says **All green** only when no email has failed ingestion and no queue job has
  failed in the last 24 hours (older failures stay in the queue monitor but no longer count); failed queue jobs show amber, failed ingestion red. An email waiting in
  Needs Review shows the reason it was sent there beside its type. **Failed jobs**
  lists the newest 100 failed jobs, each with its reason, its email and a link to
  it in the inbox, and **Process again**. A failed job is kept for up to 7 days; at high failure volume the oldest go sooner. The link to the
  queue monitor (Bull-Board) appears only where the environment has one set up.
- **Sales person / Office Head** — review the lines, flags and failures.

## What starts it

An email read as an enquiry whose reading confirms at least one catalogue
category, once it is linked to an enquiry that has no requirements yet, while
requirement gathering is switched on and covers the mailboxes it reached. A
Developer can also process an email again. The conditions are on
[Requirement gathering](/business/workflows/requirement-gathering#when-gathering-starts).
Later mail on the enquiry does not start it; it is read for what it changes
(see [Linking mail after a quotation](/business/workflows/linking-mail-after-a-quotation)).

## The steps

1. **The documents are read first**, and the categories asked for are
   confirmed from the email and an excerpt of each document
   ([Reading documents](/business/workflows/reading-documents)).
2. **The sources are structured.** The email and its attachments are laid out
   as the client wrote them: the requested items, their labels, the
   requirements shared by several items and the general information.
3. **Lines are extracted** for each confirmed category that holds a requested
   item, one line per instrument, with each parameter's origin and the
   passage that supports it. A category with no requested item is left out.
4. **Values are put in standard form.** Worded figures become numbers, units
   are converted to the catalogue's, and each line's fluid is matched to the
   fluid library.
5. **Each value is checked against its source**, and menu values are matched
   to the catalogue's options.
6. **Lines are saved awaiting review**, none confirmed as it is saved (R71).
   Products are suggested for each line afterwards; a line nothing could be
   suggested for still appears, with a reason.
7. **The email is processed**, or sent to Needs Review at the step it failed
   at. A failure that would repeat is not tried again.

Processing an email again replaces the enquiry's current requirements (R13);
gathering that starts by itself never does. A rate, discount, quantity or skip
typed on a quotation is withheld when its line is then gone or offers another
item code (R36).

## Rules that apply

R11, R13, R14, R16–R22, R23–R33, R64–R79, R81–R84, R88, R99, R100, R125.

Related: [Enquiry to quotation](/business/workflows/enquiry-to-quotation) ·
[Product suggestion](/business/features/product-suggestion).
