Looping JSON response not recognising parameter

Hi all,

What I’m trying to do:
Ask Claude something, Claude returns a structured output JSON, and use Bubble to loop through the a structured output response and create a new entry for each “Section”.

What I’m pulling my hair out trying to figure out:
Not sure why Bubble isn’t recognising the parameter value on a “schedule API workflow on a list”, either that or I’m not understanding something.

I have a Claude JSON response and Bubble recognises it. The highlight in red is what I want to loop and save as individual entries into a Data Type called “Section”

I have a button that triggers an event to post to Claude and in the same event I run Claudes response in a “schedule API workflow on a list” to loop through the response

The “schedule API workflow on a list” triggers an API event which basically just creates a new entry

What I don’t understand is error on the parameter here:

I’ve defined the section parameter as a “Section” data type, which from my understanding, is what should be referencing on the “schedule API workflow on a list” > section parameter.

Can anyone shed any light as to what should go in the field showing the error?

Much appreciated!

Bubble’s API Connector parses JSON data into individual fields, it treats each value as text or another primitive type rather than a “Section” object. In other words, the data being passed from the API is in a structured JSON format, not a direct database object.

@cmarchan ahhh I see, very useful to know! Thanks! :smiley:

1 Like