# AI components linked to relations

**URL:** https://community.glideapps.com/t/ai-components-linked-to-relations/78596
**Category:** Ask for Help
**Created:** [December 14, 2024, 9:32am UTC](https://community.glideapps.com/t/ai-components-linked-to-relations/78596 "2024-12-14T09:32:46Z")
**Posts on this page:** 4
**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: [December 14, 2024, 9:32am UTC](https://community.glideapps.com/t/ai-components-linked-to-relations/78596/1 "2024-12-14T09:32:46Z")

</div>

Is it still the case the AI Components cannot have input values that are defined by single value relations?

I was playing around trying to replace the Glide buttons in this screen with custom AI user interface buttons. However, the value is in a different table to the screen table, hence a relation is used to define the value that is being incremented/decremented. Seems like the AI components cannot manage this yet… is that true?

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/d/5/d5b5f3c89371ac5b998e062c21e742f0779fe401.jpeg)

---

<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: [December 14, 2024, 10:22am UTC](https://community.glideapps.com/t/ai-components-linked-to-relations/78596/2 "2024-12-14T10:22:11Z")

</div>

Update: I modified the screen table to point to the table where the hydration value is stored and applied a filter to the screen data (row date is within today’s date)… this avoided the need to use a relation. The screen is now looking nice…

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/2/d/2d5ff902dd6748a201584c0b74a3972e5c0ff3e5.jpeg)

---

<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: [December 15, 2024, 12:11am UTC](https://community.glideapps.com/t/ai-components-linked-to-relations/78596/3 "2024-12-15T00:11:27Z")

</div>

Nice design!

---

<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: [December 15, 2024, 7:10am UTC](https://community.glideapps.com/t/ai-components-linked-to-relations/78596/4 "2024-12-15T07:10:06Z")

</div>

Thanks… I added a transparent Gif of little bubbles continuously rising as an overlay to the container background image (water)… the GIF’s visibility controlled by the hydration amount so that when they reach the target 2000ml the water gently fizzes as a little reward. Kind of cute!
