Build a Calorie Tracker with Claude
Connect Claude AI to Notion and build a personalized calorie tracker.
Introduction
⚡️ 30 Second Summary
What if your AI assistant could track your calories for you, just by chatting?
In this project, you will connect Claude.ai to Notion using the Notion connector, build a personalized calorie tracker database, and set up a Claude.ai Project so you can log meals just by chatting with Claude.
What You'll Build
A calorie tracking system where Claude.ai reads and writes to a Notion database through the Notion connector, personalized to your dietary goals and maintained through natural conversation in a dedicated Claude.ai Project.
By the end of this project, you'll have:
- 🔗 A connected Claude.ai + Notion workspace via the Notion connector.
- 🍽️ A personalized calorie tracker database in Notion with columns for meals, calories, macros, and daily targets.
- 🤖 A Claude.ai Project with persistent instructions that tells Claude about your tracker and dietary goals.
- 💬 A tested meal-logging workflow where you chat with Claude to log meals and track your nutrition.
- 💎 Secret Mission: Build a goal progress checker to analyze your nutrition data.
Want a complete demo of how to do this project, from start to finish? Check out our 🎬 walkthrough with Maya
Do I need to pay to do this project?
No. Both Claude.ai and Notion offer free tiers that cover everything in this project, including the secret mission.
Not sure if this project is right for you? Check if it matches your goals
If you're up for a bit of a challenge, quiz yourself on the key concepts up ahead in this project.
Get Your Tools Ready
To build our calorie tracker, we need two tools working together: Claude.ai for the AI brain, and Notion for storing and organizing our meal data.
In this step, we will create accounts for both services and connect them so Claude can read and write to your Notion workspace.
In this step, get ready to:
- Sign in to Claude.ai.
- Sign in to Notion.
- Connect Notion to Claude.ai using the Notion connector.
Sign In to Claude.ai
Do you already have a Claude.ai account?
✔️ I already have an account
- Click Log in and enter your email and password.
You're all set. Move on to the next section below.
ⓧ I don't have an account yet
- Go to claude.ai and click Sign up.
- Enter your email address and create a password.
- Verify your email when you receive the confirmation message.
- Once verified, click Log in and enter your credentials.
Sign In to Notion
What is Notion?
Notion is a workspace app for notes, databases, and project management. The free tier gives you unlimited pages and blocks for personal use, which is everything you need for this project.
Do you already have a Notion account?
✔️ I already have an account
- Click Log in and enter your email and password.
You're all set. Move on to the next section below.
ⓧ I don't have an account yet
- Go to notion.so and click Get Notion free.
- Enter your email address and create a password.
- Verify your email when you receive the confirmation message.
- When prompted, select For personal use.
- Once your workspace is ready, click Log in and enter your credentials.
Connect Notion to Claude.ai
Now that both accounts are ready, let's connect them so Claude.ai can access your Notion workspace.
- In Claude.ai, click the gear icon in the bottom-left corner to open Settings.
- Select Connectors from the left sidebar.
What is a connector?
A connector lets Claude.ai access external services like Notion, Google Drive, or GitHub. The Notion connector is a directory connector, meaning Claude can browse and interact with your Notion pages directly from the chat.
- Click Browse connectors.
- Click Connect next to Notion.
Claude.ai will redirect you to a Notion authorization page.
- Select the workspace you want to connect and click Continue.
Which workspace should I select?
Choose the workspace where you want to store your calorie tracking data. If you only have one workspace, select that one. Still unsure?
- Click Allow access.
You will be redirected back to Claude.ai. The Notion connector should now appear as Connected in your Connectors settings.
Your accounts are created and Notion is connected to Claude.ai. Next up, you will use this connection to build your calorie tracking database in Notion.
Find and Explore Your Tracker Template
Your Notion connector is live and Claude.ai can now talk to your Notion workspace. The next thing we need is the actual calorie tracker itself. Before we can log any meals, we need a Notion database set up with the right structure.
But where do we get a good calorie tracker template? And once we have one, how do we know what all those columns and properties actually do?
In this step, get ready to:
- Get a calorie tracker template into your Notion workspace.
- Use Claude.ai to explore and understand the template.
Get Your Calorie Tracker Template
First, let's get a calorie tracker database into your Notion workspace. Choose one of the options below.
✔️ Use the NextWork template
- Open the NextWork calorie tracker template: NextWork Calorie Tracker.
ⓧ Find your own template
- Head to Claude.ai and start a new chat.
- Type this prompt:
Search Notion's template gallery for a calorie tracker template. I want one that lets me track meals, calories, and meal types. Can you find me a good one?
Claude will search for templates and suggest options.
How is Claude finding templates?
Notice how Claude is using the Notion connector to search through Notion's template gallery for you. This is the same connection you set up in Step 1 at work.
- Pick a template you like.
- Click Duplicate in the top-right corner of the template page.
- Select your workspace from the dropdown and confirm.
Which workspace should I pick?
Make sure you select the same workspace you connected to Claude.ai through the Notion connector in Step 1. If the template ends up in a different workspace, Claude won't be able to see it.
Your calorie tracker template is now in your Notion workspace.
What is a Notion template?
A Notion template is a pre-built page or database that you can duplicate into your own workspace. It saves you from building everything from scratch. Think of it like a recipe card that already has all the ingredients listed out.
Explore Your Template with Claude
Now that the template is in your workspace, let's use Claude.ai to understand what we are working with. Since Claude is connected to your Notion workspace through the Notion connector, it can read the database directly.
- Copy the URL of your calorie tracker page from your browser's address bar.
- Go to Claude.ai and start a new chat.
- Type this prompt, pasting in your Notion page URL:
Here's my calorie tracker template: . Tell me what I can do in this template and how you can help me get started and maintain it.
- Press Enter.
Claude will access your Notion workspace through the connector and give you an overview of the template, including its databases, columns, and what you can track.
How does Claude read my Notion database?
When you connected Notion in Step 1, you gave Claude permission to read your workspace. Now Claude can see your database's schema, which includes all the column names, property types, and any existing entries. This is the same connection that will let Claude add meals later.
Notion database basics
A Notion database is like a spreadsheet. Columns (called properties) define what data you track — text, numbers, dates, etc. Each row is an entry that is also its own Notion page. When you log a meal later, each meal becomes a row.
Databases can also have views, which are different ways to look at the same data. A table view shows rows and columns, while a calendar view shows entries by date.
Your template is in place and you understand how it is built. Next up, you will make it yours by personalizing the tracker to match your dietary goals.
Personalize Your Tracker
Your calorie tracker template is set up in Notion and Claude.ai is connected. Now it is time to make the tracker actually useful for your daily life.
Right now, the tracker is generic. But your dietary goals are not. Do you have a daily calorie target? Do you want to track macros like protein and carbs? What about dietary restrictions or water intake? These are the details that turn a template into a tool you will actually use.
In this step, you will use iterative prompting to customize your tracker through a back-and-forth conversation with Claude.
In this step, get ready to:
- Tell Claude about your personal dietary goals.
- Customize your tracker with new columns and views.
- Test your tracker by logging a sample meal.
Tell Claude About Your Goals
Instead of trying to describe everything you want in a single message, you will have a conversation with Claude where it asks you questions to understand your needs. This is called iterative prompting, and it is one of the most effective ways to get great results from AI.
- Open your conversation with Claude where you explored the template.
- Send this prompt to Claude:
I want to set up my calorie tracker for my personal goals. Ask me questions about my dietary needs so you can help me configure it.
Claude will ask you several questions about your preferences. These typically include your daily calorie target, your macro split (how much protein, carbs, and fat you want per day), any dietary restrictions or preferences, and how many meals you eat per day.
- Answer Claude's questions honestly based on your actual goals.
Claude will typically set your Target Calories, Protein Target, Carbs Target, and Fats Target in the Macro Targets database, and adjust the Meal select options (Breakfast, Lunch, Dinner, Snack, Other) to match your eating schedule.
- Open your Notion tracker and review the changes Claude made.
Test Your Tracker
Your tracker is configured, but you need to make sure everything works before you start using it daily. The best way to test is to log a sample meal and verify the entry looks correct.
- Ask Claude to log a test meal entry. For example:
Log a sample meal in my Calorie Logs: I had a chicken salad for lunch with about 450 calories, 35g protein, 15g carbs, and 20g fat.
- Open your Notion tracker and find the new entry.
- Verify that the entry has the correct values in each column.
✔️ Everything looks correct
Your tracker is working. All the columns are populated and the views display your entry correctly.
ⓧ Something looks wrong
That is okay. Let Claude know what needs fixing. For example:
- If a column is missing data, tell Claude: "The protein column is empty for my last entry. Can you update it?"
- If a view is not filtering correctly, tell Claude: "The daily summary view is not showing today's entries. Can you fix the filter?"
This is another great opportunity to practice iterative prompting. Describe what you see and what you expected, and let Claude fix it.
Still stuck?
Get help with your error or share your error with the NextWork community!
- If everything looks correct, delete the test entry from your Notion database to start fresh.
Your tracker is personalized and tested. Next up, you will set up a dedicated Claude Project so you can maintain your tracker daily with minimal effort. No more re-explaining your setup every time you chat.
Set Up Your Claude.ai Project
Your personalized calorie tracker is live in Notion, tailored to your own dietary goals. The next thing we need is a way to log meals quickly, without having to explain the tracker setup to Claude every single time you open a chat.
Claude.ai Projects solve exactly this problem. A Project is a dedicated space where you write persistent instructions once, and every new conversation inside that Project automatically inherits them. Think of it as teaching Claude who you are and what you need, so you can skip straight to tracking.
In this step, get ready to:
- Create a Claude.ai Project for your calorie tracker.
- Write persistent instructions that tell Claude about your tracker and goals.
- Test your daily meal-logging workflow.
Create a New Project
- In Claude.ai, click Projects in the left sidebar.
- Click New Project.
- Enter a name for your Project, such as NextBite.
- Add a short description, such as Daily calorie tracking assistant connected to my Notion database.
- Click Create Project.
What is a Claude.ai Project?
A Claude.ai Project is a workspace that groups related conversations together under shared persistent instructions. Every chat you start inside a Project automatically follows the instructions you set, so you do not have to repeat context each time.
Write Your Project Instructions
The Project Instructions field is where you teach Claude everything it needs to know about your tracker. These persistent instructions act as a system prompt for every conversation inside this Project.
- Click Set project instructions in the Project overview.
- Add your Project Instructions using one of the options below.
✔️ Use a template
- Copy and paste the following template into the instructions field.
You are my calorie tracking assistant. My Notion workspace has a calorie tracker with two main databases: Calorie Logs (for meal entries) and Macro Targets (for my daily goals).
When I tell you about a meal, log it in the Calorie Logs database with the item name, estimated calories, protein (g), carbs (g), fats (g), meal type, and today's date.
My daily calorie target is [X]. My macro targets are: [describe your targets here, e.g., 150g protein, 200g carbs, 60g fat].
After logging, confirm the entry and tell me my remaining calories and macros for the day.
- Replace [X] with your daily calorie target from Step 3 (e.g., 2000).
- Replace the [describe your targets here] text with the macro targets you configured in your Macro Targets database.
ⓧ Prompt Claude to write them
- Open a new chat in Claude.ai and send this prompt:
I have a calorie tracker in Notion with a Calorie Logs database and a Macro Targets database. Write me a set of Project Instructions for a Claude.ai Project that tells you how to log meals in the tracker, what columns to fill, and how to report my daily progress. Base it on the tracker template you already explored.
- Copy Claude's response and paste it into the Project Instructions field.
- Review the instructions and adjust any details like your specific calorie target or macro goals.
- Click Save.
Why write persistent instructions?
Without persistent instructions, you would need to explain your tracker layout, calorie target, and dietary goals at the start of every conversation. Writing them once means Claude already knows your setup the moment you open a new chat.
🙋♀️ Not sure what to put for your calorie target?
A common starting point is 2000 calories per day. You can always update your instructions later as your goals change. Help me figure out my daily calorie target.
Test Your Daily Workflow
Time to put everything together. Let's log a real meal and see your full workflow in action.
- In your project, type a natural message describing a meal you have eaten today.
- Add as many details as you know. For example:
I just had a chicken salad with rice for lunch, about 500 calories.
- Press Enter and wait for Claude to respond.
Claude should confirm the meal entry and tell you it has been logged in your Notion tracker.
- Open your Notion Calorie Logs database and verify the new entry appears with the correct item name, calories, protein, carbs, fats, and meal type.
What should I see?
Your Calorie Logs database should have a new row with the item name, estimated calories, macros (protein, carbs, fats), meal type, and today's date filled in. The values Claude fills in are estimates based on your description, so they may not be exact.
- Now try a follow-up question. Type:
How many calories have I had today?
Claude should check your Notion tracker, total up the day's entries, and tell you how many calories you have remaining based on your target.
✔️ Claude logged my meal correctly
Your calorie tracking workflow is up and running. Every time you want to log a meal, open a chat inside your Project and describe what you ate. Claude handles the rest.
ⓧ Something went wrong
That's okay! Let's troubleshoot:
- Check that the Notion connector is still active in Settings then Connectors.
- Make sure your Project Instructions include the correct details about your Notion tracker.
- Verify that your calorie tracker database in Notion has the columns Claude is trying to fill (meal name, calories, macros, meal type).
- Help me troubleshoot my calorie tracker.
Still stuck?
Get help with your error or share your error with the NextWork community!
Your calorie tracker is fully operational. You have a dedicated Claude.ai Project with persistent instructions, a connected Notion database, and a tested workflow for logging meals with natural conversation.
Secret mission
Your calorie tracker logs meals, but how do you know if you are actually hitting your goals?
In this secret mission, you will create a Claude Skill that analyzes your Notion calorie data and tells you how you are doing towards your targets. Unlike Project instructions that run in every conversation, a Skill is something you activate only when you need it.
In this secret mission, get ready to:
- Create a Progress Checker Claude Skill.
- Test your progress checker by activating the skill and asking Claude how you are doing.
- Refine your progress reports with different types of analysis.
Build a Goal Progress Checker
Clean Up Your Resources
Clean Up Your Resources
Decide whether to keep your resources running, pause them to come back later, or delete them entirely. This project uses free cloud services (Claude.ai and Notion), so there are no ongoing costs.
Resources you used:
- Claude.ai account (free)
- Notion account (free)
- Notion connector in Claude.ai
- Calorie tracker database in Notion
- Claude.ai Project ("NextBite")
- Progress Checker skill in Claude.ai
✔️ Keep everything running
No action needed. Choose this if you're still actively building or want to keep tracking your calories daily.
Your Notion database and Claude.ai Project are both on free tiers with no ongoing costs. Open Claude.ai anytime to log a new meal.
✋ Pause - I'll come back to this later
Disconnect the Notion connector to stop Claude from accessing your workspace, but keep your data intact so you can reconnect later.
- Open Claude.ai and navigate to Settings.
- Select Connectors.
- Find the Notion connector and click Disconnect.
Your calorie tracker database stays in Notion and your Claude.ai Project stays intact. To resume later, reconnect the Notion connector from the same settings page.
ⓧ Delete - I don't want to use this again
Remove all project resources and start fresh if you ever want to rebuild.
- Open Notion and find your calorie tracker database.
- Right-click the database page and select Move to Trash.
- Open Claude.ai and navigate to your Projects sidebar.
- Find "NextBite" and delete it.
- Navigate to Settings, then Connectors.
- Disconnect the Notion connector.
Nice work!
Nice work!
Nice work! You've just built a fully personalized AI-powered calorie tracker using Claude.ai and Notion.
You've learned how to:
- 🔗 Connect Claude.ai to Notion using the Notion connector.
- 🔍 Explore and understand a Notion database template using AI.
- 🎨 Personalize a calorie tracker with custom columns, targets, and views through iterative prompting.
- 📋 Create a Claude.ai Project with persistent instructions for daily meal logging.
- 💎 Create a Claude Skill to check your goal progress on demand using your existing Notion data.
Ready to quiz yourself?
p.s. Does it say "Still tasks to complete!" at the bottom of the screen?
This means you still have screenshots left to upload, or questions left to answer!
- Press Ctrl+F (Windows) or Command+F (Mac) on your keyboard.
- Search for the text Return to later.
- Jump straight to your incomplete tasks!
- 🙋♀️ Still stuck? Ask the community!