I am trying to seperate the output of a chatgpt module’s results. These results have a Title and Description. How can I pull out each seperately so I can use or call them later? I’m using a Tools-Set Variable at the moment, with a variable value of: {{12.storyJSON}}.title
The results are coming in a form of:
Content:
{ “title”: “The Day My Reflection Stopped Mimicking Me”, “description”: “Have you ever wondered what would happen if your reflection had a mind of its own? Watch as I unravel the chilling truth behind the day my reflection stopped following my moves.”,
2 Likes
Hi @Romnee_Pritchett,
I would use a “Parse Json” step. Pictured below is how I’ve taken out the status code from this input:
Also just a heads up, you’ll need to create a Data Structure if you use “Parse Json”, this can be solved simply by copying and pasting the output of the previous step.
Hope this helps!
-Robin @Trainward_Consulting
Hey @Romnee_Pritchett Welcome to the community!
If your Open AI/ChatGPT module returns the JSON, no need to parse JSON seperately. You can set that up like this to parse it withing OpenAI/GPT modules.
- Set up instructions to output JSON with JSON structure :
- Enable “Show Advanced Settings” options at the bottom > for JSON parsing choose response format as “JSON object” and select Yes in "Parse JSON response"
- This is how output will look like with inbuilt parsing
- Map those values directly in the next module.
This functionality works in both of the modules “Chat completion” and “message an assistant”
This will help you in parsing JSON
Let me know if you need more help!
Best,
@Prem_Patel
2 Likes
OMG That worked! I could kiss you!! I’ve been trying to fix this for the past few days using GPT to troubleshoot. When in doubt, ask a human!
I also like how clean this is and opened my eyes to including more in GPT’s prompt. Thank again!
1 Like
I do have another question. I have a script generated by GPT that I want to send to ElevenLabs.com (text to speech AI) so I’ve created a HTTP module to make a request. I keep getting an Error:
Error: 422 Unprocessable Entity
Pretty sure it’s caused by the Request Content field. Any help is appreciated!!
- {“detail”:[{“type”:“json_invalid”,“loc”:[“body”,12],“msg”:“JSON decode error”,“input”:{},“ctx”:{“error”:“Expecting value”}}]}
1 Like
Haha! Really glad to hear that and it helped you! @Romnee_Pritchett
Please mark the previous reply which helped you in solving your problem as Solution using this option

Best,
@Prem_Patel
Here in your json, Just wrap your results mapping in quotes “{{your results mapping block}}”