n8n

How to Automate Telegram Resume Parsing?

Turn resume PDFs sent on Telegram into clean, standardized PDFs in minutes. Recruiters and HR teams can collect resumes, parse the details, and get a polished file back in the same chat. It removes manual copy and paste and keeps every resume in the same format.

When a user sends a document in Telegram, the flow checks the chat ID for access and ignores the start message. It downloads the file, extracts text from the PDF, and uses an AI model to map content into a structured JSON with personal info, skills, work history, education, projects, and volunteering. An auto fix parser repairs bad JSON. Code nodes format each section into HTML, merge all parts, and build a single page. The page is sent to a PDF engine, and the final PDF returns to the user in Telegram.

Setup needs a Telegram bot, an OpenAI key, and a PDF service endpoint. Add your allowed chat ID and adjust the JSON schema and HTML blocks to match your style. Teams can cut resume cleanup time from 20 minutes to about 2 minutes and scale intake during hiring spikes, campus events, or mobile first candidate campaigns.

What are the key features?

  • Telegram message trigger listens for new resume files
  • Chat ID check limits access to approved users
  • PDF download and text extraction prepare clean input
  • AI model builds structured JSON using a defined schema
  • Auto fix parser repairs invalid or partial JSON
  • JavaScript code formats work, education, projects, and volunteering into HTML
  • Merge nodes assemble all sections into one page
  • HTML converts to PDF through a Gotenberg endpoint
  • The final PDF is sent back to the same Telegram chat

What are the benefits?

  • Reduce manual resume formatting from 20 minutes to 2 minutes
  • Automate 90 percent of parsing with structured AI output
  • Improve data accuracy by 80 percent by removing copy and paste errors
  • Handle up to 10 times more candidate files in the same time
  • Connect Telegram, OpenAI, and a PDF service in one flow
  • Standardize layout so every resume follows the same format

How do you set it up?

  1. Import the template into n8n: Create a new workflow in n8n > Click the three dots menu > Select 'Import from File' > Choose the downloaded JSON file.
  2. You'll need accounts with Telegram, OpenAI and Gotenberg. See the Tools Required section above for links to create accounts with these services.
  3. Create a Telegram bot with BotFather and copy the bot token. In n8n, open the Telegram Trigger node, choose Credential to connect with, click Create new credential, and paste the bot token. Use the same credential on the Get file and Send PDF nodes.
  4. Generate an OpenAI API key in your OpenAI account. In n8n, open each OpenAI Chat Model node, choose Credential to connect with, click Create new credential, add the API key, set temperature to 0, and select the model as needed.
  5. Set the allowed chat ID. Open the Auth If node and enter your chat ID in the left value so only your chat can trigger processing.
  6. Confirm the start filter. The Check if start message node should ignore the start message so the bot stays quiet until a file is sent.
  7. Configure the structured output. Open the Structured Output Parser node and review the JSON schema fields for personal info, skills, work, education, projects, and volunteering. Adjust field names to match your needs.
  8. Update HTML blocks. Edit the Personal info, Technologies, and the code nodes that build section HTML to match your brand and formatting rules.
  9. Point the PDF step to your PDF engine. Open the Generate plain PDF doc node and set the endpoint for your Gotenberg service. If unsure, double click the node, then in Credential to connect with click Create new credential and follow on screen instructions for that service.
  10. Run a quick test. Send the bot a PDF resume that contains selectable text. Check the execution to confirm text is extracted, JSON is created, HTML is built, and a PDF is returned in Telegram.
  11. Troubleshoot common issues. If the PDF produces empty text, the file may be a scanned image. Use a text based PDF or add an OCR step before the extract node. If parsing fails, simplify the schema or prompts and review the auto fix parser output.
  12. Scale and refine. Add more fields in the JSON schema, tweak the HTML templates, and adjust the merge order to meet your internal resume standard.

Tools Required

$24 / mo or $20 / mo billed annually to use n8n in the cloud. However, the local or self-hosted n8n Community Edition is free.

Gotenberg

Sign up

Open-source self-hosted: $0 / mo (no official SaaS; run via Docker)

OpenAI

Sign up

Pay-as-you-go: GPT-5 at $1.25 per 1M input tokens and $10 per 1M output tokens

Telegram

Sign up

Free: $0, Telegram Bot API usage is free for developers

Credits:
Presented during an n8n community hangout: YouTube video
PDF engine setup overview: YouTube video
Creator: workfloows
Channel: YouTube channel
Newsletter: workfloows.com

Similar Templates

Join Futurise to access 1,200+ automation templates

Get instant access to ready-made automation workflows for n8n, Make.com, AI agents, and more. Download, customise, and deploy in minutes.