# Cool use of AI for analyzing a meal

**URL:** <https://community.glideapps.com/t/cool-use-of-ai-for-analyzing-a-meal/69609>\
**Category:** Project Showcase\
**Created:** [January 16, 2024, 1:25pm UTC](https://community.glideapps.com/t/cool-use-of-ai-for-analyzing-a-meal/69609 "2024-01-16T13:25:34Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Simon\_Hill](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/simon_hill/32/94730_2.png) [@Simon\_Hill](https://community.glideapps.com/u/Simon_Hill)\
**Post date:** [January 16, 2024, 1:25pm UTC](https://community.glideapps.com/t/cool-use-of-ai-for-analyzing-a-meal/69609/1 "2024-01-16T13:25:34Z")

</div>

Just sharing a little feature that makes use of the ‘Complete Chat’ AI integration. The App sends an image of some food along with a prompt that asks for a descriptive title, visible ingredients and then an estimate of some nutritional info. I ask the output to be in JSON so that I can easily handle the data.

I’m impressed with how meticulous it is at identifying ingredients… and for this use case the data is accurate enough. Nice job Glide!

[![](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/7/c/7c8875835a9dc32a76b53ecb0717ecfe3266aa91.jpeg "Glide AI integration - Analyze my meal") ](https://www.youtube.com/watch?v=WTQrBntWSFo)

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [January 16, 2024, 3:24pm UTC](https://community.glideapps.com/t/cool-use-of-ai-for-analyzing-a-meal/69609/2 "2024-01-16T15:24:49Z")

</div>

Amazing work Simon!

---

<div class="post-metadata">

**Author:** ![erwblo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/erwblo/32/75_2.png) [@erwblo](https://community.glideapps.com/u/erwblo)\
**Post date:** [January 17, 2024, 9:14am UTC](https://community.glideapps.com/t/cool-use-of-ai-for-analyzing-a-meal/69609/3 "2024-01-17T09:14:37Z")

</div>

Great work!

---

<div class="post-metadata">

**Author:** ![Ahmad\_Taleb](https://avatars.discourse-cdn.com/v4/letter/a/85e7bf/32.png) [@Ahmad\_Taleb](https://community.glideapps.com/u/Ahmad_Taleb)\
**Post date:** [January 20, 2024, 4:14pm UTC](https://community.glideapps.com/t/cool-use-of-ai-for-analyzing-a-meal/69609/4 "2024-01-20T16:14:22Z")

</div>

This is so cool! Thank you for sharing.

---

<div class="post-metadata">

**Author:** ![Kubo](https://avatars.discourse-cdn.com/v4/letter/k/8edcca/32.png) [@Kubo](https://community.glideapps.com/u/Kubo)\
**Post date:** [February 10, 2024, 11:30pm UTC](https://community.glideapps.com/t/cool-use-of-ai-for-analyzing-a-meal/69609/5 "2024-02-10T23:30:01Z")

</div>

This is very cool! I want to create something similar.  
Did you use the openAI integration to do this? I can’t find an option to send an image with a prompt to OpenAI.

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [February 10, 2024, 11:55pm UTC](https://community.glideapps.com/t/cool-use-of-ai-for-analyzing-a-meal/69609/6 "2024-02-10T23:55:15Z")

</div>

The “Complete chat” action allows you to do that.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/7/d/7dfb15e2f501fad857232b98a4f2534cb4494973.png)

---

<div class="post-metadata">

**Author:** ![Kubo](https://avatars.discourse-cdn.com/v4/letter/k/8edcca/32.png) [@Kubo](https://community.glideapps.com/u/Kubo)\
**Post date:** [February 11, 2024, 8:12am UTC](https://community.glideapps.com/t/cool-use-of-ai-for-analyzing-a-meal/69609/7 "2024-02-11T08:12:33Z")

</div>

Thanks for sharing!

---

<div class="post-metadata">

**Author:** ![Joe\_Gabriele](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/joe_gabriele/32/57595_2.png) [@Joe\_Gabriele](https://community.glideapps.com/u/Joe_Gabriele)\
**Post date:** [June 5, 2024, 10:23pm UTC](https://community.glideapps.com/t/cool-use-of-ai-for-analyzing-a-meal/69609/8 "2024-06-05T22:23:26Z")

</div>

@Simon_Hill Curious, what prompt did you use to obtain the nutritional info? Something generic or specific?

---

<div class="post-metadata">

**Author:** ![Simon\_Hill](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/simon_hill/32/94730_2.png) [@Simon\_Hill](https://community.glideapps.com/u/Simon_Hill)\
**Post date:** [June 6, 2024, 11:32am UTC](https://community.glideapps.com/t/cool-use-of-ai-for-analyzing-a-meal/69609/9 "2024-06-06T11:32:44Z")

</div>

Here you go:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/f/3/f321489453e90b2f37439666a4f8c333b8c83f6a.png)

---

<div class="post-metadata">

**Author:** ![Joe\_Gabriele](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/joe_gabriele/32/57595_2.png) [@Joe\_Gabriele](https://community.glideapps.com/u/Joe_Gabriele)\
**Post date:** [June 6, 2024, 11:58am UTC](https://community.glideapps.com/t/cool-use-of-ai-for-analyzing-a-meal/69609/10 "2024-06-06T11:58:34Z")

</div>

Awesome, TY!

Would you mind pasting it as text so I can copy?

---

<div class="post-metadata">

**Author:** ![Simon\_Hill](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/simon_hill/32/94730_2.png) [@Simon\_Hill](https://community.glideapps.com/u/Simon_Hill)\
**Post date:** [June 6, 2024, 12:22pm UTC](https://community.glideapps.com/t/cool-use-of-ai-for-analyzing-a-meal/69609/11 "2024-06-06T12:22:30Z")

</div>

Sure here you go. This took quite a few iterations to figure out a stable version… 🙂

Please generate a JSON object with the following structure, using the attached meal description:

{  
“Title”: “A descriptive title for the recipe”,  
“NutritionalEstimates”: {  
“Calories”: Estimated amount of calories in kcal without quotes,  
“Fat”: Estimated amount of fat in grams without quotes,  
“Carbs”: Estimated amount of carbohydrates in grams without quotes,  
“Protein”: Estimated amount of protein in grams without quotes,  
“Sugar”: Estimated amount of sugar in grams without quotes  
},  
“Ingredients”: [  
“First ingredient”,  
“Second ingredient”,  
// Add additional visible ingredients here  
]  
}

Make sure that the numerical values for “Calories”, “Fat”, “Carbs”, “Protein”, and “Sugar” are given as numbers without quotes. Provide the JSON object as a direct response without any additional comments or annotations - only output the JSON object and do not include ```json

---

<div class="post-metadata">

**Author:** ![Joe\_Gabriele](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/joe_gabriele/32/57595_2.png) [@Joe\_Gabriele](https://community.glideapps.com/u/Joe_Gabriele)\
**Post date:** [June 6, 2024, 1:53pm UTC](https://community.glideapps.com/t/cool-use-of-ai-for-analyzing-a-meal/69609/12 "2024-06-06T13:53:23Z")

</div>

Thanks, I will definitely play around with this!

Funny, I already had a nutrition prompt and after adding yours , they produce different results 🤣. Ill have to enter into a tracking app and see which results are more accurate.

---

<div class="post-metadata">

**Author:** ![Matt\_Friesen](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/matt_friesen/32/2388_2.png) [@Matt\_Friesen](https://community.glideapps.com/u/Matt_Friesen)\
**Post date:** [November 11, 2025, 9:25pm UTC](https://community.glideapps.com/t/cool-use-of-ai-for-analyzing-a-meal/69609/13 "2025-11-11T21:25:14Z")

</div>

Hello Simon!

Thanks for sharing this. Very cool idea.

I’m having trouble replicating your success here. I’m getting a response that is in no way related to the image.

Are you adding the prompt (you posted here) in the prompt (system) box, and adding the image column to the Message box? Also which model are you using.

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [November 11, 2025, 11:53pm UTC](https://community.glideapps.com/t/cool-use-of-ai-for-analyzing-a-meal/69609/14 "2025-11-11T23:53:26Z")

</div>

Can you show us your setup? You can also use this column/action.

 ![CleanShot 2025-11-12 at 06.52.34](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/5/2/5243afefd5ebbdaa71037e3d47c129b85315b82f.png)
