# Prompts for comment/chat asking question of table (open ai)

**URL:** <https://community.glideapps.com/t/prompts-for-comment-chat-asking-question-of-table-open-ai/69494>\
**Category:** Ask for Help\
**Created:** [January 12, 2024, 1:58am UTC](https://community.glideapps.com/t/prompts-for-comment-chat-asking-question-of-table-open-ai/69494 "2024-01-12T01:58:38Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adam\_Chambers](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/adam_chambers/32/67402_2.png) [@Adam\_Chambers](https://community.glideapps.com/u/Adam_Chambers)\
**Post date:** [January 12, 2024, 1:58am UTC](https://community.glideapps.com/t/prompts-for-comment-chat-asking-question-of-table-open-ai/69494/1 "2024-01-12T01:58:38Z")

</div>

Hi all,

I want to use the Open AI feature of asking questions of a data table.

However, for now, I want it to be on the rails.

I want to display 4 prompts which people can choose on. Whichever they choose, will then form the text of the question. (This is for my MVP so I need to limit the variation of questions).

I’ve attached screenshots. Can’t get anything to save successfully when I click the button. I have tried using the chat feature instead of buttons, but can’t figure out how to limit the input to 1 of the 4 prompts.

Thanks!

 ![Screenshot 2024-01-11 205709](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/c/e/cebf29fb0fbad4476fbc70f91bf13bbd3d619226.png)  
 ![Screenshot 2024-01-11 205656](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/3/4/348decc1a562551364597a6353a8030ff2c47a14.png)  
 ![Screenshot 2024-01-11 205640](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/b/8/b868c99a2f58e0d63321963226b8ed3e96363cce.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:** [January 12, 2024, 2:09am UTC](https://community.glideapps.com/t/prompts-for-comment-chat-asking-question-of-table-open-ai/69494/2 "2024-01-12T02:09:21Z")

</div>

What do you mean by “save successfully”?

Your Open AI data isnt added to your Answer Cell?

---

<div class="post-metadata">

**Author:** ![Adam\_Chambers](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/adam_chambers/32/67402_2.png) [@Adam\_Chambers](https://community.glideapps.com/u/Adam_Chambers)\
**Post date:** [January 12, 2024, 2:24am UTC](https://community.glideapps.com/t/prompts-for-comment-chat-asking-question-of-table-open-ai/69494/3 "2024-01-12T02:24:55Z")

</div>

Yes and the “question” isn’t saving to the question cell.

---

<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:** [January 12, 2024, 2:53am UTC](https://community.glideapps.com/t/prompts-for-comment-chat-asking-question-of-table-open-ai/69494/4 "2024-01-12T02:53:17Z")

</div>

Questions arent written to your table. You can either manually write the prompt like you are in your example, or you can reference a cell that has your question already stored in a cell.

Got any data in the table youre trying to answer a question on? Are all rows or applicable rows checked? If so, not really sure of the issue

---

<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:** [January 13, 2024, 12:31am UTC](https://community.glideapps.com/t/prompts-for-comment-chat-asking-question-of-table-open-ai/69494/5 "2024-01-13T00:31:22Z")

</div>

Do you want to track some sort like a log of questions & answers? What should happen on the front end if I click one of the four questions?

---

<div class="post-metadata">

**Author:** ![Adam\_Chambers](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/adam_chambers/32/67402_2.png) [@Adam\_Chambers](https://community.glideapps.com/u/Adam_Chambers)\
**Post date:** [January 16, 2024, 8:06pm UTC](https://community.glideapps.com/t/prompts-for-comment-chat-asking-question-of-table-open-ai/69494/6 "2024-01-16T20:06:57Z")

</div>

Thanks for helping, It should generate a response using the data from the table

---

<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:** [January 16, 2024, 11:39pm UTC](https://community.glideapps.com/t/prompts-for-comment-chat-asking-question-of-table-open-ai/69494/7 "2024-01-16T23:39:00Z")

</div>

So what exactly isn’t working? I imagine each click would trigger a combo action like this:

- Answer question about a table.
- Write the answer to a user-specific column.
- Add a row in a logs table to store that answer if needed.
- Show the answer to the user.
