Auto-rename Strava activities and tweet the standouts
Turn "Morning Run" into a creative title with a real description, and share standout efforts to X automatically.
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.
Additional information
What does this prompt do?
- Watches your Strava feed every hour and rewrites any activity still using a default name like Morning Run, Lunch Ride, or Evening Swim.
- Drafts a short, creative title and a few-sentence description that capture the route, conditions, effort, and a bit of personality.
- Posts a celebratory tweet to X only when an activity is genuinely a standout, like a new distance record, a long ride, a big climb day, or a strong segment effort.
- Tracks what it already posted so you never get a duplicate tweet for the same workout.
What do I need to use this?
- A Strava account with permission for the workflow to read your activities and update titles and descriptions.
- An X (Twitter) account connected with permission to post on your behalf.
- A rough idea of what counts as a highlight for you, like a long-ride distance or a big elevation day.
How can I customize it?
- Change how often it runs, from hourly to a few times a day, or only after typical workout windows.
- Adjust your highlight rules, like the long-ride distance, the elevation threshold for a big climb day, or which starred segments count.
- Tune the writing voice for titles and descriptions, from understated and factual to playful and emoji-heavy.
- Decide what goes into the tweet, like distance, elevation, pace, a favorite stat, or a link back to the activity.
Frequently asked questions
Will it rename activities I already titled myself?
What counts as a standout effort worth tweeting?
Will it tweet the same activity twice if it runs again?
Does this work for runs, rides, swims, and other sports?
Can I review titles before they go live?
Stop leaving every workout titled "Morning Run."
Connect Strava and X once, and Geni renames your activities and celebrates your best efforts on its own.