Playbook: Scan to Task¶
Objective¶
Convert physical documents (mail, receipts) into actionable tasks in the task manager.
Pre-requisites¶
Step-by-Step Flow¶
- Ingestion: Physical scan via mobile app or scanner reaches the
Nextcloud/Scansfolder. - Processing: Syncthing moves the file to the Paperless consumption directory.
- Understanding: Paperless performs OCR and classifies the document. If it detects a keyword like "Invoice" or "Due", it adds the tag
action-required. - Trigger: n8n monitors Paperless via webhook for the
action-requiredtag. - Reasoning: n8n sends the OCR text to the LLM using the Extraction and Classification Prompt.
- Action: n8n creates a task in Vikunja with a title, description, and due date.
- Linking: The Vikunja task description includes a direct link to the Paperless document.
Data Contract¶
| Field | Type | Format | Notes |
|---|---|---|---|
task_title |
String | Plain Text | Max 100 chars |
due_date |
Date | YYYY-MM-DD | Optional |
paperless_link |
URL | String | Internal ID |
Failure Modes & Recovery¶
- OCR Failure: Text is garbled or unreadable.
- Recovery: Document is tagged
low-confidencein Paperless; manual review required.
- Recovery: Document is tagged
- Task Duplicate:
- Recovery: n8n checks Vikunja for existing tasks with similar names/dates before creating.
Variants¶
- Manual Intake: User manually uploads a PDF to Paperless and applies the tag.
- Email Forward: User forwards an email to the intake address.