AI Resume Parser & PDF Formatter Agent (Telegram & OpenAI)
Integrates with:
Overview
Unlock Automated Resume Processing with this AI Agent
Inspired by a demonstration at an n8n community hangout (original concept by Workfloows), this AI Agent transforms your resume handling. It connects to Telegram, waiting for users to upload PDF resumes. Once a resume is received, the agent's AI capabilities kick in: it first extracts the raw text content. Then, leveraging OpenAI's GPT-4 Turbo Preview model through n8n's Langchain nodes, it intelligently parses this text into a structured JSON format. This detailed breakdown includes key sections like personal information, employment history, education, projects, and technical skills.
The agent doesn't stop at data extraction. It then meticulously formats these structured details into clean HTML sections, merges them into a cohesive document, and utilizes a Gotenberg instance to convert this HTML into a professional-quality PDF. The final, well-formatted PDF resume is then automatically sent back to the originating Telegram user, offering an incredibly efficient way to standardize, reformat, and manage resume documents.
Key Features & Benefits
- AI-Powered Resume Parsing: Employs OpenAI GPT-4 Turbo Preview and Langchain for highly accurate extraction and structuring of data from PDF resumes.
- Telegram Integration: Seamlessly receives resumes as PDF documents and delivers the processed, formatted PDFs back to users via a Telegram bot.
- Structured Data Output: Intelligently converts unstructured resume text into a well-defined JSON object, ideal for populating databases, applicant tracking systems (ATS), or powering further automations.
- Automated PDF Formatting: Generates clean, professional PDF versions of resumes using customizable HTML templating and a Gotenberg microservice for conversion.
- Error-Resilient Parsing: Incorporates an auto-fixing output parser (Langchain feature) to enhance the reliability of the AI-generated structured data, ensuring it adheres to the defined schema.
- Significant Time Savings: Drastically reduces manual effort typically spent on data entry, resume reformatting, and ensuring document standardization.
- Customizable Extraction & Styling: Offers a flexible JSON schema in the 'Structured Output Parser' node for tailoring data extraction, and the HTML generation nodes can be adapted for custom output styling.
Use Cases
- For B2B SaaS HR teams: Streamline candidate resume processing from direct Telegram applications or internal referrals, ensuring consistent data for your ATS.
- For B2C e-commerce platforms offering career services: Integrate this agent as a value-add tool for users to get AI-powered resume structuring and formatting.
- For Founders/CTOs in any tech company: Quickly standardize resumes of potential hires sourced through various channels, starting with a simple Telegram forward.
- For Heads of Automation: Implement as an internal tool to improve HR efficiency and demonstrate AI's practical application in advanced document processing.
Prerequisites
- An n8n instance (Cloud or self-hosted).
- OpenAI API Key with access to a suitable model (e.g., gpt-4-turbo-preview).
- A Telegram Bot Token.
- Your personal Telegram Chat ID (for authorizing yourself to use the bot initially).
- A running Gotenberg instance accessible by your n8n workflow (e.g.,
http://gotenberg:3000
if using Docker). For Gotenberg setup, refer to its official documentation or the helpful YouTube tutorial by Workfloows. Alternatively, you can adapt the workflow to use other PDF generation services.
Setup Instructions
- Download the n8n workflow JSON file.
- Import the workflow into your n8n instance.
- Configure the 'Telegram trigger' node: Create a new Telegram credential using your bot token. Note the Webhook URL generated by n8n (after saving the workflow at least once if it's a new webhook) and register it with your Telegram bot using Telegram's BotFather or API.
- In the 'Auth' If node, locate the condition
{{ $json.message.chat.id }}
. In therightValue
field, replace the placeholder0
with your personal Telegram Chat ID. You can get your Chat ID by sending a message to a bot like@userinfobot
on Telegram. - Configure the 'OpenAI Chat Model' (named 'OpenAI Chat Model') and the one used by the 'Auto-fixing Output Parser' (named 'OpenAI Chat Model1'): Select or create your OpenAI credentials using your API Key. Ensure the selected model is
gpt-4-turbo-preview
or a similar capable model for best results, especially for the main parsing task. - Review the 'Structured Output Parser' node. The
jsonSchema
here defines what information the AI tries to extract. You can customize this schema if you need different fields or a different structure. - Check the 'Generate plain PDF doc' (HTTP Request) node. Ensure the
URL
field (http://gotenberg:3000/forms/chromium/convert/html
) correctly points to your running Gotenberg instance. Adjust the hostname or port if your Gotenberg setup differs. - Activate the workflow. Send a PDF resume to your Telegram bot. The bot will ignore
/start
messages and will only process PDF document uploads from authorized users (initially, just you). - (Optional) Modify the various 'Set' nodes (e.g., 'Personal info', 'Employment history') and 'Code' nodes (e.g., 'Convert employment history to HTML') if you wish to change the HTML structure or styling of the final PDF.
Want your own unique AI agent?
Talk to us - we know how to build custom AI agents for your specific needs.
Schedule a Consultation