Sunday, December 22, 2024

Find out how to Observe Macros for Free (with ChatGPT) | by Graham Sahagian | The Startup | Oct, 2024

Constructing a easy course of that tracks your each day protein, fats, carbohydrate, and caloric consumption.

Picture by Rumman Amin on Unsplash

I just lately bought again into the fitness center and wished to take the entire vitamin factor severely too. I do know that I can work out all I would like but when I don’t feed my physique sufficient protein it might’t and gained’t develop (muscle). So I made a decision I wished to trace my protein consumption and figured whereas I’m at it, why not observe all of my each day macronutrients and caloric consumption?

I attempted asking ChatGPT in regards to the macronutrients in an egg and seems it does a reasonably first rate job. Right here’s what the output appeared like:

This was nice. I can use ChatGPT to trace my macros (or not less than give a reasonably correct ballpark estimate). My solely problem now could be I’ll must do lots of copying and pasting from this output into my little tracker Excel spreadsheet. Not ultimate and understanding myself, if there may be an excessive amount of friction concerned in monitoring one thing, I’ll merely cease doing it. If I could make the method simpler — fewer clicks, fewer keystrokes, much less friction- then I can construct a behavior out of it.

If I can management the output that GPT spits out, I might need a reasonably handy (and free) methodology of processing my information.

Enter Customized GPTs

Customized GPTs permit customers to mix directions, further information, and any mixture of abilities to suit a selected want — all with out touching any code. Good.

Right here is the way to arrange a simple workflow to trace your macronutrients:

  1. Create customized GPT (Optionally available) — see beneath for directions
  2. Create an Excel spreadsheet or Google Sheet (that’s what I used) with columns: date, amt, meals, carbs (g), protein (g), fats (g), energy. That is the place you’ll be monitoring your meals consumption.
  3. Enter what you ate in an itemized format. It’s as much as you the way exact you need to be. The extra granular you might be in your description and itemization, the extra correct the nutrient estimates might be.
  4. Copy the amt and meals columns out of your spreadsheet and paste them into your customized GPT (or into common GPT with the directions prepended to the info)
  5. Copy the output from GPT again into your spreadsheet. You’ll have to delete the header row.
  6. Repeat steps 3 by way of 5. Voila. Now you may have a customized macro tracker.

Making a Customized GPT

You possibly can put any identify and outline in your GPT. I named mine “Macro Estimator” and entered this description: “Offers estimate on the quantity of protein, carbs, fats and whole energy of a given record of meals in response to their quantities.” The essential half is the directions. Listed below are the directions I used

The person will present CSV-like information together with the meals and the quantity. Please return one other CSV with the estimated whole carbs, protein, fats, and energy in that. The enter information will seem like this:

amt meals
2 egg
1 slice of bread
1 strip of bacon

The output must be a CSV file with the next columns: amt, meals, carbs, protein, fats, and energy. The output must be tabbed content material with out commas. The output of carbs, protein and fats must be in grams however ought to solely be an integer (don't embrace a "g" within the output).

If you happen to don’t have a subscription to OpenAI premium

You don’t really have to construct a customized GPT for this. Though it’s barely much less handy, you possibly can merely paste the customized GPT directions earlier than your macro information every time you make a request from ChatGPT.

Here’s what which may seem like:

Now that I’ve a workflow to simply observe my macronutrients. I can plug in my information on my telephone all through the day and as soon as at night time (or every time is handy) I course of my spreadsheet with the customized GPT and get a decently correct image of the quantity of protein, fats, carbs, and energy I consumed that day. If you happen to actually need to get correct together with your macro monitoring, you will get a meals scale and weigh every ingredient out individually.

The good thing about utilizing ChatGPT to course of this information is you could enter your information in no matter phrases you need. For instance, you would say I ate 1 x fist dimension chunk of beef. The output will not be as correct as when you had entered 60g beef nevertheless you’ll achieve a tough estimate of the nutrient content material of the meals you consumed.

From right here you are able to do neat issues like visualize what you ate that day. Listed below are a pair I made straight out of Google Sheets:

Stay Tune With Fin Tips

SUBSCRIBE TO OUR NEWSLETTER AND SAVE 10% NEXT TIME YOU DINE IN

We don’t spam! Read our privacy policy for more inf

Related Articles

Latest Articles