Get started
Document processor
How Doctor Bank reads your PDF and writes your answers back into it.
The document processor turns a conversation into a filled form. Knowing how it works helps you pick the right PDF and spot anything that needs a manual fix.
From upload to download
- 1
Upload
Your browser reads the PDF and attaches it to the chat.
- 2
Analyze
The server sends the PDF and the chat to the model you chose, Google Gemini or Mistral AI, guided by the same Doctor Bank instructions.
- 3
Save
After every exchange, the chat and PDF are saved to the database so you can resume.
- 4
Extract
When the interview ends, the assistant outputs your answers as structured data.
- 5
Fill
The server matches each answer to a field in the PDF using the pdf-lib library.
- 6
Download
The completed PDF is returned and downloads to your device.
How each model reads your form
| Google Gemini | Mistral AI | |
|---|---|---|
| Reading the PDF | Receives the PDF file directly. | Receives the PDF as a document to read. |
| Finding the boxes | Matches answers to field names. | Also gets a map of the form's fillable fields, with the printed label next to each, so answers land in the right box. |
| If the PDF is too big or rate-limited | Not applicable. | Doctor Bank waits a moment and tries again using the field map alone. |
The field map is built by reading the printed text around each box. Labels are detected automatically, so the assistant skips any box whose label is unclear.
What the extracted data looks like
{
"First Name": "John",
"Annual Income": "600000"
}Supported field types
| Field type | How it is filled |
|---|---|
| Text box | The answer is typed into the box. |
| Checkbox | Checked when the answer is true, yes, or x. |
| Radio buttons | The matching option is selected. |
How answers find their field
Names are compared without capital letters, spaces, or punctuation, so “First Name” matches a field called first_name. If a field's name doesn't match any answer, it is left blank rather than guessed.
Limits to know about
- Only fillable PDFs are filled. A scanned or flat PDF has no form fields to write into.
- Unmatched fields stay empty. Check the finished file for gaps.
- Sensitive fields are skipped by design. Account, NIC, and passport numbers are for you to add.
- Today's date is treated as already known by the assistant.
- A busy model is not the end. If a model is busy or has reached its limit, the chat tells you. Switch to the other model or try again in a minute.