# OpenAI Response Parsing

**URL:** <https://community.thunkable.com/t/openai-response-parsing/3203623>\
**Category:** Questions about Thunkable X\
**Tags:** help\
**Created:** [September 15, 2024, 8:15am UTC](https://community.thunkable.com/t/openai-response-parsing/3203623 "2024-09-15T08:15:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![raviragas7y0ecx](https://avatars.discourse-cdn.com/v4/letter/r/779978/32.png) [@raviragas7y0ecx](https://community.thunkable.com/u/raviragas7y0ecx)\
**Post date:** [September 15, 2024, 8:15am UTC](https://community.thunkable.com/t/openai-response-parsing/3203623/1 "2024-09-15T08:15:24Z")

</div>

Hi Everyone

I am working on an app to help generate code based on user requirements.  
I have integrated OpenAI and am getting the correct response.  
However, it is one continuous string without any parsing.  
Is there a way to receive the parsed data, like how we would view it  
while using ChatGPT?

Thanks!  
Ravi

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [September 16, 2024, 2:17am UTC](https://community.thunkable.com/t/openai-response-parsing/3203623/2 "2024-09-16T02:17:26Z")

</div>

You need to include more details. In this case, post a sample response you’re getting. It’s best to post the full JSON response (from the green block) as text and make sure to format it using the \</\> button above the post. Otherwise it may invalidate your JSON with smart quotes.

You would need to do the parsing and I might be able to help with that.

---

<div class="post-metadata">

**Author:** ![raviragas7y0ecx](https://avatars.discourse-cdn.com/v4/letter/r/779978/32.png) [@raviragas7y0ecx](https://community.thunkable.com/u/raviragas7y0ecx)\
**Post date:** [September 16, 2024, 3:41am UTC](https://community.thunkable.com/t/openai-response-parsing/3203623/3 "2024-09-16T03:41:00Z")

</div>

Dear @tatiang

Thank you for your reply.  
I am using the built-in block from Thinkable.  
The response is like what is shown in the screenshot.  
I did some basic text-based parsing to get something like the other image.

I would like to know if there is a better way to do this.  
Thanks!

 ![Screenshot 2024-09-16 at 7.39.12 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/5/b5de548d278858bd1a6831a3a41f28a25ac3c0e1.png)

 ![Screenshot 2024-09-16 at 7.36.38 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/1/7186701b00e8278923a9ff4b55a7f4868dff6bf2.png)

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [September 16, 2024, 1:25pm UTC](https://community.thunkable.com/t/openai-response-parsing/3203623/4 "2024-09-16T13:25:31Z")

</div>

Please re-read what I wrote. Without the response formatted the way I mentioned, I’m not able to help you. It needs to be:

1. The full JSON response value from the green block
2. Text, not a screenshot
3. Formatted using the \</\> button

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [December 15, 2024, 1:26pm UTC](https://community.thunkable.com/t/openai-response-parsing/3203623/5 "2024-12-15T13:26:27Z")

</div>

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