Has anyone successfully passed dynamic prompts using the Zeroqode OpenAI Full Plugin?

Hi Bubblers,

I’m working on a ChatGPT-style app where users can chat with AI models based on different categories (like Architecture, Medical, etc.). I’m using Option Sets to store category-specific prompt contexts and trying to send dynamic JSON to OpenAI using the Zeroqode OpenAI Full Plugin.

I’m building the (body) content as a stringified JSON array like this:

[
  { "role": "system", "content": "[Prompt Context from Option Set]" },
  { "role": "user", "content": "[User Message]" }
]

Even after formatting as JSON-safe, OpenAI doesn’t return any response,

Has anyone successfully passed a dynamic message list (with system + user roles) using this plugin? Or is the API Connector a better route for this use case?

Appreciate any tips, examples, or confirmation if this plugin has limitations with structured JSON input.

Thanks!

2 Likes

if what you are building is not too complex, don’t do it manually. Use Bubble’s built-in “Create a JSON Object” and “Create a JSON Array” actions to structure the messages. Pass the array directly to the plugin

But if it is a complex project, Use the API connector for more control

2 Likes

to pass dynamic data to open ai. its better to use bubble api connector and the body structure should have [
“”
] not just the square bracket. also not that the Api should be an action type not data.

1 Like