AI Triathlon Fitness Coach powered by Google Gemini & n8n
Integrates with:
Overview
Unlock Peak Triathlon Performance with this AI Agent
This n8n workflow transforms into your dedicated AI Triathlon Fitness Coach. It connects to your Strava account, automatically ingesting your latest run, swim, or cycle activities. Using the analytical power of Google Gemini via a Langchain agent, this AI meticulously examines your performance data—distance, pace, heart rate, power, cadence, and more. It then crafts personalized, data-driven coaching advice, motivational messages, and actionable improvement plans, delivered conveniently to your email inbox in a structured HTML format. This AI Agent acts as your personal digital coach, helping you understand your performance, identify areas for growth, and achieve your triathlon goals.
Key Features & Benefits
- Automated Strava Activity Ingestion: Fetches your latest activities directly from Strava when they are updated.
- AI-Powered Performance Analysis: Leverages Google Gemini and a sophisticated Langchain agent to provide deep insights into your run, swim, and bike workouts. Understand your pacing, effort, technique, and trends.
- Personalized Triathlon Coaching: Receive tailored feedback, specific drills, workout suggestions, and recovery tips designed for your unique performance and goals across all three triathlon disciplines.
- Motivational Support & Goal Setting: The AI coach is prompted to provide encouragement and can assist in setting realistic short-term and long-term goals to keep you on track.
- Structured & Actionable Advice: Coaching insights are intelligently structured and converted to HTML for clear, easy-to-read email reports.
- Flexible Email Delivery: Sends coaching summaries via SMTP, with options to configure Gmail or other email services.
- Highly Customizable AI Persona: The core coaching logic is defined in a detailed prompt within the Langchain agent node, allowing you to fine-tune the AI's tone, focus, and coaching style to your preference.
Use Cases
- Automated post-activity analysis and feedback for amateur and semi-pro triathletes.
- Generating personalized training tips based on recent Strava data to improve swimming, cycling, or running performance.
- Providing motivational nudges and progress tracking for endurance athletes.
- Fitness tech platforms enhancing user engagement with value-added AI coaching features.
- Solopreneur coaches augmenting their services with AI-driven insights for a larger client base.
Prerequisites
- An n8n instance (Cloud or self-hosted).
- Strava API credentials (OAuth2 setup within the n8n Strava Trigger node).
- Google Gemini API Key (from Google AI Studio or Google Cloud) with access to a model like 'gemini-2.0-flash-exp'.
- Email sending credentials (SMTP details for the 'Send Email' node, or Gmail OAuth2 for the 'Gmail' node if you choose to use it).
Setup Instructions
- Download the n8n workflow JSON file.
- Import the workflow into your n8n instance.
- Configure the 'Strava Trigger' node: Click 'Connect my account' and follow the prompts to authenticate with your Strava account.
- Configure the 'Google Gemini Chat Model' node: Select your Google Gemini API credential or create a new one by entering your API Key.
- Review the 'Fitness Coach' (Langchain Agent) node: The 'Text' parameter contains a detailed prompt defining the AI's coaching abilities. You can customize this prompt to alter the AI's behavior, focus, or tone.
- Configure the 'Send Email' node (SMTP): Enter your SMTP server details, credentials, sender email, and recipient email address(es) for the coaching reports. The subject is pre-set to "New Activity on Strava".
- (Optional) Configure the 'Gmail' node: If you prefer Gmail, set up your Gmail OAuth2 credentials and connect its input to the 'Conver to HTML' node's output. Update the recipient and subject as needed.
- (Optional) Extend to WhatsApp: The 'WhatsApp Business Cloud' node is included. Connect it to the 'Conver to HTML' node's output and configure it with your WhatsApp Business API credentials to send messages.
- Activate the workflow. When new activities are updated in Strava, the AI coach will analyze them and send a report.
Want your own unique AI agent?
Talk to us - we know how to build custom AI agents for your specific needs.
Schedule a Consultation