Convert training prescriptions to Intervals.icu workouts with Claude Opus AI
Ready for 3.0What this workflow does
This AI workflow has 10 nodes and runs when someone submits an n8n form (“Create workout”). Along the way it connects Anthropic Chat Model and Google Gemini Chat Model. It also calls intervals.icu over HTTP.
How it runs
Trigger: When someone submits an n8n form (“Create workout”).
- GetAthleteInfo (HTTP Request): calls intervals.icu
- SetAthleteVars (Edit Fields (Set)): sets 8 fields: max_hr, lt_hr, ftp…
- CreateIntervalsWorkoutAgent (AI Agent): runs an AI agent, with model: Anthropic Chat Model; output parser: Structured Output Parser
- PrepareAgentOutputToWorkoutArray (Code): runs custom JavaScript code
- CreateWorkoutAPI (HTTP Request): calls intervals.icu (POST)
- TheEndForm (n8n Form): shows the next form page
Services it uses
HTTP calls to: intervals.icu
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (9)
- Anthropic Chat Model
@n8n/n8n-nodes-langchain.lmChatAnthropic - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Edit Fields (Set)
n8n-nodes-base.set - n8n Form Trigger
n8n-nodes-base.formTrigger - HTTP Request
n8n-nodes-base.httpRequest - AI Agent
@n8n/n8n-nodes-langchain.agent - Code
n8n-nodes-base.code - n8n Form
n8n-nodes-base.form
From the author
Description Transform training prescriptions into perfectly formatted Intervals.icu workouts using AI. This workflow automatically converts free-text workout descriptions into structured interval training sessions with proper heart rate zones, pace…