Parsing a response from an api call

I need help configuring to parse this response from an api call.

{
“relevancy_score”: 8,
“novelty_score”: 7,
“validity_score”: 9,
“harmfulness_score”: 2,
“token_score”: 5.5
}

I need to get these scores into their respective fields after they come back from the OpenAI api call. I have tried everything and cannot get this data to parse. Tried regex but there are configuration issues every time that won’t allow the expression to complete.

I am a newbie. If someone could just post a straightforward way of getting these values parsed and into their respective text fields I would be so very grateful. Please help! I have tried and tried.

Thanks!

You can use detect instead of manual parameter in the api workflow and initialize your api

Hi. Thanks so much for your reply. I am trying this but need more details on how to configure. Is this a backend workflow? Can you point me to a tutorial or share more? I am a newbie. Thanks!

If it’s a synchronous response to an API call configured in the API Connector, select Initialize in the call’s configuration to detect the response’s structure. See:

If it’s a webhook received by a backend workflow, see:

Thanks for your replies. Right now we are trying javascript2bubble to parse the data. The JavaScript code appears to be correctly parsing the JSON response and extracting the values. However, the issue seems to be with passing these values to Bubble. Anybody have any thoughts about this approach in general and this problem in particular. Much thanks for your assistance.