Cant add dynamic data for urls in my json call to opan ai

It appears there might be a bug in how Bubble handles dynamic data insertion into JSON bodies for external API calls, especially when dealing with complex nested structures and URLs. Even when attempting to send the entire JSON as a pre-built text string from a Custom State, Bubble seems to be interfering with the dynamic value insertion, leading to invalid JSON.

Has anyone else encountered this problem with OpenAI Vision API or similar complex JSON payloads? Is there a known workaround beyond what I’ve tried (e.g., using the Toolbox plugin and JavaScript, which I’d prefer to avoid if possible but will consider as a last resort)?

Any insights or alternative strategies would be greatly appreciated.

Hey :waving_hand:

Can you share a screenshot of your workflow? It might be an easy fix. :blush:

i dont know if you can learn much from it but i try to make the open ai to compare between to pics url.

Thanks. Not much from that screenshot. Can you show me the open AI step? :sweat_smile:

It seems tha the JSON may not be created correctly or it needs to be JSON safe.

This topic was automatically closed after 14 days. New replies are no longer allowed.