Quick overview
This workflow accepts resume PDFs sent to a Telegram bot, extracts their text, uses OpenAI to parse the content into a structured JSON schema, reformats it into HTML sections, converts the HTML to a PDF via Gotenberg, and sends the normalized PDF back to the user.
How it works
- Triggers when a new Telegram message is received by the bot.
- Validates the sender’s Telegram chat ID and ignores unauthorized users or the /start command.
- Downloads the attached PDF from Telegram and extracts its text.
- Uses OpenAI to extract resume details into structured JSON and auto-fixes any schema mismatches.
- Formats the parsed resume sections (personal info, employment history, education, projects, volunteering, and technologies) into HTML.
- Sends the HTML to a Gotenberg endpoint to render a PDF and returns the generated PDF to the user in Telegram.
Setup
- Add Telegram bot credentials for the Telegram Trigger and Telegram nodes used to download files and send documents.
- Replace the authorized Telegram chat ID check (currently set to 0) with your own chat ID.
- Add an OpenAI API credential for the OpenAI chat model nodes.
- Ensure a reachable Gotenberg instance is running and update the HTML-to-PDF URL if it differs from http://gotenberg:3000/forms/chromium/convert/html.