With this workflow, you can extract data from resume documents uploaded via a Telegram bot. The workflow transforms the readable content of PDF resumes into structured data using AI nodes and returns a PDF with formatted, plain HTML.
You can modify this workflow to perform other actions with structured data (e.g., insert it into a database or create other well-formatted documents).
The functionality of this workflow was presented during the n8n community call on March 7, 2024. ⚠️ This workflow is made for demo purposes. If you want to use it in real life, please ensure that necessary measures for personal data protection are set.
How it works?
1. User uploads a readable PDF resume document into the Telegram bot.
2. After authentication based on the chat ID parameter, the workflow extracts text from the PDF and transfers it into an AI chain with connected sub-nodes: OpenAI Chat Model and Structured Output (JSON) Parser.
3. Each extracted section (employment history, projects, etc.) is formatted into the desired HTML structure.
4. Finally, the document is converted into a new, structured PDF using Gotenberg.
💡 This workflow requires installed Gotenberg. If you are not familiar with this software, please have a look at my YouTube tutorial. You can also replace the call to Gotenberg with another PDF generation service (such as PDFMonkey or ApiTemplate).
Set up steps:
– Create a Telegram bot and add its credentials in n8n.
– Set your chat ID parameter in the Auth node.
– Adjust the JSON schema in the Structured Output Parser according to your needs.
– Optionally, replace the HTTP call to Gotenberg with a PDF generation service of your choice.
If you like this workflow, please subscribe to my YouTube channel and/or my newsletter.