Auto-rename Strava activities and tweet the standouts

By General Input

Turn "Morning Run" into a creative title with a real description, and share standout efforts to X automatically.

Integrations

  • Strava
  • X (Twitter)

Type

Agentic Task

Categories

  • Personal Productivity
  • Marketing

Build me an agent workflow that runs every hour on a cron schedule. It should auto-rename my recent Strava activities with something more creative than the default "Morning Run" or "Lunch Ride", and post a short celebratory tweet to X when an activity is a genuine standout.

On each run, call Strava's List Athlete Activities for activities from the last 2 hours (use the after parameter). Filter to activities whose name still matches a Strava default pattern like "Morning Run", "Afternoon Run", "Evening Run", "Lunch Run", "Night Run", and the equivalents for Ride, Walk, Hike, Swim, Workout, etc. Skip anything I already renamed.

For each matching activity, call Strava's Get Activity for full details (distance, moving time, elevation gain, average and max pace or speed, average heart rate, weather if available, sport type, start time and location), and Get Activity Streams for the route, elevation profile, and effort pattern over time. Use those streams to find route highlights like the steepest climb, fastest segment, or longest sustained effort.

Then write a creative title between 15 and 50 characters, and a 2 to 4 sentence description that captures the route, conditions, effort feel, and a small personality note. Apply both via Strava's Update Activity. Append a small hidden marker like "[gi-auto]" to the end of the description so future runs can tell this activity has already been processed.

After updating, decide whether the activity is a highlight worth tweeting. Treat it as a highlight if any of these are true: it is a new distance personal record for that sport type (compare against my recent activities via List Athlete Activities), it is a ride over 80 km, it is a day with more than 600 m of elevation gain, or it includes a strong effort on one of my starred segments. To check the segment case, call List Segment Efforts for my starred segments with a date range covering this activity, and flag any top-3 personal effort. These thresholds should be easy to tune.

If the activity qualifies as a highlight, call X (Twitter) Create Tweet with a short celebratory post that uses the new title plus the key stats (distance, elevation, time, and one standout number like pace or a PR call-out). Keep it under 240 characters and add a couple of relevant emojis. Before tweeting, double-check the description marker to make sure I have not already posted this activity, and after posting, update the description marker to "[gi-auto+tweet]" so it is not posted again.

If no activities match, exit quietly. If anything fails, log the activity id and the reason and continue with the rest. Do not tweet for activities older than 2 hours, and do not touch any activity whose name does not look like a Strava default.

Related prompts

Explore more prompts
Turn every GetResponse newsletter into LinkedIn and X postsTrack Oura recovery next to Strava training in one sheetDaily Bitcoin and Ethereum ETF flow thread on XWeekly Strava training recap in NotionTurn your X bookmarks into a Notion knowledge baseLog every Strava activity to a Google Sheets training journalTurn new WordPress posts into engaging X threadsDaily marquee game preview tweet powered by live oddsTriage X brand mentions into Zendesk and SlackAuto-promote new Webflow blog posts to LinkedIn and X