# Update input after generation

**URL:** <https://community.glideapps.com/t/update-input-after-generation/66256>\
**Category:** Ask for Help\
**Created:** [September 18, 2023, 11:44am UTC](https://community.glideapps.com/t/update-input-after-generation/66256 "2023-09-18T11:44:41Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![Emmett\_M](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/emmett_m/32/60683_2.png) [@Emmett\_M](https://community.glideapps.com/u/Emmett_M)\
**Post date:** [September 18, 2023, 11:44am UTC](https://community.glideapps.com/t/update-input-after-generation/66256/1 "2023-09-18T11:44:41Z")

</div>

Hey folks ,

Whats the best way to update a column entry after the fact.

For example , I have generated a summary for a topic using computed ai column. But now I want the user to be able to adjust the reading level of this i.e 5th grade level to be updated to 10th grade reading level.

Cheers

---

<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:** [September 19, 2023, 12:26am UTC](https://community.glideapps.com/t/update-input-after-generation/66256/2 "2023-09-19T00:26:39Z")

</div>

Do you mean you want to update the prompt you used initially? Do you use 5th grade as a base?

If it’s the case, you can have a user-specific input for the grade level, and reference it in your prompt.

---

<div class="post-metadata">

**Author:** ![Emmett\_M](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/emmett_m/32/60683_2.png) [@Emmett\_M](https://community.glideapps.com/u/Emmett_M)\
**Post date:** [September 19, 2023, 10:01am UTC](https://community.glideapps.com/t/update-input-after-generation/66256/3 "2023-09-19T10:01:00Z")

</div>

User should be able to choose the reading level before generating the summary or be able to change it afterward

---

<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:** [September 20, 2023, 12:54am UTC](https://community.glideapps.com/t/update-input-after-generation/66256/4 "2023-09-20T00:54:24Z")

</div>

Yeah then I think it still applies. You can have a choice component to point to that column, and reference it in your prompt.

---

<div class="post-metadata">

**Author:** ![Emmett\_M](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/emmett_m/32/60683_2.png) [@Emmett\_M](https://community.glideapps.com/u/Emmett_M)\
**Post date:** [September 20, 2023, 2:50pm UTC](https://community.glideapps.com/t/update-input-after-generation/66256/5 "2023-09-20T14:50:58Z")

</div>

Forgive me , what would that look like in the columns or which columns to use?

Choice component for the different grade options…A template prompt? Or would that Message to chatgpt(no history comlumn) wokr?

---

<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:** [September 21, 2023, 1:14am UTC](https://community.glideapps.com/t/update-input-after-generation/66256/6 "2023-09-21T01:14:59Z")

</div>

Choice component for the options, then you use a template prompt to reference that choice.

Finally, whatever you’re using for the AI part, feed the prompt to it to get a new answer.

---

<div class="post-metadata">

**Author:** ![Emmett\_M](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/emmett_m/32/60683_2.png) [@Emmett\_M](https://community.glideapps.com/u/Emmett_M)\
**Post date:** [September 21, 2023, 10:27am UTC](https://community.glideapps.com/t/update-input-after-generation/66256/7 "2023-09-21T10:27:21Z")

</div>

So here’s my column set up currently.

User can select “topic introduction” to generate text. They can then choose the Student Level ie 6th Grade and this should update the original generated prompt.

Am I missing something here?

 ![Screenshot 2023-09-21 at 11.25.07](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/b/1/b1946bc10e881c91d86e7543595f2b36d2ccb35b.jpeg)  
 ![Screenshot 2023-09-21 at 11.25.21](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/6/6/6670f43b8ba18afb6477ee19671378e125fb2c98.jpeg)

---

<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 21, 2023, 12:31pm UTC](https://community.glideapps.com/t/update-input-after-generation/66256/8 "2023-09-21T12:31:21Z")

</div>

Your prompt is still not using that Student level at all. The prompt is still static, so changing the student level is not modifying the prompt, so it’s not going to have any bearing on the AI response.

The template should be dynamically modifying the prompt. Instead you are trying to use a template to modify the AI response. That response most likely has nothing to replace so the template probably isn’t doing much of anything right now.

It’s the prompt that needs to become dynamic from a template column.

---

<div class="post-metadata">

**Author:** ![Emmett\_M](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/emmett_m/32/60683_2.png) [@Emmett\_M](https://community.glideapps.com/u/Emmett_M)\
**Post date:** [September 21, 2023, 2:07pm UTC](https://community.glideapps.com/t/update-input-after-generation/66256/9 "2023-09-21T14:07:22Z")

</div>

So what would need to be changed? If I change the system prompt to the template I get an error

---

<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 21, 2023, 2:14pm UTC](https://community.glideapps.com/t/update-input-after-generation/66256/10 "2023-09-21T14:14:01Z")

</div>

Sorry, I haven’t used any of the AI stuff. But, what’s the error?

To be clear, you are not trying to use the existing template created from the AI response as the prompt correct? That wouldn’t make sense. The template should contain your original prompt, along with a replacement for the grade level.

---

<div class="post-metadata">

**Author:** ![Emmett\_M](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/emmett_m/32/60683_2.png) [@Emmett\_M](https://community.glideapps.com/u/Emmett_M)\
**Post date:** [September 21, 2023, 2:18pm UTC](https://community.glideapps.com/t/update-input-after-generation/66256/11 "2023-09-21T14:18:13Z")

</div>

Glide cannot make this change because it would introduce the following cycle of dependencies in your columns:

Notes/New Column →   
Notes/Teacher\_topic\_introduction →   
Notes/New Column

i guess because it cant complete the loop like this

---

<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 21, 2023, 2:20pm UTC](https://community.glideapps.com/t/update-input-after-generation/66256/12 "2023-09-21T14:20:27Z")

</div>

> [@Jeff\_Hager](#):
>
> To be clear, you are not trying to use the existing template created from the AI response as the prompt correct? That wouldn’t make sense. The template should contain your original prompt, along with a replacement for the grade level.

It’s cyclic because you are trying to use a response to build a prompt to build a response to build a prompt etc. etc. etc.

Build the correct prompt the first time and you will get the correct response. Don’t mess with the response. Mess with the prompt, And the response will change accordingly.

To put it a different way with an analogy…If I ask you a question and you give me an answer that I’m not happy with, I respond by asking a better question. I don’t take your answer and inject my own words into it. My question is the prompt and your answer is the response.

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [September 21, 2023, 2:21pm UTC](https://community.glideapps.com/t/update-input-after-generation/66256/13 "2023-09-21T14:21:06Z")

</div>

If I’m following all this correctly, you should be setting the Grade selection in a user specific column, which feeds into the template, which in turn is used in the AI Prompt.

---

<div class="post-metadata">

**Author:** ![Emmett\_M](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/emmett_m/32/60683_2.png) [@Emmett\_M](https://community.glideapps.com/u/Emmett_M)\
**Post date:** [September 21, 2023, 3:46pm UTC](https://community.glideapps.com/t/update-input-after-generation/66256/14 "2023-09-21T15:46:18Z")

</div>

You’ve got a way with words @Darren_Murphy That worked as expected.

Not the first time you’ve helped me out. Much appreciated.

Cheers @Jeff_Hager also.

---

<div class="post-metadata">

**Author:** ![Emmett\_M](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/emmett_m/32/60683_2.png) [@Emmett\_M](https://community.glideapps.com/u/Emmett_M)\
**Post date:** [September 21, 2023, 4:21pm UTC](https://community.glideapps.com/t/update-input-after-generation/66256/15 "2023-09-21T16:21:30Z")

</div>

P.S Glide community is one of the best. No doubt about it

---

<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:** [September 21, 2023, 11:52pm UTC](https://community.glideapps.com/t/update-input-after-generation/66256/16 "2023-09-21T23:52:01Z")

</div>

Good to hear that it worked.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [September 28, 2023, 11:52pm UTC](https://community.glideapps.com/t/update-input-after-generation/66256/17 "2023-09-28T23:52:41Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
