Webhook Response not automatically creating JSON output

Hi

I have a scenario with a webhook trigger that takes some text and instructions which calls OpenAI with these prompts to create a summary of meeting notes. I then have a webhook response to output some JSON to the calling scenario.

The calling scenario however registers a response saying, correctly, that it didn’t get any valid JSON back from the webhook. It in fact got unescaped text.

I understood make would make the text JSON friendly. Is this not the case?

Thanks

Stuart


… [edit] in the webhook response I had the header “Content-Type”:“application/json”. I I remove this then the webhook returns data successfully to the calling scenario, but it’s just interpreted as data. How should I be handling this?!

… ignore me. I am a fool.

There’s a JSON module.

You can use the Create JSON module to convert a variable into JSON.

2 Likes