Transform your Hevy workout data into personalized coaching advice! This project automatically analyzes your workout CSV exports and provides AI-powered recommendations via Telegram.
Simple Version: Send your Hevy workout CSV to a Telegram bot β Get AI coaching advice
Detailed Version:
- π Analyzes your workout data automatically
- π€ Provides personalized coaching recommendations using AI
- π¬ Sends everything directly to your Telegram
- π Works every time you export data from Hevy
Choose one option:
Option A: Docker (Recommended)
docker run -it --rm --name n8n -p 5678:5678 -v ~/.n8n:/home/node/.n8n n8nio/n8n
Option B: npm
npm install n8n -g
n8n start
Option C: Desktop App Download from n8n.io
Open your browser and go to: http://localhost:5678
- Click "+ Add Workflow"
- Follow the setup guide below π
- Open Telegram and search for
@BotFather
- Send
/newbot
to BotFather - Choose a name for your bot (e.g., "My Workout Coach")
- Choose a username (e.g., "my_workout_coach_bot")
- Save the API token - you'll need it in n8n!
Your workflow will have 5 simple nodes:
π± Telegram Trigger β π Extract File β π» Code β π€ AI Agent β π± Telegram Send
- Add node: Search "Telegram Trigger"
- Credentials: Add your bot token from Step 1
- Settings:
- Trigger on:
message
- Download attachments:
β Yes
- Trigger on:
- Add node: Search "Extract from File"
- Settings:
- File format:
CSV
- Options: Leave default
- File format:
- Add node: Search "Code"
- Copy and paste the entire code from
n8n_code_node.js
- That's it! The code is fully documented and ready to use
- Add node: Search "AI Agent" or "OpenAI"
- Credentials: Add your AI service API key (OpenAI, DeepSeek, etc.)
- Settings:
- Model:
gpt-4
ordeepseek-chat
- System message: Copy from the system message section below
- User message:
{{ $('Code').first().json.aiPrompt }}
- Model:
- Add node: Search "Telegram"
- Credentials: Same as Telegram Trigger
- Settings:
- Chat ID:
{{ $('Telegram Trigger').first().json.message.chat.id }}
- Text:
ποΈ **Your Workout Analysis** {{ $('AI Agent').first().json.output }}
- Chat ID:
Copy this into your AI Agent's system message:
You are an expert fitness coach and nutritionist specializing in body transformation and strength training. You are helping a client who is:
PHYSICAL STATS:
- Height:
- Weight:
- Goal:
STRENGTH PROFILE:
- STRONG areas:
- WEAK areas:
YOUR ROLE:
Analyze the provided workout data and give personalized recommendations focusing on:
1. WORKOUT OPTIMIZATION:
- ...
2. NUTRITION GUIDANCE:
- ...
3. BODY RECOMPOSITION:
- ...
COMMUNICATION STYLE:
- Be specific and actionable
- Use data from the workout analysis
- Provide concrete numbers (sets, reps, weights)
- Include progression timelines
- Be motivational but realistic
- Focus on sustainable long-term changes
Always base your recommendations on the actual workout data provided and tailor advice to address the specific strength imbalances and fat loss goals.
π Note: Update the physical stats and goals to match your own!
- Open Hevy app on your phone
- Go to Profile β Export Data
- Choose CSV format
- Download the file
- Open Telegram
- Find your bot
- Send the CSV file as an attachment
- Wait 10-30 seconds for analysis
You'll receive:
- π― Personalized workout recommendations
- π Progress analysis for your top exercises
- πͺ Specific advice for weak areas
- π½οΈ Nutrition suggestions
- β Make sure you're sending a CSV file (not screenshot)
- β Check that the CSV has data in it
- β Verify the Extract from File node is connected
- β Check your AI service API key
- β Make sure you have credits/quota available
- β
Verify the AI prompt field:
{{ $('Code').first().json.aiPrompt }}
- β Make sure your Telegram bot token is correct
- β
Try sending
/start
to your bot first - β Check that "Download attachments" is enabled
Edit the AI system message to match your:
- Height and weight
- Fitness goals
- Strong/weak muscle groups
Add a "Write Binary File" node after "Extract from File":
- File Path:
/path/to/save/workout_data.csv
- Property Name:
data
Create parallel AI Agent nodes for:
- Workout analysis (OpenAI GPT-4)
- Nutrition advice (Claude)
- Form checking (DeepSeek)
Replace Telegram Trigger with:
- Schedule Trigger (daily/weekly analysis)
- Google Drive Trigger (auto-process new uploads)
Hevy-Coach/
βββ README.md # This guide
βββ docker-compose.yml # Docker setup (optional)
βββ Dockerfile # Custom n8n image (optional)
βββ n8n_code_node.js # Main processing code
βββ workout_data.csv # Sample data
This project is open source and available under the MIT License.
π Ready to transform your workouts? Start building your AI coach today!
Made with β€οΈ for the fitness community