Process WhatsApp PDFs with AWS Textract OCR via S3
Ready for 3.0What this workflow does
This workflow has 9 nodes and runs on WhatsApp events (messages). Along the way it connects AWS S3 and WhatsApp Business Cloud. It also calls textract.us-east-1.amazonaws.com over HTTP.
How it runs
Trigger: On WhatsApp events (messages).
- Get PDF (HTTP Request): calls an HTTP API
- File Download (HTTP Request): calls an HTTP API
- Upload File to S (AWS S3): upload
- Download File from S (AWS S3): uses AWS S3
- AWS StartDocumentAnalysis (HTTP Request): calls textract.us-east-1.amazonaws.com (POST)
- Wait: waits 30 seconds
- AWS GetDocumentAnalysis (HTTP Request): calls textract.us-east-1.amazonaws.com (POST)
- Extract Text (Code): runs custom JavaScript code
Services it uses
Other WhatsApp + Facebook templates (15) · Other AWS S3 + Facebook templates (3)
HTTP calls to: textract.us-east-1.amazonaws.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (5)
- HTTP Request
n8n-nodes-base.httpRequest - AWS S3
n8n-nodes-base.awsS3 - WhatsApp Trigger
n8n-nodes-base.whatsAppTrigger - Wait
n8n-nodes-base.wait - Code
n8n-nodes-base.code
From the author
This n8n template demonstrates how to automatically extract text content from PDF documents received via WhatsApp messages using OCR. It is designed for use cases where users submit documents through WhatsApp and the document content needs to be digitized for…