This project is an automated workflow built with n8n that reads any type of PDF sent via Telegram, extracts useful information using AI, and converts it into structured data for API usage.
- Upload any PDF via Telegram bot
- Extract text from PDF automatically
- AI-powered data extraction (dynamic & customizable)
- Supports multiple document types:
- Bank statements
- Invoices
- Receipts
- Reports
- Forms
- Converts unstructured text → structured JSON
- Sends data to API via HTTP POST
- Telegram response with processed output
- User sends a PDF file to the Telegram bot
- The workflow downloads the file
- Text is extracted from the PDF
- AI analyzes the content
- Extracts relevant structured data based on prompt rules
- Data is formatted into JSON
- JSON is sent to an API endpoint
- Response is returned to the user
End-to-end automation: Capture → Process → Store → Respond ⚡
flowchart LR
A[Telegram User] --> B[Upload PDF]
B --> C[n8n Workflow]
C --> D[Extract Text from PDF]
D --> E[AI Processing]
E --> F[Structured JSON Output]
F --> G[HTTP API Request]
G --> H[Telegram Response]
