Convert workout plan PDFs to Hevy App routines with Gemini AI
Ready for 3.0What this workflow does
This AI workflow has 10 nodes and runs when someone submits an n8n form (“Upload Training Plan”). Along the way it connects OpenRouter Chat Model. It also calls openrouter.ai and api.hevyapp.com over HTTP.
How it runs
Trigger: When someone submits an n8n form (“Upload Training Plan”).
- Convert PDF to Base (Extract from File): extracts data from a file (binary to propery)
- Extract Text from PDF via AI (HTTP Request): calls openrouter.ai (POST)
- Get Exercise List from Hevy (HTTP Request): calls api.hevyapp.com
- Format Exercise Names (Edit Fields (Set)): sets 1 field: exercise_templates
- Combine Exercise List (Aggregate): combines items into one
- Match Exercises & Structure Routine (Basic LLM Chain): sends a prompt to an LLM, with model: google/gemini-2.5-flash; output parser: Structured Output Parser
- Create Hevy Routine (HTTP Request): calls api.hevyapp.com (POST)
Services it uses
HTTP calls to: openrouter.ai, api.hevyapp.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (8)
- n8n Form Trigger
n8n-nodes-base.formTrigger - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter - Extract from File
n8n-nodes-base.extractFromFile - HTTP Request
n8n-nodes-base.httpRequest - Edit Fields (Set)
n8n-nodes-base.set - Aggregate
n8n-nodes-base.aggregate - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm
From the author
Scan Any Workout Plan into the Hevy App with AI This workflow automates the creation of workout routines in the Hevy app by extracting exercise information from an uploaded PDF or Image using AI. What problem does this solve? Tired of manually typing workout…