How to get OpenAI output into a json format

input.txt (781 Bytes)
output.txt (1.1 KB)

My scenario looks for images being added to a Google Drive folder. The image will contain a name badge from a networking event. the name badge contains the persons name and company name.

I pass this to OpenAI Analyze Images and ask it to extract the name and return the firstname, lastname and company name in a json format so that I can then add those values to a CRM.

But I cannot work out how to get OpenAI to supply the data in a format that I can use to map the values to fields in a crm. Any ideas anyone? Thanks!

current output

Use the parse Json module and input the result that you get from OpenAI.

Just be sure to ask the prompt to return ONLY the json with no additional text.