Hi everyone,
I’m building a no-code automation for a health tourism intake and triage system, and I’d love some guidance from the community on the file-handling part of the flow.
CONTEXT / WHAT’S ALREADY WORKING:
- Telegram Trigger receives patient text messages.
- An AI node (Claude) analyzes the message, detects language, translates it, and returns a structured JSON triage result (suggested specialty, confidence level, missing info).
- Airtable stores Doctors / Patients / Cases and is used to route the case to the right specialist.
- The rest of the flow forwards the doctor’s response back to the patient, and later generates a tracking code and sends the full case to an external system via a webhook.
WHAT I NOW NEED HELP WITH:
I want to extend the intake step so patients can upload their medical records and test results (PDF and images) directly in the same Telegram/WhatsApp conversation, not through a separate form, so the whole triage conversation stays in one continuous chat thread.
Specifically I’m looking for advice on:
-
Best practice for capturing both document and photo message types from Telegram Trigger in a single branch (rather than building separate paths for message.document vs message.photo).
-
Recommended approach for downloading the file (Telegram file_id) inside n8n and passing it to an OCR or vision-capable AI step for text extraction — should this go through a dedicated OCR node, or is feeding the image/PDF directly to a vision-capable LLM node more reliable for medical documents?
-
How others handle mixing multiple input types (free text + file attachments) within the same conversation turn before sending everything to the AI analysis node as one combined payload.
-
Any guidance on temporarily storing the uploaded files (e.g., binary data handling, or pushing to cloud storage) before they’re attached to the patient’s case record in Airtable.
-
Since this involves sensitive personal health data, any recommended patterns for handling encryption/retention of uploaded files within an n8n workflow would be very helpful.
I’m running this on n8n.cloud. Happy to share more details about the workflow structure if useful. Any pointers, example workflows, or node recommendations would be greatly appreciated.
Thanks in advance!