# Chat component / question a table

**URL:** <https://community.glideapps.com/t/chat-component-question-a-table/66489>\
**Category:** Ask for Help\
**Created:** [September 24, 2023, 8:53pm UTC](https://community.glideapps.com/t/chat-component-question-a-table/66489 "2023-09-24T20:53:41Z")\
**Posts on this page:** 4\
**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 24, 2023, 8:53pm UTC](https://community.glideapps.com/t/chat-component-question-a-table/66489/1 "2023-09-24T20:53:41Z")

</div>

Hey folks ,

Is there a way to use the chat component to chat with a table rather than a form container/text entry?

---

<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 25, 2023, 12:16am UTC](https://community.glideapps.com/t/chat-component-question-a-table/66489/2 "2023-09-25T00:16:56Z")

</div>

Do you mean the “ask question about a table” OpenAI integration?

In that case:

- Create a prompt (if needed) on the destination table using a template column. Add a column to store the output.

- Use the on-submit action to feed the prompt and any other info needed to the OpenAI integration. Write the output to the column you have set up.

- Add a wait condition until the output is not empty.

- Add a new row in the destination table with the output.

---

<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 25, 2023, 11:10am UTC](https://community.glideapps.com/t/chat-component-question-a-table/66489/3 "2023-09-25T11:10:21Z")

</div>

Yes , Ask A Question about a table.

I would prefer to use the chat component rather than the form container / text entry component if possible.

First image is the current set up and second is the yet to be configuted chat component

 ![Screenshot 2023-09-25 at 12.08.35](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/1/5/15e0e4dfb67b914be039a16d2a21ef52ea10bb00.jpeg)  
 ![Screenshot 2023-09-25 at 12.08.57](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/5/2/52dd16ee250114ffaba0549660409db0803c6fac.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:** [October 5, 2023, 11:46pm UTC](https://community.glideapps.com/t/chat-component-question-a-table/66489/4 "2023-10-05T23:46:44Z")

</div>

I think you might haved moved on from this approach, but it’s worth noting that “Ask question about a table” will try to extract the top x-most relevant rows from the specified source to answer your question, and not the “full source”.
