Introducing the 4-Month AI FrameworkRead the guide
Case StudiesConsumer Fitness · Voice AI Coaching

AI Running Coach That Talks You Through Every Run

How we built StrideIQ: an iOS app that writes a race plan around the runner's fitness, then coaches them out loud during the run, reading real pace, distance and heart rate

Published

Client

StrideIQ

Timeline

Since August 2025

Technology

VOICE AI COACHING

AI Running Coach That Talks You Through Every Run case study by EdgeFirm

About $0.05 of AI voice per 45-minute coached run, estimated by EdgeFirm

A $0.50 hard spending cap per run, measured by EdgeFirm in code

Live heart rate about once a second from Garmin, Polar, Coros and chest straps

Push notifications cut to a budget of 3 per user per week

At a glance

The challenge

A coach in the runner's ear that knows the training plan, reads live heart rate and speaks up during the run, without the per-minute cost of a live voice conversation

The solution

A React Native (Expo) iOS app with a FastAPI backend: an AI plan generator, a 14-tool coaching agent, a server-side live coach that speaks short cues, Bluetooth heart-rate pairing, Apple Health sync and an admin console

The results

  • About $0.05 of AI voice per 45-minute coached run, estimated by EdgeFirm
  • A $0.50 hard spending cap per run, measured by EdgeFirm in code
  • Live heart rate about once a second from Garmin, Polar, Coros and chest straps
  • Push notifications cut to a budget of 3 per user per week
  • 115 automated backend tests that replay whole runs in milliseconds
The problem

A Coach in Your Ear Has to Know the Plan, Read Live Data and Stay Cheap

StrideIQ started as an AI insight app built on Apple Health: daily VO2 max trends and written recommendations. Users read them, but they did not change how people trained. The brief for the next version was a single sentence from a runner: "A coach in my ear while I run, telling me when to run, stop, or take a break, watching my live heart rate."

That sentence holds three hard constraints. The coach has to know what today's run is meant to be, because without a plan "your heart rate is 165" is an alarm, not coaching. It needs live heart rate. Apple Watch measures every second but syncs to the iPhone in slow batches, so the phone often sees data that is up to a minute old. And it has to cost pennies, because a consumer subscription cannot carry a live voice conversation that costs dollars per workout.

There was also a trust problem. A coach that stays silent for 45 minutes because the runner is doing everything right reads as broken. StrideIQ needed a coach that is reliably present, says real numbers and never runs up a bill on a run the user forgot to stop.

Scope of work

8 capabilities carried the build

We delivered the full product: mobile app, backend, AI systems, website and internal tooling. Eight capabilities carried the build.

01

AI training plan generator

GPT-5.1 writes a week-by-week plan toward the runner's race (5K, 10K, half or full marathon) using structured outputs, so every plan comes back validated against a schema. Pace zones come from the runner's VDOT score, and long runs build toward race day with cutback and taper weeks.

02

Goal realism check

Before a plan is generated, Riegel's race-time formula projects current fitness to the goal distance. Goals that need too big a jump for the weeks available are flagged, with a realistic target suggested.

03

Live in-ear coach

Every minute during a run, the phone sends a short heart-rate summary to the server, which decides whether to speak or stay quiet. Spoken readouts come every 3 minutes and at each mile, with time, distance, pace and heart rate against today's target.

04

Conversational AI coach

A LangChain agent with 14 tools reads the runner's plan, recent runs, workouts, VO2 trends and injury history. It can also edit the plan or log an injury. Answers stream to the app over server-sent events.

05

Bluetooth heart rate

The app pairs directly with Garmin, Polar and Coros watches in broadcast mode, or with chest straps, using the standard Bluetooth heart-rate profile. Readings arrive about once a second.

06

Apple Health sync

Heart rate, steps, VO2 max, sleep and workouts sync from Apple Health in batches, with deduplication so repeat syncs never double-count a run.

07

Subscriptions and access

In-app purchases with a 14-day trial, server-side renewal tracking through App Store Server Notifications V2, and a server-controlled force-update gate that can block outdated builds without shipping a new release.

08

Admin console and notifications

A Next.js console showing plan generation runs and failures, user activity and a replay of every live-coached run, cue by cue. Notifications run on a daily scheduler with a per-user weekly budget.

Inside the product

Inside the app one coach, every run

Product screens from StrideIQ, upscaled for this page. Each one shows a part of the app we built.

StrideIQ in-ear coach screen with a route map, a coach cue reading "Easy cooldown started, just take it nice and relaxed", pace, heart rate and an End Coaching button

01

A Running Coach in Your Ear

Route map, pace, distance and live heart rate against the day's target zone, while the coach speaks short cues through the runner's headphones, even with the screen locked.

StrideIQ Get your heart rate live sheet with Apple Watch and Garmin or heart-rate strap options and a Start Coaching button

02

Coaching That Listens to Your Heart

Garmin, Polar and Coros watches and chest straps pair over Bluetooth, so heart rate arrives about once a second and the coach speaks up at the right moment instead of reacting to data a minute late. Apple Watch is supported too.

StrideIQ today screen with 94 days to race day, a 3:58:00 marathon goal and a tempo run split into warmup, marathon effort and cooldown

03

Today's Run, Planned for You

The plan sets each day's purpose. Today's workout shows the warmup, main set and cooldown, paced to the runner's race goal, and starts with one tap straight into live coaching.

StrideIQ Run Complete summary with distance, time, heart rate, time in zones, a heart-rate chart, splits and Save Run

04

Every Run, Broken Down

Every saved run keeps its splits, heart-rate zones and chart, and the full list of what the coach said, so the runner can see how the session went against the plan.

Technology

The stack behind it

React Native (Expo), FastAPI, PostgreSQL, OpenAI GPT-5.1 and GPT-4o-mini, gpt-4o-mini-tts, LangChain, TaskIQ and Redis, Next.js, Clerk, Langfuse

OpenAIOpenAI
LangChainLangChain
PostgreSQLPostgreSQL
RedisRedis

Language models

GPT-5.1 for plan generation and premium answers. GPT-4o-mini for everyday chat and live cue writing, at about $0.0001 per coaching decision.

Voice

OpenAI gpt-4o-mini-tts behind a swappable provider interface, with an ElevenLabs adapter ready. Repeated lines are cached and replayed for free. On-device speech is the offline fallback.

Orchestration

A LangChain agent with 14 tools and a middleware that picks the model per request. TaskIQ and Redis run background jobs and scheduling.

Backend

FastAPI with async SQLAlchemy on PostgreSQL and Alembic migrations.

Mobile

React Native 0.81 on Expo 54 with Expo Router, Redux Toolkit, react-native-health, react-native-ble-manager and Skia and Victory charts.

Identity and payments

Clerk authentication on the app and the API. Apple in-app purchases verified server side.

Observability and quality

Langfuse traces every AI call. 115 automated backend tests, 14 test files of them for the live coach alone.

How we built it

Our development process

Months 1 to 3

Foundations

The FastAPI backend, Clerk authentication and the Apple Health pipeline with deduplicated batch sync. The Expo iOS app followed in September 2025. The first product turned VO2 max trends and recent workouts into daily written recommendations.

Months 4 to 6

The conversational coach

We built the AI coaching agent on LangChain with tools over the runner's own data and two models chosen per request. Every call is traced in Langfuse. The marketing website launched on Next.js.

Month 11

Costing the voice

Before writing code for live coaching, we costed three designs and the client chose the spoken coach. We also moved the speak-or-stay-quiet decision to the server, so coaching behaviour can change without an app update.

Months 11 to 12

A coach that cannot run away

Plain rules handle every gate that costs nothing to check. Cooldowns, auto-end after 10 minutes at resting heart rate or 5 minutes of silence from the phone, a 4-hour hard stop and the $0.50 spend cap. Only a decision to speak costs an AI call.

Month 12

Live heart rate

Field testing showed the coach going quiet because Apple Health delivered heart rate late. We traced it to Apple Watch batch syncing, a platform limit, and added direct Bluetooth pairing for Garmin, Polar, Coros and chest straps. No backend change was needed.

Months 13 to 15

Plan-first pivot and launch

AI plan generation with a goal realism check, plan-aware cues, one-tap run start and a new Progress page. Real runs showed that 5 minutes of quiet felt like a dead coach, so status readouts moved to every 3 minutes and every mile. We rebuilt the admin console and notifications, added the onboarding demo, and shipped the App Store update.

Transparency

Because the coaching rules are pure functions, our tests replay whole runs, including forgotten stops and dropped networks, in milliseconds. The backend has 115 automated tests, with 14 test files for the live coach alone.

After launch

New users hear the coach before they finish sign-up: onboarding includes a short live-coaching demo between the profile steps.

After launch

What changed after launch

A Coach That Speaks Up, on Every Run

The first live coach only spoke when something went wrong, so a runner doing everything right heard nothing. Readouts now start within 2 minutes and come every 3 minutes and at every mile. A 45-minute run gets about 15 readouts, measured by EdgeFirm from the live coach's configuration.

Voice at Consumer Prices

About $0.05 of voice for a 45-minute run, with spending stopped at $0.50 per run whatever happens. Generic lines such as the start and goodbye are synthesised once and replayed from cache. Estimated by EdgeFirm from OpenAI's published pricing.

A Speaking Coach, Not a Voice Call

Before building live coaching we costed three designs: prerecorded cues (free), a smart spoken coach (2 to 4 cents a workout) and a two-way voice conversation ($10 to $28 a workout, roughly 300 to 700 times more). The client chose the spoken coach and parked conversation for a future premium tier (EdgeFirm cost study, June 2026).

Heart Rate in Real Time

Runners with Garmin, Polar or Coros watches or a chest strap get heart rate about once a second over Bluetooth, instead of Apple Health's batches that can be up to a minute late.

Fewer, Better Notifications

An audit of production found 56 users getting 3 or more pushes a week with a 1.2% read rate. Notifications now run once a day with a budget of 3 per user per week, and progress updates stay inside the app. Measured by EdgeFirm from production data.

Every Coached Run Can Be Audited

The StrideIQ team can open any live session in the admin console and read the coach's full script against the runner's heart rate, so coaching quality is checked on real runs, not guessed at.

The hard part of a voice coach is not the voice. It is deciding when to speak, knowing what the run is meant to be, and making sure a forgotten run cannot cost money. We put cheap, testable rules in front of every AI call, so the model is only paid to do what rules cannot: write the one line worth saying. The same pattern applies to any product that puts an AI voice in front of customers. Decide in code, generate only when it matters, and cap the spend before launch.

Talk to the founders

Get AI live in months, not years.

Book a 30-minute strategy call with the founders who will write your code.