Extract data from resume and create PDF with Gotenberg n8n Workflow Template

n8n workflow template · 31 nodes · OpenAI

Extract data from resume and create PDF with Gotenberg is a free n8n workflow template that starts from the Telegram Trigger node and works with OpenAI and Telegram. It has 31 nodes, 5 of them AI nodes (OpenAI Chat Model, Auto-fixing Output Parser, Structured Output Parser and Basic LLM Chain). The notes inside the workflow say: “Remember to set your actual ID to trigger automation from Telegram.” To run it, you add your own credentials for OpenAI API and Telegram Bot API.

At a glance

Trigger
Telegram Trigger (Telegram trigger)
Nodes
31
Apps
OpenAI and Telegram
AI nodes
5
Credentials
2 types
Category
Chatbots and messaging

Apps and integrations

  • OpenAI
  • Telegram

Node types used

  • OpenAI Chat Model
  • Code
  • Auto-fixing Output Parser
  • Structured Output Parser
  • Telegram Trigger
  • If
  • Telegram
  • Extract from File
  • Edit Fields (Set)
  • Merge
  • Convert to File
  • HTTP Request
  • Basic LLM Chain

How it works

The text below comes from the sticky notes inside the workflow. We removed links, code samples and anything that looks like a key or token.

Add chat ID

Remember to set your actual ID to trigger automation from Telegram.

Ignore start message

Workflow ignores initial/start message sent to the bot.

Download resume file

Based on file ID, node performs downloading of the file uploaded by user.

Extract text from PDF

Node extracts readable text form PDF.

Parse resume data

Create structured data from text extracted from resume. Chain uses OpenAI gpt-4-turbo-preview model and JSON response mode. Adjust JSON schema in output parser to your needs.

Format HTML

Format HTML for each resume section (employment history, projects etc.).

Create HTML file

From formatted output create index.html file in order to run PDF conversion.

Convert file to PDF

Form index.html create PDF using Gotenberg. If you're not familiar with this software, feel free to check out my tutorial on YouTube.

Send PDF file to user

Deliver converted PDF to Telegram user (based on chat ID).

Setup notes

The text below comes from the sticky notes inside the workflow. We removed links, code samples and anything that looks like a key or token.

Note

This is resume extractor workflow that I had a pleasure to present during n8n community hangout on March 7, 2024.

  1. Remember to add your credentials and configure nodes.
  2. This node requires installed Gotenberg for PDF generation. If you're not familiar with this software, feel free to check out my tutorial on YouTube. If you don't want to self-host Gotenberg, you use other PDF generation provider (PDFMonkey, ApiTemplate or similar).
  3. If you like this workflow, please subscribe to my YouTube channel and/or my newsletter.

Thank you for your support!

Nodes in this workflow

The 31 nodes in file order (sticky notes excluded). Branches and connections determine execution order in n8n:

  1. OpenAI Chat Model (OpenAI Chat Model)
  2. Convert education to HTML (Code)
  3. Auto-fixing Output Parser (Auto-fixing Output Parser)
  4. OpenAI Chat Model1 (OpenAI Chat Model)
  5. Structured Output Parser (Structured Output Parser)
  6. Convert employment history to HTML (Code)
  7. Convert projects to HTML (Code)
  8. Convert volunteering to HTML (Code)
  9. Telegram trigger (Telegram Trigger)
  10. Auth (If)
  11. Check if start message (If)
  12. Get file (Telegram)
  13. Extract text from PDF (Extract from File)
  14. Set parsed fileds (Edit Fields (Set))
  15. Personal info (Edit Fields (Set))
  16. Technologies (Edit Fields (Set))
  17. Employment history (Edit Fields (Set))
  18. Education (Edit Fields (Set))
  19. Projects (Edit Fields (Set))
  20. Volunteering (Edit Fields (Set))
  21. Merge education and employment history (Merge)
  22. Merge projects and volunteering (Merge)
  23. Merge personal info and technologies (Merge)
  24. Merge all (Merge)
  25. Set final data (Edit Fields (Set))
  26. Convert raw to base64 (Code)
  27. Convert to HTML (Convert to File)
  28. Generate plain PDF doc (HTTP Request)
  29. Send PDF to the user (Telegram)
  30. Parse resume data (Basic LLM Chain)
  31. Merge other data (Merge)

Credentials you need

  • OpenAI API – used by OpenAI Chat Model and OpenAI Chat Model1
  • Telegram Bot API – used by Get file, Send PDF to the user and Telegram trigger

Configure your own credentials after importing. Create each credential in n8n, then select it in the node.

How to import into n8n

  1. Download the JSON file with the button above.
  2. In n8n, open a new workflow, select the ... menu and choose Import from File. You can also paste the JSON straight into the editor canvas.
  3. Open each node that shows a warning and select or create its credential.
  4. Read the notes on the canvas, test the workflow with sample data, then activate it.

Do you need somewhere to run it? Read our guide to self-hosted n8n.

Need this customised?

We can adapt this workflow to your apps, data and process, then deploy and support it.

Contact Us