Help Needed: Structuring Website Form Data into a JSON Array

Someone else who loves Text Parser modules might be able to help with those.

My suggestion is different: if you got “product information is grouped together in a long text string” and you want to coerce it into a structured object, perhaps ask an LLM like OpenAI or Groq to do it. It’s pretty good at generating JSON objects in the structure you’d like.

There is a Groq “Create a JSON Chat Completion” module for JSON outputs (bit of an explanation about this module starts here at https://www.youtube.com/watch?v=Qp6znB5juU8&t=635s.

And OpenAI too has a response_format of json option that you can investigate.

Finally, OpenAI recently released Structured Outputs https://openai.com/index/introducing-structured-outputs-in-the-api/ and I made a vid about how to use this via HTTP module until its one-day built into the OpenAI modules https://www.youtube.com/watch?v=q4G-YHJmTnw

Ooh, I see there is an OpenAI module “Transform Text to Structure Data” which I hadn’t notice before. Perhaps it is for the new Structured Outputs feature above.

Oh this is great. Like the Groq JSON module, it produces data that is already parsed ready for us by Make. No “Parse JSON” module required.

Looking at the API traffic of this module via Make DevTools, it is not yet using the new Structured Outputs feature (with 100% guarantee of JSON format), but it is very nice to have found.

1 Like