Skip to content
flip.
All tutorials
Fitness

How to build a custom workout log app

Build a custom workout log with Flip and your AI agent. Record repetitions, compare your last saved sets and tailor a private exercise log around your routine.

17 minute readBeginner friendlyUpdated October 31, 2026
Let’s build it
Workout Log on desktop with fictional Dumbbell row history, two saved sets of ten reps, Find saved exercises and an unsaved twelve-and-ten draft.
Workout Log · Published By Flip Team · Fictional example
Display Exercise selection, quick set entry and historyRun Bounded read-only exercise and session lookupStore Two private collections for routines and sets

The finished example

Log your sets. See what you did last time.

Workout Log 1.1.1 includes an exercise picker, up to twelve reps-only sets per save, a previous-entry comparison and paged history. It loads exercises first and waits to read history until you choose Show history on web or open the iPhone History tab. The native companion also has a separate Choose exercise screen. The quick form records today’s local date; it has no weight, timer or date picker.

The public screenshots use fictional routines and sets. The web screenshot includes an unsaved two-set draft, not another completed workout. Make it yours creates a Private app with two fresh empty collections and no example records or files. Use the exact App Store page to check live-demo availability before opening it.

In this tutorial

Start with a log you can use between sets

Open the official Workout Log page and look at the entry form. The web example has two fictional routines and seven saved sets. Choosing Dumbbell row shows its earlier two sets of ten repetitions; Show history opens the saved entries. The screenshot’s draft of twelve and ten is still unsaved.

The app compares recorded counts. It does not choose your exercises, prescribe training or tell you to add weight. A larger number is a description of an entry, not a recommendation.

  • Choose an exercise or add one by name. Add or remove set rows, enter whole repetition counts and deliberately choose Save sets.
  • Find saved exercises on web checks a bounded page of saved sets for exercise names outside the current catalog. The native Choose exercise screen includes that discovery when first opened; history paging can reveal further names.
  • Each save accepts one to twelve sets using today’s local date. A saved batch keeps the exercise name it was recorded with.
  • Last shows the saved repetitions for each matching set. A draft total comparison appears only when the previous entry is complete and has the same number of sets.
  • Older and Latest browse bounded history pages. Earlier dated entries and partial groups are labelled so one page cannot masquerade as your whole log.
Your checkpoint

You know what the starting app records, which values are only an unsaved draft and which features you would like to change.

Explore the official Workout Log

Make an empty private copy and connect your agent

On that exact package page, choose Make it yours, sign in and review the installation. Name your app My Workout Log and keep its exact link. Installation is a deliberate step; opening the page or signing in does not create an app.

Your private copy begins with no routines or completed sets. If you prefer to build from scratch, create a blank private app instead and use its link in the planning prompt. Tell the agent which path you chose so it can inspect the existing app rather than replacing it.

Create a free Flip account; no invitation is required. Normal features do not require email verification. See Pricing for storage and other limits.

Connect a compatible MCP client to https://buildyourflip.com/mcp using Flip’s current connection guide. Sign in on Flip’s own page, select only this app and approve the capabilities you intend to use. Client availability and charges depend on its provider and your workspace.

Reading this guide or copying a prompt does not run it, install a skill or grant account authority. Send a prompt when you want your agent to carry out that request. Keep passwords, cookies and tokens out of the conversation.

  • Start with Read tool configuration for discovery. Configure tools is needed for settings and layout changes; saved-record reads and writes have separate capabilities.
  • The included Run performs read-only exercise and history lookups. Grant only the action access needed for the app you choose; it does not schedule workouts or write completed sets.
  • Add plugin authoring permissions only if your request needs new private component code. The quick log needs no camera, file picker, wearable connection or notification permission.

Your checkpoint

You have the exact link to a Private empty installation or blank app, with an intentionally scoped agent connection.

Connect an AI client to Flip

Plan the small log you will actually use

Describe the entry you want to make most often. For example: choose an exercise, enter three repetition counts and see the last saved entry beside the draft. Decide whether you want the existing quick form or a new workflow before asking for code.

Begin with presentation and naming. Backdated sessions, editable weights, routines with planned targets and timer controls are new feature requests, not hidden options in this release. An agent must explain their storage and compatibility needs before implementing them.

Your checkpoint

The plan names the app, the entry flow, the exact reusable components and the changes that would need new code or a separately approved schema.

Build the private version of your entry flow

Approve the plan before sending the build prompt. A small first version should keep exercise selection, repetitions and the save result obvious. New private JavaScript/TypeScript components can be built and tested under Flip’s current contracts; a successful build does not publish them.

An installed copy already has storage. Keep it and every saved record. A blank app needs explicitly declared empty collections and exact provider bindings, not the demo’s completed sets. The agent should return a link and tell you which checks still need your browser.

Your checkpoint

Your Private app opens with a clear entry flow, a named layout and intact storage bindings. Its record collections are empty or contain only the records you already chose to save.

Check two simple sets before relying on comparisons

In your own app, deliberately create a clearly named fictional exercise such as Example row check. Enter two sets of ten and save once. Keep the app open until both sets are confirmed. This is a test record you choose to create, not a claim about a real workout.

Select that exact exercise again. Last should show ten for each set. Enter an unsaved draft of twelve and ten: its total is twenty-two versus the saved twenty, a difference of two. Add a third draft row and the app should stop presenting the two-set total as a like-for-like comparison. Leave the draft unsaved for this check.

The next prompt inspects the original two saved records without creating another session. Keep their IDs so removal can later be an explicit, narrow choice. If you do not want example records in your app, perform the arithmetic with a local fictional test instead and leave your private collection empty.

Your checkpoint

The saved example is still two sets and twenty reps. The unsaved draft comparison is twenty-two versus twenty, and unequal or partial entries do not produce a complete-session claim.

Make quick entry comfortable on your screen

Try choosing an exercise, adding a row and correcting a repetition count on the device where you will log. Clear labels, a visible save result and enough room for your fingers are useful refinements before adding new metrics.

Finish any unsaved forms before applying an app package or layout update. A new presentation can remount the entry screen. Keep an interrupted save open and check its original operation before making a change that would discard its recovery state.

Your checkpoint

You can read, enter and correct a draft comfortably, with clear confirmation and recovery feedback and the same stored counts.

Read history without losing its meaning

Choose Show history on web or open History on iPhone, then use Older for the next page and Latest for the newest page. The iPhone companion has a separate Choose exercise screen. More exercises browses the catalog; choosing Log again uses the exact saved exercise and routine.

A loaded history page is reused while it remains current. After a confirmed save, history reads a fresh latest page before you continue paging. Refresh explicitly reads current data; these views do not stream changes made on another device.

New saves have a session identity. Older sets may appear as earlier dated entries grouped by date, exercise and routine. When a group crosses a page boundary, its shown subtotal is partial. More previous sets can show another page; a page of history is never an all-time total.

The quick form does not edit weights, units, notes or old dates, but existing values stay in storage. Names that differ in capitalization or whitespace remain distinct historical names. Renaming or merging them needs its own deliberate plan.

  • A confirmed saved prefix is not repeated. Continue remaining sets is for a definite failure; Recover save checks the original unconfirmed operation.
  • Keep the current operation open during recovery. The in-memory recovery window is twenty-three hours. If access or that window changes, inspect the original records in Data before reopening or saving again.
  • A read-only app can browse comparisons and history but cannot add exercises or save sets. Store and account quotas still apply even though the old prototype’s 160-set ceiling is removed.
Your checkpoint

You can distinguish a complete saved session, an earlier dated group, a partial page and an unconfirmed save.

Keep the log and its connections under your control

Your app and its records stay Private unless you deliberately change their access. Building a private component or saving a layout does not publish it. Permanent sharing of reusable code or a template is a separate explicit decision and does not include your workout records.

Remove the fictional check only when you request those exact records using their confirmed IDs and current revisions. A layout rollback changes presentation and bindings; it does not erase sets you saved.

Review the agent’s connection in Account and revoke it when you no longer need it. This walkthrough enables no reminders, background AI, wearable synchronization, HealthKit access or automatic workout detection. Those require separate implementation and explicit authority.

Your checkpoint

You have a usable private log, an understood comparison and control over saved records and agent access.

Review Flip permissions

Your app, your way

Six ways to make this app your own.

Start with one change that would help you every week. These are ideas for your agent to build in your private app, rather than features already included in the example. Copy a prompt when you are ready to ask for that change.

Put frequently used exercises first

Add a favorites view so your usual exercises are easier to choose while less frequent entries stay available in history.

Check the result: Favoriting an exercise changes its place in the picker without adding, renaming or losing a saved set.

Group exercises for a session

Create optional browsing groups such as Home and Gym, keeping group labels separate from the completed-set history.

Check the result: Moving an exercise between Home and Gym changes its browsing group while its old sessions and comparisons remain intact.

Add deliberate weight entry

Design a new optional load field if repetitions alone are not enough, with explicit units and existing weighted records kept intact.

Check the result: A new weighted entry retains its chosen unit, and an old weighted record keeps exactly the value and unit it had before the change.

Enter a missed session with an explicit date

Add a separate backfill workflow for an entry you intentionally record later, without moving the quick form away from today.

Check the result: Only the deliberately confirmed backfilled entry uses the chosen past date; existing dates and today’s quick-entry behavior stay unchanged.

Review one exercise over a chosen range

Build a focused range view with complete coverage before showing totals, rather than treating the current history page as a trend.

Check the result: A multi-page range shows a total only after coverage is complete; an incomplete read stays visibly partial and writes no new workout records.

Review a small import before saving it

Design an import preview for a log you choose to provide, with explicit mappings, duplicate handling and a bounded confirmed write plan.

Check the result: The preview explains every accepted and rejected fictional row, and cancelling it leaves the saved log completely unchanged.

Questions about building your own app

Do I have to start with the official app?

No. Make it yours creates a fresh empty Private copy of the exact official package. You can also create a blank Private app and give its link to your agent. The planning prompt must inspect which path you chose and explain the components and empty collections needed. Neither path copies the showcase’s fictional completed sets.

Does the starting app track weights, timers or past dates?

The quick form records whole repetitions for one to twelve sets using today’s local date. It has no weight, timer or date controls. Existing stored weights, units, notes and historical dates are preserved. Editable load entry, backfill, timers, wearable connections and HealthKit support are separate proposed features that need implementation and explicit permission.

Why can a comparison or history entry be partial?

History uses bounded pages rather than reading every saved set at startup. Older entries may lack a batch identity or cross a page boundary, so the app labels their shown subtotal as partial. A draft total comparison requires a complete previous entry with the same number of sets. Use the explicit paging controls instead of treating the visible page as your whole workout history.

What should I do if a multi-set save is interrupted?

Keep the current operation open. Continue remaining sets handles a definite failure, while Recover save checks the original unconfirmed operation and retains its keys. Confirmed sets must never be repeated. The in-memory recovery window is twenty-three hours; after it expires, or if access changes, inspect the original saved records in Data before reopening or submitting anything again.

Building with your agent?

Give it the same guide in Markdown, then connect Flip when you choose to build. Reading a recipe does not authorize changes to an account.

Read this guide as Markdown Explore Flip for agents

One app. Yours to shape.

Keep iterating in small steps. The same building blocks can become something entirely your own.