Convert training prescriptions to Intervals.icu workouts with Claude Opus AI
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 calculations, and exercise formatting.
What this workflow does
- Collects workout details via a web form (date, title, and workout description)
- Fetches athlete data from Intervals.icu (FTP, max HR, threshold pace, LTHR)
- Processes with AI using Claude Opus 4.1 to intelligently parse and format the workout
- Auto-detects workout type (Run, Ride, Strength, HYROX, CrossFit, etc.)
- Converts training zones - RPE → HR%, pace calculations, power zones
- Formats workout structure with proper transitions, rest periods, circuit formatting
- Creates the workout in Intervals.icu via API
Use cases
- Coaches: Convert training plans from documents/spreadsheets into Intervals.icu format
- Athletes: Quickly add structured workouts from coaching apps or training programs
- Hybrid training: Handle complex HYROX, CrossFit, or multi-sport sessions with circuit formatting
- Time savings: Eliminate manual workout entry and zone calculations
Supported workout types
Running, cycling, swimming, strength training, HYROX, CrossFit, indoor rowing, virtual training (Zwift), triathlon, and more.
Key features
✅ Intelligent workout type detection
✅ Automatic RPE to HR zone conversion using athlete-specific data
✅ Proper formatting for intervals, circuits, supersets, and progressions
✅ Adds transitions between exercises/machines
✅ Calculates exercise durations and pacing
✅ Handles warmup/cooldown sections
✅ Generates unique workout IDs
Setup requirements
- Intervals.icu account with API access (API key required)
- Anthropic API key for Claude AI
- Athlete must have training zones configured in Intervals.icu (FTP, max HR, LTHR, threshold pace)
Setup instructions
Getting your Intervals.icu API key
- Log in to Intervals.icu
- Go to Settings (gear icon) → Developer Settings
- Click Generate API Key (or copy your existing key)
- Save the API key securely
Configuring credentials in n8n
For Intervals.icu (HTTP Basic Auth):
- In n8n, open the GetAthleteInfo or CreateWorkoutAPI node
- Click on Credentials → Create New Credential
- Select HTTP Basic Auth
- Enter:
- Username:
API_KEY(literally type "API_KEY") - Password: Your actual API key from Intervals.icu
- Username:
- Click Save
- Apply this credential to both HTTP Request nodes
For Anthropic:
- Open the Anthropic Chat Model node
- Click on Credentials → Create New Credential
- Enter your Anthropic API key
- Click Save
Important: The Intervals.icu API uses HTTP Basic Authentication where the username is always the literal string "API_KEY" and the password is your actual API key.
How it works
The workflow uses a sophisticated AI agent with a detailed system prompt that understands training terminology, zones, and Intervals.icu formatting requirements. It applies sport-specific rules to ensure workouts are properly structured for tracking during training sessions.
Convert Training Prescriptions to Intervals.icu Workouts with Claude Opus AI
This n8n workflow automates the conversion of free-text training prescriptions into structured workout plans compatible with Intervals.icu, leveraging the power of Claude Opus AI. It provides a user-friendly form interface to input training details and then uses AI to interpret and format them into a JSON structure that can be used to create workouts.
Description
This workflow simplifies the process of creating structured workouts for platforms like Intervals.icu from natural language descriptions. Instead of manually entering each interval, duration, and intensity, users can describe their intended workout in a simple text field. The workflow then uses a large language model (LLM) to parse this text, extract key workout parameters, and output a structured JSON object, which can then be used to create or update workouts in Intervals.icu.
What it does
- Triggers via Form Submission: The workflow starts when a user submits data through an n8n form.
- Collects Training Prescription: The form collects a free-text description of the training session.
- Prepares AI Prompt: A "Set" node takes the raw input and formats it into a clear prompt for the AI agent, instructing it to extract specific workout components.
- AI Agent Processes Request: An "AI Agent" node, configured with the Anthropic Claude Opus Chat Model, receives the prompt and the training prescription.
- Parses AI Output: A "Structured Output Parser" node ensures the AI's response is formatted into a consistent JSON structure, defining workout steps, duration, intensity, and other relevant metrics.
- Outputs Structured Workout Data: The final output is a JSON object representing the structured workout, ready for integration with platforms like Intervals.icu.
Prerequisites/Requirements
- n8n Instance: A running n8n instance (cloud or self-hosted).
- Anthropic Account & API Key: An API key for the Anthropic Claude Opus model (configured as a credential in n8n).
- Intervals.icu Account (Optional): While the workflow outputs the data in a format suitable for Intervals.icu, direct integration to create the workout is not included in this specific workflow definition. You would need an Intervals.icu API key and an additional HTTP Request node to send the generated JSON.
Setup/Usage
- Import the Workflow: Download the provided JSON and import it into your n8n instance.
- Configure Anthropic Credentials:
- In n8n, go to "Credentials".
- Add a new credential of type "Anthropic API".
- Enter your Anthropic API Key.
- Activate the Workflow: Once imported and credentials are set, activate the workflow.
- Access the n8n Form: The "n8n Form Trigger" node will provide a unique URL. Share this URL with users who need to submit training prescriptions.
- Submit Training Prescriptions: Users will fill out the form with their workout descriptions.
- Review Output: After a submission, you can view the execution history to see the structured JSON output generated by the AI Agent. This output can then be used manually or integrated into further steps (e.g., an HTTP Request to Intervals.icu) to create the actual workout.
Related Templates
AI-powered code review with linting, red-marked corrections in Google Sheets & Slack
Advanced Code Review Automation (AI + Lint + Slack) Who’s it for For software engineers, QA teams, and tech leads who want to automate intelligent code reviews with both AI-driven suggestions and rule-based linting — all managed in Google Sheets with instant Slack summaries. How it works This workflow performs a two-layer review system: Lint Check: Runs a lightweight static analysis to find common issues (e.g., use of var, console.log, unbalanced braces). AI Review: Sends valid code to Gemini AI, which provides human-like review feedback with severity classification (Critical, Major, Minor) and visual highlights (red/orange tags). Formatter: Combines lint and AI results, calculating an overall score (0–10). Aggregator: Summarizes results for quick comparison. Google Sheets Writer: Appends results to your review log. Slack Notification: Posts a concise summary (e.g., number of issues and average score) to your team’s channel. How to set up Connect Google Sheets and Slack credentials in n8n. Replace placeholders (<YOURSPREADSHEETID>, <YOURSHEETGIDORNAME>, <YOURSLACKCHANNEL_ID>). Adjust the AI review prompt or lint rules as needed. Activate the workflow — reviews will start automatically whenever new code is added to the sheet. Requirements Google Sheets and Slack integrations enabled A configured AI node (Gemini, OpenAI, or compatible) Proper permissions to write to your target Google Sheet How to customize Add more linting rules (naming conventions, spacing, forbidden APIs) Extend the AI prompt for project-specific guidelines Customize the Slack message formatting Export analytics to a dashboard (e.g., Notion or Data Studio) Why it’s valuable This workflow brings realistic, team-oriented AI-assisted code review to n8n — combining the speed of automated linting with the nuance of human-style feedback. It saves time, improves code quality, and keeps your team’s review history transparent and centralized.
Ai website scraper & company intelligence
AI Website Scraper & Company Intelligence Description This workflow automates the process of transforming any website URL into a structured, intelligent company profile. It's triggered by a form, allowing a user to submit a website and choose between a "basic" or "deep" scrape. The workflow extracts key information (mission, services, contacts, SEO keywords), stores it in a structured Supabase database, and archives a full JSON backup to Google Drive. It also features a secondary AI agent that automatically finds and saves competitors for each company, building a rich, interconnected database of company intelligence. --- Quick Implementation Steps Import the Workflow: Import the provided JSON file into your n8n instance. Install Custom Community Node: You must install the community node from: https://www.npmjs.com/package/n8n-nodes-crawl-and-scrape FIRECRAWL N8N Documentation https://docs.firecrawl.dev/developer-guides/workflow-automation/n8n Install Additional Nodes: n8n-nodes-crawl-and-scrape and n8n-nodes-mcp fire crawl mcp . Set up Credentials: Create credentials in n8n for FIRE CRAWL API,Supabase, Mistral AI, and Google Drive. Configure API Key (CRITICAL): Open the Web Search tool node. Go to Parameters → Headers and replace the hardcoded Tavily AI API key with your own. Configure Supabase Nodes: Assign your Supabase credential to all Supabase nodes. Ensure table names (e.g., companies, competitors) match your schema. Configure Google Drive Nodes: Assign your Google Drive credential to the Google Drive2 and save to Google Drive1 nodes. Select the correct Folder ID. Activate Workflow: Turn on the workflow and open the Webhook URL in the “On form submission” node to access the form. --- What It Does Form Trigger Captures user input: “Website URL” and “Scraping Type” (basic or deep). Scraping Router A Switch node routes the flow: Deep Scraping → AI-based MCP Firecrawler agent. Basic Scraping → Crawlee node. Deep Scraping (Firecrawl AI Agent) Uses Firecrawl and Tavily Web Search. Extracts a detailed JSON profile: mission, services, contacts, SEO keywords, etc. Basic Scraping (Crawlee) Uses Crawl and Scrape node to collect raw text. A Mistral-based AI extractor structures the data into JSON. Data Storage Stores structured data in Supabase tables (companies, company_basicprofiles). Archives a full JSON backup to Google Drive. Automated Competitor Analysis Runs after a deep scrape. Uses Tavily web search to find competitors (e.g., from Crunchbase). Saves competitor data to Supabase, linked by company_id. --- Who's It For Sales & Marketing Teams: Enrich leads with deep company info. Market Researchers: Build structured, searchable company databases. B2B Data Providers: Automate company intelligence collection. Developers: Use as a base for RAG or enrichment pipelines. --- Requirements n8n instance (self-hosted or cloud) Supabase Account: With tables like companies, competitors, social_links, etc. Mistral AI API Key Google Drive Credentials Tavily AI API Key (Optional) Custom Nodes: n8n-nodes-crawl-and-scrape --- How It Works Flow Summary Form Trigger: Captures “Website URL” and “Scraping Type”. Switch Node: deep → MCP Firecrawler (AI Agent). basic → Crawl and Scrape node. Scraping & Extraction: Deep path: Firecrawler → JSON structure. Basic path: Crawlee → Mistral extractor → JSON. Storage: Save JSON to Supabase. Archive in Google Drive. Competitor Analysis (Deep Only): Finds competitors via Tavily. Saves to Supabase competitors table. End: Finishes with a No Operation node. --- How To Set Up Import workflow JSON. Install community nodes (especially n8n-nodes-crawl-and-scrape from npm). Configure credentials (Supabase, Mistral AI, Google Drive). Add your Tavily API key. Connect Supabase and Drive nodes properly. Fix disconnected “basic” path if needed. Activate workflow. Test via the webhook form URL. --- How To Customize Change LLMs: Swap Mistral for OpenAI or Claude. Edit Scraper Prompts: Modify system prompts in AI agent nodes. Change Extraction Schema: Update JSON Schema in extractor nodes. Fix Relational Tables: Add Items node before Supabase inserts for arrays (social links, keywords). Enhance Automation: Add email/slack notifications, or replace form trigger with a Google Sheets trigger. --- Add-ons Automated Trigger: Run on new sheet rows. Notifications: Email or Slack alerts after completion. RAG Integration: Use the Supabase database as a chatbot knowledge source. --- Use Case Examples Sales Lead Enrichment: Instantly get company + competitor data from a URL. Market Research: Collect and compare companies in a niche. B2B Database Creation: Build a proprietary company dataset. --- WORKFLOW IMAGE --- Troubleshooting Guide | Issue | Possible Cause | Solution | |-------|----------------|-----------| | Form Trigger 404 | Workflow not active | Activate the workflow | | Web Search Tool fails | Missing Tavily API key | Replace the placeholder key | | FIRECRAWLER / find competitor fails | Missing MCP node | Install n8n-nodes-mcp | | Basic scrape does nothing | Switch node path disconnected | Reconnect “basic” output | | Supabase node error | Wrong table/column names | Match schema exactly | --- Need Help or More Workflows? Want to customize this workflow for your business or integrate it with your existing tools? Our team at Digital Biz Tech can tailor it precisely to your use case from automation logic to AI-powered enhancements. Contact: shilpa.raju@digitalbiz.tech For more such offerings, visit us: https://www.digitalbiz.tech ---
Daily cash flow reports with Google Sheets, Slack & Email for finance teams
Simplify financial oversight with this automated n8n workflow. Triggered daily, it fetches cash flow and expense data from a Google Sheet, analyzes inflows and outflows, validates records, and generates a comprehensive daily report. The workflow sends multi-channel notifications via email and Slack, ensuring finance professionals stay updated with real-time financial insights. 💸📧 Key Features Daily automation keeps cash flow tracking current. Analyzes inflows and outflows for actionable insights. Multi-channel alerts enhance team visibility. Logs maintain a detailed record in Google Sheets. Workflow Process The Every Day node triggers a daily check at a set time. Get Cash Flow Data retrieves financial data from a Google Sheet. Analyze Inflows & Outflows processes the data to identify trends and totals. Validate Records ensures all entries are complete and accurate. If records are valid, it branches to: Sends Email Daily Report to finance team members. Send Slack Alert to notify the team instantly. Logs to Sheet appends the summary data to a Google Sheet for tracking. Setup Instructions Import the workflow into n8n and configure Google Sheets OAuth2 for data access. Set the daily trigger time (e.g., 9:00 AM IST) in the "Every Day" node. Test the workflow by adding sample cash flow data and verifying reports. Adjust analysis parameters as needed for specific financial metrics. Prerequisites Google Sheets OAuth2 credentials Gmail API Key for email reports Slack Bot Token (with chat:write permissions) Structured financial data in a Google Sheet Google Sheet Structure: Create a sheet with columns: Date Cash Inflow Cash Outflow Category Notes Updated At Modification Options Customize the "Analyze Inflows & Outflows" node to include custom financial ratios. Adjust the "Validate Records" filter to flag anomalies or missing data. Modify email and Slack templates with branded formatting. Integrate with accounting tools (e.g., Xero) for live data feeds. Set different trigger times to align with your financial review schedule. Discover more workflows – Get in touch with us