Back to Catalog

Ai fitness coach Strava data analysis and personalized training insights

Amjid AliAmjid Ali
12376 views
2/3/2026
Official Page

Detailed Title

"Triathlon Coach AI Workflow: Strava Data Analysis and Personalized Training Insights using n8n"


Description

This n8n workflow enables you to build an AI-driven virtual triathlon coach that seamlessly integrates with Strava to analyze activity data and provide athletes with actionable training insights. The workflow processes data from activities like swimming, cycling, and running, delivers personalized feedback, and sends motivational and performance improvement advice via email or WhatsApp.


Workflow Details

Trigger: Strava Activity Updates

  • Node: Strava Trigger
  • Purpose: Captures updates from Strava whenever an activity is recorded or modified. The data includes metrics like distance, pace, elevation, heart rate, and more.
  • Integration: Uses Strava API for real-time synchronization.

Step 1: Data Preprocessing

  • Node: Code
  • Purpose: Combines and flattens the raw Strava activity data into a structured format for easier processing in subsequent nodes.
  • Logic: A recursive function flattens JSON input to create a clean and readable structure.

Step 2: AI Analysis with Google Gemini

  • Node: Google Gemini Chat Model
  • Purpose: Leverages Google Gemini's advanced language model to analyze the activity data.
  • Functionality:
    • Identifies key performance metrics.
    • Provides feedback and insights specific to the type of activity (e.g., running, swimming, or cycling).
    • Offers tailored recommendations and motivational advice.

Step 3: Generate Structured Output

  • Node: Structure Output
  • Purpose: Processes the AI-generated response to create a structured format, such as headings, paragraphs, and bullet lists.
  • Output: Formats the response for clear communication.

Step 4: Convert to HTML

  • Node: Convert to HTML
  • Purpose: Converts the structured output into an HTML format suitable for email or other presentation methods.
  • Output: Ensures the response is visually appealing and easy to understand.

Step 5: Send Email with Training Insights

  • Node: Send Email
  • Purpose: Sends a detailed email to the athlete with performance insights, training recommendations, and motivational messages.
  • Integration: Utilizes Gmail or SMTP for secure and efficient email delivery.

Optional Step: WhatsApp Notifications

  • Node: WhatsApp Business Cloud
  • Purpose: Sends a summary of the activity analysis and key recommendations via WhatsApp for instant access.
  • Integration: Connects to WhatsApp Business Cloud for automated messaging.

Additional Notes

  1. Customization:

    • You can modify the AI prompt to adapt the recommendations to the athlete's specific goals or fitness levels.
    • The workflow is flexible and can accommodate additional nodes for more advanced analysis or output formats.
  2. Scalability:

    • Ideal for individual athletes or coaches managing multiple athletes.
    • Can be expanded to include additional metrics or insights based on user preferences.
  3. Performance Metrics Handled:

    • Swimming: SWOLF, stroke count, pace.
    • Cycling: Cadence, power zones, elevation.
    • Running: Pacing, stride length, heart rate zones.

Implementation Steps

  1. Set Up Strava API Key:

    • Log in to Strava Developers to generate your API key.
    • Integrate the API key into the Strava Trigger node.
  2. Configure Google Gemini Integration:

    • Use your Google Gemini (PaLM) API credentials in the Google Gemini Chat Model node.
  3. Customize Email and WhatsApp Messaging:

    • Update the Send Email and WhatsApp Business Cloud nodes with the recipientโ€™s details.
  4. Automate Execution:

    • Deploy the workflow and use n8n's scheduling features or cron jobs for periodic execution.

GET n8n Now

N8N COURSE

n8n Book

Developer Notes

By using this workflow, triathletes and coaches can elevate training to the next level with AI-powered insights and actionable recommendations.

n8n AI Fitness Coach: Strava Data Analysis and Personalized Training Insights

This n8n workflow leverages AI to analyze Strava activity data and generate personalized fitness insights and training recommendations. It acts as a virtual fitness coach, delivering tailored advice directly to users via email or WhatsApp.

What it does

This workflow automates the following steps:

  1. Monitors Strava Activities: It triggers whenever a new activity is recorded on Strava.
  2. Processes Activity Data: It takes the raw Strava activity data as input.
  3. Analyzes with AI: An AI Agent (powered by Google Gemini Chat Model) processes the Strava data to understand the activity, identify patterns, and generate insights.
  4. Generates Personalized Advice: Based on the AI analysis, it creates personalized training insights, performance summaries, and recommendations.
  5. Delivers Insights: The generated insights can be sent to the user via:
    • Email: Using the "Send Email" node, it can send a detailed email.
    • WhatsApp: Using the "WhatsApp Business Cloud" node, it can send concise messages.
    • Gmail: The "Gmail" node is also available, potentially for sending emails or interacting with Gmail.
  6. Custom Logic (Optional): A "Code" node is included, allowing for custom JavaScript logic to further process data or format output before delivery.
  7. Documentation/Notes: A "Sticky Note" is present, likely for workflow documentation or temporary notes.

Prerequisites/Requirements

To use this workflow, you will need:

  • n8n Instance: A running n8n instance.
  • Strava Account: An active Strava account connected via an n8n Strava credential.
  • Google Gemini API Key: Access to the Google Gemini API for the "Google Gemini Chat Model" node.
  • Email Service (SMTP): An SMTP server configured for the "Send Email" node, or a Gmail account for the "Gmail" node.
  • WhatsApp Business Account (Optional): If using WhatsApp, a WhatsApp Business Cloud account and associated n8n credential.

Setup/Usage

  1. Import the Workflow: Download the JSON provided and import it into your n8n instance.
  2. Configure Credentials:
    • Strava: Set up your Strava OAuth2 credential.
    • Google Gemini: Configure your Google Gemini API key credential for the "Google Gemini Chat Model" node.
    • Email: Set up your SMTP or Gmail credential for the "Send Email" and/or "Gmail" nodes.
    • WhatsApp (Optional): Configure your WhatsApp Business Cloud credential if you plan to use this delivery method.
  3. Customize AI Agent:
    • Open the "AI Agent" node and ensure the prompt and tools are configured to your specific fitness analysis requirements. You might want to define what kind of insights you expect (e.g., pace analysis, recovery recommendations, training zone feedback).
    • Verify the "Google Gemini Chat Model" is correctly linked and configured within the AI Agent.
  4. Customize Output:
    • Code Node: Modify the "Code" node if you need to transform the AI-generated insights into a specific format before sending.
    • Email/WhatsApp Nodes: Configure the "Send Email", "Gmail", or "WhatsApp Business Cloud" nodes with the recipient's information and the desired message content, pulling data from the preceding AI Agent and Code nodes.
  5. Activate the Workflow: Once all credentials and configurations are set, activate the workflow. It will now automatically trigger upon new Strava activities.

Related Templates

AI-Powered Invoice Processing Automation with Mistral OCR & GPT-5.2

๐Ÿš€ Automate Invoice Processing with an End-to-End AI Workflow Powered by GPT-5.2 Transform your invoice management with a fully automated, AI-driven invoice processing workflow built on n8n, combining Mistral AI OCR and OpenAI GPT-5.2 for unmatched accuracy, scalability, and speed. This intelligent document automation system automatically extracts, structures, validates, and standardizes invoice data from PDFs and scanned documentsโ€”eliminating manual data entry and reducing accounting errors to near zero. ๐Ÿ” Key Features of This AI Invoice Automation Workflow โœ… Advanced OCR for Invoice Recognition Powered by Mistral AIโ€™s state-of-the-art OCR, optimized for: Complex invoice layouts Multi-language documents Scanned PDFs and low-quality images Tables, line items, and financial fields โœ… Intelligent Invoice Data Extraction with GPT-5.2 Uses OpenAI GPT-5.2, the latest-generation language model, to: Understand invoice context and structure Identify vendors, customers, and payment terms Normalize inconsistent formats across suppliers Convert unstructured OCR text into clean, structured data โœ… Multi-Page Invoice Processing Automatically merges and processes multi-page invoices, ensuring: Accurate line-item continuity Correct totals and tax calculations Reliable page-by-page data consolidation โœ… Fully Automated, No-Code Workflow (n8n) From file upload to structured JSON output in seconds: Zero manual intervention Scalable for high invoice volumes Ideal for SMEs, enterprises, and finance teams โœ… Custom JSON Schema for Accounting Systems Exports standardized invoice data ready for: ERP systems Accounting software Finance dashboards Data warehouses ๐Ÿ“Š Invoice Data Automatically Extracted Supplier and customer details Invoice number, issue date, due date Payment terms and currency Detailed line items (description, quantity, unit price, tax) Subtotals, VAT / tax breakdowns, grand totals User metadata and workflow query context ๐Ÿ”ง Technical Architecture & Workflow Overview This AI-powered invoice processing pipeline demonstrates how to: Monitor Google Drive for new invoice uploads Convert PDF or image files to Base64 Call Mistral AI OCR APIs with authentication Combine and clean multi-page OCR outputs Use GPT-5.2 AI agents with optimized system prompts Transform raw text into validated, structured JSON schemas Deliver production-ready data for downstream systems โšก Getting Started in Minutes Create a Mistral AI account โ†’ https://console.mistral.ai/ Configure your OpenAI API key for GPT-5.2 Connect your Google Drive credentials Import the n8n workflow and run ๐Ÿš€ ๐Ÿ’ผ Real-World Business Use Cases ๐Ÿ“Œ Finance & Accounting Automation Automatic invoice capture and reconciliation Faster month-end closing Reduced human error ๐Ÿ“Œ Accounts Payable & Expense Management Streamline vendor invoice processing Accelerate approval workflows Improve cash flow visibility ๐Ÿ“Œ Document Digitization & Data Extraction Convert PDFs and scanned invoices into structured data Centralize document intelligence ๐Ÿ“Œ Business Intelligence & Spend Analysis Analyze supplier spending Track cost categories Enable data-driven financial decisions ๐ŸŒ Why Combine OCR + GPT-5.2 for Invoice Processing? By combining best-in-class OCR technology with GPT-5.2โ€™s deep contextual understanding, this workflow delivers: Higher extraction accuracy than rule-based systems Faster processing at scale Future-proof AI automation for finance operations ๐Ÿ”‘ Keywords & SEO Tags invoiceProcessingAutomation AIInvoiceProcessing OCRInvoiceExtraction GPT52 OpenAIGPT52 MistralAI n8nAutomation AccountsPayableAutomation FinanceAutomation DocumentAI IntelligentDocumentProcessing InvoiceOCR

BadrBy Badr
949

Multi-channel workflow error alerts with Telegram, Gmail & messaging apps

The Error Notification workflow is designed to instantly notify you whenever any other n8n workflow encounters an error, using popular communication channels like Telegram and Gmailโ€”with optional support for Discord, Slack, and WhatsApp. ๐Ÿ’ก Why Use Error Notification workflow? Immediate Awareness: Get instant alerts when workflows fail, preventing unnoticed errors and downtime. Multi-Channel Flexibility: Notify your team via Telegram, Gmail, and optionally Slack, Discord, or WhatsApp. Detailed Context: Receive rich error information including the error message, node name, time, and execution link for quicker fixes. Easy Integration: Built with native n8n nodes and customizable code, simple to adopt without complex setup. Open Source & Free: Use and adapt this workflow at no cost, making professional error monitoring accessible. โšก Who Is This For? n8n Workflow Developers: Quickly spot and respond to automation issues in development or production. Operations Teams: Maintain uptime and swiftly troubleshoot errors across multiple workflows. Small to Medium Businesses: Gain professional error alerting without expensive monitoring tools. Automation Enthusiasts: Enhance your automation reliability with real-time failure notifications. โ“ What Problem Does It Solve? This workflow embedd error detection and notification directly within your n8n instance. It automates the process of catching errors as they occur, compiling meaningful context, and delivering it instantly via your preferred messaging platforms. This drastically reduces your response time to issues and streamlines error management, improving your automation reliability and operational confidence. ๐Ÿ”ง What This Workflow Does โฑ Trigger: Listens for any error generated in your n8n workflows using the n8n Error Trigger node. ๐Ÿ“Ž Step 2: Executes a Code node that formats a detailed error message capturing workflow name, error node, description, timestamp, and an execution URL. ๐Ÿ” Step 3: Sends the formatted error notification to multiple communication channels: Telegram and Gmail by default, plus optionally Discord, Slack, and WhatsApp (disabled by default). ๐Ÿ’Œ Step 4: Delivers rich, parsed HTML-formatted messages to ensure error readability and immediate actionability. ๐Ÿ” Setup Instructions Import the provided .json file into your n8n instance (Cloud or self-hosted). Set up credentials: Gmail OAuth credentials for sending emails via Gmail node Telegram API credentials for Telegram notifications (Optional) Discord Webhook URL credential for Discord notifications (Optional) Slack Webhook credential for Slack notifications (Optional) WhatsApp connection credentials (if enabled) Customize the Code node if needed to adjust the error message format or target chat IDs. Update the chat IDs and recipient details in each notification node according to your channels. Test the workflow by manually triggering an error in another workflow to verify proper notifications. ๐Ÿงฉ Pre-Requirements Active n8n instance (cloud or self-hosted) with version supporting Error Trigger node Telegram bot credentials and chat ID (Optional) Gmail, Discord, Slack, or WhatsApp accounts and webhook credentials if you want to use those channels ๐Ÿ› ๏ธ Customize It Further Enable and configure additional notification nodes like Slack or WhatsApp to fit your team's communication style. Customize the error message template in the Code node to include extra metadata or format it differently (e.g., markdown). Integrate with incident management tools via webhook nodes or create tickets automatically on error. ๐Ÿง  Nodes Used Error Trigger Code Telegram Gmail Discord (disabled) Slack (disabled) WhatsApp (disabled) Sticky Note (for description) ๐Ÿ“ž Support Made by: khaisa Studio Tag: notification,error,monitoring,workflow,automation,alerts Category: Monitoring & Alerts Need a custom? Need a custom? contact me on LinkedIn or Web

Khairul MuhtadinBy Khairul Muhtadin
3028

AI-driven competitor & market intelligence with GPT 4 & Apify

Automated AI-Driven Competitor & Market Intelligence System Problem Solved: Small and Medium-sized IT companies often struggle to stay ahead in a rapidly evolving market. Manually tracking competitor moves, pricing changes, product updates, and emerging market trends is time-consuming, inconsistent, and often too slow for agile sales strategies. This leads to missed sales opportunities, ineffective pitches, and a reactive rather than proactive market approach. Solution Overview: This n8n workflow automates the continuous collection and AI-powered analysis of competitor data and market trends. By leveraging web scraping, RSS feeds, and advanced AI models, it transforms raw data into actionable insights for your sales and marketing teams. The system generates structured reports, notifies relevant stakeholders, and stores intelligence in your database, empowering your team with real-time, strategic information. For Whom: This high-value workflow is perfect for: IT Solution Providers & SaaS Companies: To maintain a competitive edge and tailor sales pitches based on competitor weaknesses and market opportunities. Sales & Marketing Leaders: To gain comprehensive, automated market intelligence without extensive manual research. Product Development Teams: To identify market gaps and validate new feature development based on competitive landscapes and customer sentiment. Business Strategists: To inform strategic planning with data-driven insights into industry trends and competitive threats. How It Works (Scope of the Workflow) โš™๏ธ This system establishes a powerful, automated pipeline for market and competitor intelligence: Scheduled Data Collection: The workflow runs automatically at predefined intervals (e.g., weekly), initiating data retrieval from various online sources. Diverse Information Gathering: It pulls data from competitor websites (pricing, features, blogs via web scraping services), industry news and blogs (via RSS feeds), and potentially other sources. Intelligent Data Preparation: Collected data is aggregated, cleaned, and pre-processed using custom code to ensure it's in an optimal format for AI analysis, removing noise and extracting relevant text. AI-Powered Analysis: An advanced AI model (like OpenAI's GPT-4o) performs in-depth analysis on the cleaned data. It identifies competitor strengths, weaknesses, new offerings, pricing changes, customer sentiment from reviews, emerging market trends, and suggests specific opportunities and threats for your company. Automated Report Generation: The AI's structured insights are automatically populated into a professional Google Docs report using a predefined template, making the intelligence easily digestible for your team. Team Notification: Stakeholders (sales leads, marketing managers) receive automated notifications via Slack (or email), alerting them to the new report and key insights. Strategic Data Storage & Utilization: All analyzed insights are stored in a central database (e.g., PostgreSQL). This builds a historical record for long-term trend analysis and can optionally trigger sub-workflows to generate personalized sales talking points directly relevant to ongoing deals or specific prospects. --- Setup Steps ๐Ÿ› ๏ธ (Building the Workflow) To implement this sophisticated workflow in your n8n instance, follow these detailed steps: Prepare Your Digital Assets & Accounts: Google Sheet (Optional, if using for CRM data): For simpler CRM, create a sheet with CompetitorName, LastAnalyzedDate, Strengths, Weaknesses, Opportunities, Threats, SalesTalkingPoints. API Keys & Credentials: OpenAI API Key: Essential for the AI analysis. Web Scraping Service API Key: For services like Apify, Crawlbase, or similar (e.g., Bright Data, ScraperAPI). Database Access: Credentials for your PostgreSQL/MySQL database. Ensure you've created necessary tables (competitorprofiles, markettrends) with appropriate columns. Google Docs Credential: To link n8n to your Google Drive for report generation. Create a template Google Doc with placeholders (e.g., {{competitorName}}, {{strengths}}). Slack Credential: For sending team notifications to specific channels. CRM API Key (Optional): If directly integrating with HubSpot, Salesforce, or custom CRM via API. Identify Data Sources for Intelligence: Compile a list of competitor website URLs you want to monitor (e.g., pricing pages, blog sections, news). Identify relevant online review platforms (e.g., G2, Capterra) for competitor products. Gather RSS Feed URLs from key industry news sources, tech blogs, and competitor's own blogs. Define keywords for general market trends or competitor mentions, if using tools that provide RSS feeds (like Google Alerts). Build the n8n Workflow (10 Key Nodes): Start a new workflow in n8n and add the following nodes, configuring their parameters and connections carefully: Cron (Scheduled Analysis Trigger): Set this to trigger daily or weekly at a specific time (e.g., Every Week, At Hour: 0, At Minute: 0). HTTP Request (Fetch Competitor Web Data): Configure this to call your chosen web scraping service's API. Set Method to POST, URL to the service's API endpoint, and build the JSON/Raw Body with the startUrls (competitor websites, review sites) for scraping, including your API Key in Authentication (e.g., Header Auth). RSS Feed (Fetch News & Blog RSS): Add the URLs of competitor blogs and industry news RSS feeds. Merge (Combine Data Sources): Connect inputs from both Fetch Competitor Web Data and Fetch News & Blog RSS. Use Merge By Position. Code (Pre-process Data for AI): Write JavaScript code to iterate through merged items, extract relevant text content, perform basic cleaning (e.g., HTML stripping), and limit text length for AI input. Output should be an array of objects with content, title, url, and source. OpenAI (AI Analysis & Competitor Insights): Select your OpenAI credential. Set Resource to Chat Completion and Model to gpt-4o. In Messages, create a System message defining AI's role and a User message containing the dynamic prompt (referencing {{ $json.map(item => ... ).join('\\n\\n') }} for content, title, url, source) and requesting a structured JSON output for analysis. Set Output to Raw Data. Google Docs (Generate Market Intelligence Report): Select your Google Docs credential. Set Operation to Create document from template. Provide your Template Document ID and map the Values from the parsed AI output (using JSON.parse($json.choices[0].message.content).PropertyName) to your template placeholders. Slack (Sales & Marketing Team Notification): Select your Slack credential. Set Chat ID to your team's Slack channel ID. Compose the Text message, referencing the report link ({{ $json.documentUrl }}) and key AI insights (e.g., {{ JSON.parse($json.choices[0].message.content).Competitor_Name }}). PostgreSQL (Store Insights to Database): Select your PostgreSQL credential. Set Operation to Execute Query. Write an INSERT ... ON CONFLICT DO UPDATE SQL query to store the AI insights into your competitorprofiles or markettrends table, mapping values from the parsed AI output. OpenAI (Generate Personalized Sales Talking Points - Optional Branch): This node can be part of the main workflow or a separate, manually triggered workflow. Configure it similarly to the main AI node, but with a prompt tailored to generate sales talking points based on a specific sales context and the stored insights. Final Testing & Activation: Run a Test: Before going live, manually trigger the workflow from the first node. Carefully review the data at each stage to ensure correct processing and output. Verify that reports are generated, notifications are sent, and data is stored correctly. Activate Workflow: Once testing is complete and successful, activate the workflow in n8n. This system will empower your IT company's sales team with invaluable, data-driven intelligence, enabling them to close more deals and stay ahead in the market.

MarthBy Marth
910