# Using new openai abilities to format response as JSON

**URL:** <https://community.make.com/t/using-new-openai-abilities-to-format-response-as-json/19423>\
**Category:** Questions\
**Tags:** open-ai\
**Created:** [November 10, 2023, 6:55am UTC](https://community.make.com/t/using-new-openai-abilities-to-format-response-as-json/19423 "2023-11-10T06:55:00Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![omri](https://avatars.discourse-cdn.com/v4/letter/o/bc79bd/32.png) [@omri](https://community.make.com/u/omri)\
**Post date:** [November 10, 2023, 6:55am UTC](https://community.make.com/t/using-new-openai-abilities-to-format-response-as-json/19423/1 "2023-11-10T06:55:00Z")

</div>

Hi,

I am trying to use the response\_format to format GPT-4 Turbo with JSON format.  
It doesn’t look like the Make App has that ability for now - and I have tried to add it as additional parameter  
like that:

![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/a/2/a255b302389b1bbfbd6a522be3fc872c4487db0b.png)

But it return the following error:  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/8/f/8fe41fb0bf2d73db506ac3c1c621f60e5ad99700.png)

Any idea how I can fix that?

Thanks,  
Omri

---

<div class="post-metadata">

**Author:** ![Philippe\_Billet](https://avatars.discourse-cdn.com/v4/letter/p/dc4da7/32.png) [@Philippe\_Billet](https://community.make.com/u/Philippe_Billet)\
**Post date:** [November 13, 2023, 4:40pm UTC](https://community.make.com/t/using-new-openai-abilities-to-format-response-as-json/19423/2 "2023-11-13T16:40:40Z")

</div>

Hi @omri ,

You should look at [this page](https://www.make.com/en/help/tools/json), have you defined a data structure?

Philippe

---

<div class="post-metadata">

**Author:** ![Kuba\_Ratajczyk](https://avatars.discourse-cdn.com/v4/letter/k/bcef8e/32.png) [@Kuba\_Ratajczyk](https://community.make.com/u/Kuba_Ratajczyk)\
**Post date:** [November 17, 2023, 12:04pm UTC](https://community.make.com/t/using-new-openai-abilities-to-format-response-as-json/19423/3 "2023-11-17T12:04:49Z")

</div>

Hi, I have exactly the same issue. I’ve tried many different options for json structure, but nothing seems to work.  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/d/a/da0b1455de45d3853b938ef9cc9ee6e5f08be3fe.png)  
this is the most current one. The JSON string in being pasted into additional parameters:  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/4/2/42b8e48225ed0955209c380e4ef59519200f0c54.png)

I am getting error stating:  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/3/e/3e08d2f570fc081aa0de428c89da2ba1ad9ae905.png)

Any idea what should I do?

---

<div class="post-metadata">

**Author:** ![Philippe\_Billet](https://avatars.discourse-cdn.com/v4/letter/p/dc4da7/32.png) [@Philippe\_Billet](https://community.make.com/u/Philippe_Billet)\
**Post date:** [November 17, 2023, 2:20pm UTC](https://community.make.com/t/using-new-openai-abilities-to-format-response-as-json/19423/4 "2023-11-17T14:20:40Z")

</div>

Hi @Kuba_Ratajczyk ,

What’s in the list “Input Type”, it is currently “Any”…

Philippe

---

<div class="post-metadata">

**Author:** ![stefanmueller.ai](https://avatars.discourse-cdn.com/v4/letter/s/a9a28c/32.png) [@stefanmueller.ai](https://community.make.com/u/stefanmueller.ai)\
**Post date:** [November 25, 2023, 2:12pm UTC](https://community.make.com/t/using-new-openai-abilities-to-format-response-as-json/19423/5 "2023-11-25T14:12:45Z")

</div>

@omri I didn’t get the json\_mode working with the standard “chat completion” make module (I guess it is not possible right now).  
But it works with the OpenAI “Make an API Call” module, because there you can specify request body params:

 ![Bildschirmfoto 2023-11-25 um 15.08.27](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/4/8/482013272cbd15478ba69b36318dba11193219b7.jpeg)

```auto
{
    "model": "gpt-4-1106-preview",
    "messages": [
      {
        "role": "system",
        "content": "You are a helpful assistant. Reply in JSON Format."
      },
      {
        "role": "user",
        "content": "Hello!"
      }
    ],
   "response_format": { "type": "json_object" }
}

```

In addition you need to mention “JSON” also in the (system) prompt. Otherwise the call fails. Specify the desired output format/structure in the system prompt.

Alternatively you can continue using the chat completion module without json mode but specify everything in the system prompt. Also works reliable in most cases. But of course using json\_mode is much safer.

Cheers, Stefan

---

<div class="post-metadata">

**Author:** ![stefanmueller.ai](https://avatars.discourse-cdn.com/v4/letter/s/a9a28c/32.png) [@stefanmueller.ai](https://community.make.com/u/stefanmueller.ai)\
**Post date:** [December 4, 2023, 8:39am UTC](https://community.make.com/t/using-new-openai-abilities-to-format-response-as-json/19423/6 "2023-12-04T08:39:04Z")

</div>

**UPDATE!**  
JSON Mode now also available in “Create Completion” module via dropdown parameter!

 ![Bildschirmfoto 2023-12-04 um 09.36.17](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/3/5/350b968594f55caaab569b471327db921961c4fe.png)

---

<div class="post-metadata">

**Author:** ![Michaela-Inactive](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/michaela-inactive/32/29_2.png) [@Michaela-Inactive](https://community.make.com/u/Michaela-Inactive)\
**Post date:** [December 4, 2023, 11:38am UTC](https://community.make.com/t/using-new-openai-abilities-to-format-response-as-json/19423/7 "2023-12-04T11:38:53Z")

</div>

Heya @stefanmueller.ai thanks a lot for the heads up! 🙏

---

<div class="post-metadata">

**Author:** ![Make\_Bot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_bot/32/14661_2.png) [@Make\_Bot](https://community.make.com/u/Make_Bot)\
**Post date:** [December 14, 2023, 9:07am UTC](https://community.make.com/t/using-new-openai-abilities-to-format-response-as-json/19423/8 "2023-12-14T09:07:29Z")

</div>


