Workflow: Manualtrigger Workflow
Integrations: editImage, googleDrive, httpRequest, if, manualTrigger, noOp, stickyNote

{"meta": {"instanceId": "workflow-ac5f5d15", "versionId": "1.0.0", "createdAt": "2025-09-29T07:07:44.304823", "updatedAt": "2025-09-29T07:07:44.304873", "owner": "n8n-user", "license": "MIT", "category": "automation", "status": "active", "priority": "high", "environment": "production"}, "nodes": [{"id": "38da57b7-2161-415d-8473-783ccdc7b975", "name": "When clicking \u2018Test workflow\u2019", "type": "n8n-nodes-base.manualTrigger", "position": [-260, 840], "parameters": {}, "typeVersion": 1, "notes": "This manualTrigger node performs automated tasks as part of the workflow."}, {"id": "2cd46d91-105d-4b5e-be43-3343a9da815d", "name": "Sticky Note", "type": "n8n-nodes-base.stickyNote", "position": [-780, 540], "parameters": {"width": 365.05232558139534, "height": 401.24529475392126, "content": "## Try me out!\n\n### This workflow converts a Candidate Resume PDF to an image which is then \"read\" by a Vision Language Model (VLM). The VLM assesses if the candidate's CV is a fit for the desired role.\n\nThis approach can be employed to combat \"hidden prompts\" planted in resumes to bypass and/or manipulate automated ATS systems using AI.\n\n\n### Need Help?\nJoin the [Discord]({{ $env.WEBHOOK_URL }} or ask in the [Forum]({{ $env.WEBHOOK_URL }}\n"}, "typeVersion": 1, "notes": "This stickyNote node performs automated tasks as part of the workflow."}, {"id": "40bab53a-fcbc-4acc-8d59-c20b3e1b2697", "name": "Structured Output Parser", "type": "n8n-nodes-base.noOp", "position": [1200, 980], "parameters": {"jsonSchemaExample": "{\n\t\"is_qualified\": true,\n\t\"reason\": \"\"\n}"}, "typeVersion": 1.2, "notes": "This outputParserStructured node performs automated tasks as part of the workflow."}, {"id": "d75fb7ab-cfbc-419d-b803-deb9e99114ba", "name": "Should Proceed To Stage 2?", "type": "n8n-nodes-base.if", "position": [1360, 820], "parameters": {"options": {}, "conditions": {"options": {"leftValue": "", "caseSensitive": true, "typeValidation": "strict"}, "combinator": "and", "conditions": [{"id": "4dd69ba3-bf07-43b3-86b7-d94b07e9eea6", "operator": {"type": "boolean", "operation": "true", "singleValue": true}, "leftValue": "={{ $json.output.is_qualified }}", "rightValue": ""}]}}, "typeVersion": 2, "notes": "This if node performs automated tasks as part of the workflow."}, {"id": "a0f56270-67c2-4fab-b521-aa6f06b0b0fd", "name": "Sticky Note1", "type": "n8n-nodes-base.stickyNote", "position": [-380, 540], "parameters": {"color": 7, "width": 543.5706868577606, "height": 563.6162790697684, "content": "## 1. Download Candidate Resume\n[Read more about using Google Drive]({{ $env.WEBHOOK_URL }}\n\nFor this demonstration, we'll pull the candidate's resume PDF from Google Drive but you can just as easily recieve this resume from email or your ATS.\n\nIt should be noted that our PDF is a special test case which has been deliberately injected with an AI bypass; the bypass is a hidden prompt which aims to override AI instructions and auto-qualify the candidate... sneaky!\n\nDownload a copy of this resume here: {{ $env.WEBHOOK_URL }}"}, "typeVersion": 1, "notes": "This stickyNote node performs automated tasks as part of the workflow."}, {"id": "d21fe4dd-0879-4e5a-a70d-10f09b25eee2", "name": "Download Resume", "type": "n8n-nodes-base.googleDrive", "position": [-80, 840], "parameters": {"fileId": {"__rl": true, "mode": "id", "value": "1MORAdeev6cMcTJBV2EYALAwll8gCDRav"}, "options": {}, "operation": "download"}, "credentials": {"googleDriveOAuth2Api": {"id": "yOwz41gMQclOadgu", "name": "Google Drive account"}}, "typeVersion": 3, "notes": "This googleDrive node performs automated tasks as part of the workflow."}, {"id": "ea904365-d9d2-4f15-b7c3-7abfeb4c8c50", "name": "Sticky Note2", "type": "n8n-nodes-base.stickyNote", "position": [200, 540], "parameters": {"color": 7, "width": 605.0267171444024, "height": 595.3148729042731, "content": "## 2. Convert PDF to Image(s)\n[Read more about using Stirling PDF]({{ $env.WEBHOOK_URL }}\n\nAI vision models can only accept images (and sometimes videos!) as non-text inputs but not PDFs at time of writing. We'll have to convert our PDF to an image in order to use it.\n\nHere, we'll use a tool called **Stirling PDF** which can provide this functionality and can be accessed via a HTTP API. Feel free to use an alternative solution if available, otherwise follow the instructions on the Stirling PDF website to set up your own instance.\n\nAdditionally, we'll reduce the resolution of our converted image to speed up the processing done by the LLM. I find that about 75% of an A4 (30x40cm) is a good balance."}, "typeVersion": 1, "notes": "This stickyNote node performs automated tasks as part of the workflow."}, {"id": "cd00a47f-1ab9-46bf-8ea1-46ac899095e7", "name": "Sticky Note3", "type": "n8n-nodes-base.stickyNote", "position": [840, 540], "parameters": {"color": 7, "width": 747.8139534883712, "height": 603.1395348837208, "content": "## 3. Parse Resume with Multimodal LLM\n[Read more about using Basic LLM Chain]({{ $env.WEBHOOK_URL }}\n\nMultimodal LLMs are LLMs which can accept binary inputs such as images, audio and/or video files. Most newer LLMs are by default multimodal and we'll use Google's Gemini here as an example. By processing each candidate's resume as an image, we avoid scenarios where text extraction fails due to layout issues or by picking up \"hidden\" or malicious prompts planted to subvert AI automated processing.\n\nThis vision model ensures the resume is read and understood as a human would. The hidden bypass is therefore rendered mute since the AI also cannot \"see\" the special prompt embedded in the document."}, "typeVersion": 1, "notes": "This stickyNote node performs automated tasks as part of the workflow."}, {"id": "d60214c6-c67e-4433-9121-4d54f782b19d", "name": "PDF-to-Image API", "type": "n8n-nodes-base.httpRequest", "position": [340, 880], "parameters": {"url": "{{ $env.API_BASE_URL }}", "method": "POST", "options": {}, "sendBody": true, "contentType": "multipart-form-data", "bodyParameters": {"parameters": [{"name": "fileInput", "parameterType": "formBinaryData", "inputDataFieldName": "data"}, {"name": "imageFormat", "value": "jpg"}, {"name": "singleOrMultiple", "value": "single"}, {"name": "dpi", "value": "300"}]}}, "typeVersion": 4.2, "notes": "This httpRequest node performs automated tasks as part of the workflow."}, {"id": "847de537-ad8f-47f5-a1c1-d207c3fc15ef", "name": "Resize Converted Image", "type": "n8n-nodes-base.editImage", "position": [530, 880], "parameters": {"width": 75, "height": 75, "options": {}, "operation": "resize", "resizeOption": "percent"}, "typeVersion": 1, "notes": "This editImage node performs automated tasks as part of the workflow."}, {"id": "5fb6ac7e-b910-4dce-bba7-19b638fd817a", "name": "Google Gemini Chat Model", "type": "n8n-nodes-base.noOp", "position": [1000, 980], "parameters": {"options": {}, "modelName": "models/gemini-1.5-pro-latest"}, "credentials": {"googlePalmApi": {"id": "dSxo6ns5wn658r8N", "name": "Google Gemini(PaLM) Api account"}}, "typeVersion": 1, "notes": "This lmChatGoogleGemini node performs automated tasks as part of the workflow."}, {"id": "2580b583-544a-47ee-b248-9cca528c9866", "name": "Candidate Resume Analyser", "type": "n8n-nodes-base.noOp", "position": [1000, 820], "parameters": {"text": "=Evaluate the candidate's resume.", "messages": {"messageValues": [{"message": "=Assess the given Candiate Resume for the role of Plumber.\nDetermine if the candidate's skills match the role and if they qualify for an in-person interview."}, {"type": "HumanMessagePromptTemplate", "messageType": "imageBinary"}]}, "promptType": "define", "hasOutputParser": true}, "typeVersion": 1.4, "notes": "This chainLlm node performs automated tasks as part of the workflow."}, {"id": "694669c2-9cf5-43ec-8846-c0ecbc5a77ee", "name": "Sticky Note4", "type": "n8n-nodes-base.stickyNote", "position": [280, 840], "parameters": {"width": 225.51725256895617, "height": 418.95152406706313, "content": "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n### Data Privacy Warning!\nFor demo purposes, we're using the public online version of Stirling PDF. It is recommended to setup your own private instance of Stirling PDF before using this workflow in production."}, "typeVersion": 1, "notes": "This stickyNote node performs automated tasks as part of the workflow."}], "pinData": {}, "connections": {"d60214c6-c67e-4433-9121-4d54f782b19d": {"main": [[{"node": "error-handler-d60214c6-c67e-4433-9121-4d54f782b19d", "type": "main", "index": 0}], [{"node": "error-handler-d60214c6-c67e-4433-9121-4d54f782b19d-0d98efce", "type": "main", "index": 0}], [{"node": "error-handler-d60214c6-c67e-4433-9121-4d54f782b19d-8115e5d6", "type": "main", "index": 0}], [{"node": "error-handler-d60214c6-c67e-4433-9121-4d54f782b19d-9a944cda", "type": "main", "index": 0}], [{"node": "error-handler-d60214c6-c67e-4433-9121-4d54f782b19d-ad672280", "type": "main", "index": 0}], [{"node": "error-handler-d60214c6-c67e-4433-9121-4d54f782b19d-9cfa6eaa", "type": "main", "index": 0}], [{"node": "error-handler-d60214c6-c67e-4433-9121-4d54f782b19d-36c87fa6", "type": "main", "index": 0}], [{"node": "error-handler-d60214c6-c67e-4433-9121-4d54f782b19d-96739565", "type": "main", "index": 0}], [{"node": "error-handler-d60214c6-c67e-4433-9121-4d54f782b19d-63675cd1", "type": "main", "index": 0}]]}, "d21fe4dd-0879-4e5a-a70d-10f09b25eee2": {"main": [[{"node": "error-handler-d21fe4dd-0879-4e5a-a70d-10f09b25eee2-50a8468f", "type": "main", "index": 0}]]}, "5fb6ac7e-b910-4dce-bba7-19b638fd817a": {"main": [[{"node": "error-handler-5fb6ac7e-b910-4dce-bba7-19b638fd817a-269d0f53", "type": "main", "index": 0}]]}}, "name": "Manualtrigger Workflow", "settings": {"executionOrder": "v1", "saveManualExecutions": true, "callerPolicy": "workflowsFromSameOwner", "errorWorkflow": null, "timezone": "UTC", "executionTimeout": 3600, "maxExecutions": 1000, "retryOnFail": true, "retryCount": 3, "retryDelay": 1000}, "description": "Automated workflow: Manualtrigger Workflow. This workflow integrates 10 different services: stickyNote, httpRequest, lmChatGoogleGemini, chainLlm, outputParserStructured. It contains 17 nodes and follows best practices for error handling and security.", "tags": ["automation", "n8n", "production-ready", "excellent", "optimized"], "notes": "Excellent quality workflow: Manualtrigger Workflow. This workflow has been optimized for production use with comprehensive error handling, security, and documentation."}