Dynamically Pass an Array of Images in JSON to Claude or OpenAI Vision

This turned out to hold the solution for me:

You can set the target structure for your aggregator module to the Images field for OpenAI:

Then in the OpenAI module, select Map, and choose the output of your aggregator module:

Unfortunately, that approach doesn’t work for Anthropic, due to the structure of the request body. I’ll report back in this thread if I find an approach that works.

2 Likes