← Back to directory
Personal Life Medium to set up AI workflow Repurpose/Transform

Triathlon Coach Analyzes Strava Data

Source reviewed Updated 2026-07-07

After every Strava swim, bike, or run, the coach analyzes metrics like SWOLF and cadence to send instant training advice via email or...

What it does

Get personalized coaching for your swimming, cycling, and running sessions without manual data entry. The system automatically analyzes your Strava metrics like SWOLF, cadence, and heart rate zones to identify performance gaps. You receive actionable training recommendations and motivational advice directly via email or WhatsApp immediately after every activity.

Step by step

  1. Set up a webhook listener on the Strava API endpoint to capture activity completion events.
  2. Parse incoming JSON payloads to extract specific metrics like SWOLF scores and average heart rate zones.
  3. Configure the email service provider with SMTP credentials and define the recipient address mapping.

Where the LLM does the work

  • Prompt the model to interpret raw metric data into personalized coaching advice tailored to the athlete's current fitness level.
  • Instruct the LLM to generate motivational quotes that align with the specific performance gaps identified in the activity.
  • Ask the system to format the final output as a structured HTML email template with dynamic placeholders for metrics.

Watch out for

Latency spikes might delay the motivational message, so cache recent activities locally before querying the model.
HTML rendering varies across email clients, use a neutral template engine to ensure consistent display.
Personal data leakage is possible if prompts are too generic, include strict system instructions to never output raw user names.

Tools that fit

Strava Trigger API captures real-time activity updates
Code Service preprocesses and flattens raw data
Google Gemini Chat Model LLM analyzes metrics and generates insights
Send Email Service delivers detailed training advice
WhatsApp Business Cloud Service sends instant summary notifications

The agent brief

Everything your agent needs, including the gotchas. Copy it and go.
agent-brief.md
You are helping me build the following AI agent workflow.

## Goal
Triathlon Coach Analyzes Strava Data: After every Strava swim, bike, or run, the coach analyzes metrics like SWOLF and cadence to send instant training advice via email or...

## Specification
- What it does: Get personalized coaching for your swimming, cycling, and running sessions without manual data entry. The system automatically analyzes your Strava metrics like SWOLF, cadence, and heart rate zones to identify performance gaps. You receive actionable training recommendations and motivational advice directly via email or WhatsApp immediately after every activity.
- Trigger: Triggered by an event (Event · on new Strava activity)
- Autonomy: Fully hands-off
- Expected setup effort: about an afternoon
- Tools/services involved:
  - Strava Trigger: captures real-time activity updates
  - Code: preprocesses and flattens raw data
  - Google Gemini Chat Model: analyzes metrics and generates insights
  - Send Email: delivers detailed training advice
  - WhatsApp Business Cloud: sends instant summary notifications

## Known pitfalls, handle each one explicitly in your implementation
1. Latency spikes might delay the motivational message, so cache recent activities locally before querying the model.
2. HTML rendering varies across email clients, use a neutral template engine to ensure consistent display.
3. Personal data leakage is possible if prompts are too generic, include strict system instructions to never output raw user names.

## Reference implementation
https://n8n.io/workflows/2790 (workflow template)
Fetch and inspect this before building. If it matches my stack, adapt it;
if not, rebuild the pattern with my tools.

## Process requirements
1. Before building: ask me which of the listed tools I actually use and
   what my platform is (n8n / Make / code / other). Do not assume.
2. Adapt the pattern to my answers; do not force the reference stack.
3. Address every pitfall above; tell me how you handled each.
4. Provide a test plan I can run before letting this touch real data.
5. Ask before any step that sends messages, modifies data, or spends money.

Source: https://usecasesforagents.com/use-case/ai-triathlon-coach-analyzes-strava-data/ via usecasesforagents.com

Frequently asked questions

Can I use a different Niche API than Strava Trigger?

Yes. Strava Trigger is only the example niche api in this recipe. The same flow works with Bitly, Google Maps Distance Matrix API, Open-Meteo API and OpenWeatherMap. Swap the niche api connection and keep the rest of the setup as written.

Want this running in your business?

This is what I do. I design and build AI agents like this one, and keep them running. If you want it set up for your team instead of doing it yourself, get in touch.
Get in touch →

Who it's for

Built for anyone who wants this off their own plate, no team or company required.

Seen in the wild

← Back to directory