# Custom AI Component

**URL:** <https://community.glideapps.com/t/custom-ai-component/76427>\
**Category:** Ask for Help\
**Created:** [September 16, 2024, 10:03pm UTC](https://community.glideapps.com/t/custom-ai-component/76427 "2024-09-16T22:03:12Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrt224](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mrt224/32/490_2.png) [@mrt224](https://community.glideapps.com/u/mrt224)\
**Post date:** [September 16, 2024, 10:03pm UTC](https://community.glideapps.com/t/custom-ai-component/76427/1 "2024-09-16T22:03:12Z")

</div>

After entering the chat components, is there away to edit or delete each chat line?

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [September 16, 2024, 10:07pm UTC](https://community.glideapps.com/t/custom-ai-component/76427/2 "2024-09-16T22:07:44Z")

</div>

I believe you can add a delete action to the collection.

---

<div class="post-metadata">

**Author:** ![mrt224](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mrt224/32/490_2.png) [@mrt224](https://community.glideapps.com/u/mrt224)\
**Post date:** [September 16, 2024, 10:09pm UTC](https://community.glideapps.com/t/custom-ai-component/76427/3 "2024-09-16T22:09:12Z")

</div>

How?

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [September 16, 2024, 10:26pm UTC](https://community.glideapps.com/t/custom-ai-component/76427/4 "2024-09-16T22:26:22Z")

</div>

If you select the chat collection component in the lower left panel in the builder, then select the actions on the right hand panel, you can add a delete action to the collection.

![Screenshot_20240916-172327](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/6/c/6ca6db6c7e2e46db2a3dc43f66b6b3f9cfd63f9f.png)

But…reading your thread title now…what does this have to do with the custom AI component? Are you using custom AI, or are you using a chat collection? Maybe I’m completely misunderstanding your question.

---

<div class="post-metadata">

**Author:** ![mrt224](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mrt224/32/490_2.png) [@mrt224](https://community.glideapps.com/u/mrt224)\
**Post date:** [September 16, 2024, 10:33pm UTC](https://community.glideapps.com/t/custom-ai-component/76427/5 "2024-09-16T22:33:45Z")

</div>

![chat component](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/b/e/be614f50c6b9092f18ef94a6aa83d7d966854754.png)

This is the chat component in the AI component.  
I would like to be able to edit or delete it without having to start over all the time

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [September 16, 2024, 10:44pm UTC](https://community.glideapps.com/t/custom-ai-component/76427/6 "2024-09-16T22:44:34Z")

</div>

Ah, you lost me by calling it a chat component. I would call it the chat within the AI component.

You should be able to give it additional commands if you want to modify how the component works, or if you want to delete a command, you can use the trash icon to delete the last comment in the chat.

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

---

<div class="post-metadata">

**Author:** ![mrt224](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mrt224/32/490_2.png) [@mrt224](https://community.glideapps.com/u/mrt224)\
**Post date:** [September 16, 2024, 10:47pm UTC](https://community.glideapps.com/t/custom-ai-component/76427/7 "2024-09-16T22:47:57Z")

</div>

I don’t have the trash can on the right on my screen

---

<div class="post-metadata">

**Author:** ![mrt224](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mrt224/32/490_2.png) [@mrt224](https://community.glideapps.com/u/mrt224)\
**Post date:** [September 16, 2024, 10:49pm UTC](https://community.glideapps.com/t/custom-ai-component/76427/8 "2024-09-16T22:49:56Z")

</div>

Also, my toggle dropdown button does not work for the AI component

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [September 16, 2024, 11:04pm UTC](https://community.glideapps.com/t/custom-ai-component/76427/9 "2024-09-16T23:04:49Z")

</div>

Can’t speak for the ‘Toggle Dropdown’, and the more I play, I no longer see the trash icon.

I think your best best is to keep having a conversation with the chat to make further modifications.

---

<div class="post-metadata">

**Author:** ![mrt224](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mrt224/32/490_2.png) [@mrt224](https://community.glideapps.com/u/mrt224)\
**Post date:** [September 16, 2024, 11:07pm UTC](https://community.glideapps.com/t/custom-ai-component/76427/10 "2024-09-16T23:07:23Z")

</div>

The AI works great until you want to edit or delete something then you have to start over again. I have made some interactive table that work fantastic.

Thank you for your response.

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [September 16, 2024, 11:21pm UTC](https://community.glideapps.com/t/custom-ai-component/76427/11 "2024-09-16T23:21:03Z")

</div>

You can’t just say “Remove X”, or “Modify Y to do Z”?

I don’t think the point of the chat is to get it correct in one shot. It’s designed so you can have a continuous conversation. You can even ask it to undo the last change, or start over, or even delete everything. Use it like you are standing over a colleague’s shoulder, trying to explain to them how you want something to work. They make changes and then you follow up with what you like and do not like, and how certain things should be modified. Talk to it like a human.

Anytime I’ve used AI to write code, it’s usually a back and forth conversation until I get a result I like. For example, I typed in your message. Then I said, make the header red. Then I said make the header rounded. Then I said let’s start over. It followed my directions every time for the most oart.

---

<div class="post-metadata">

**Author:** ![mrt224](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mrt224/32/490_2.png) [@mrt224](https://community.glideapps.com/u/mrt224)\
**Post date:** [September 16, 2024, 11:42pm UTC](https://community.glideapps.com/t/custom-ai-component/76427/12 "2024-09-16T23:42:54Z")

</div>

I will try that.

Thank you!
