Services Plugins FAQs

Chat gpt plugin


Hi Community,

I’m having an issue with displaying the ChatGPT API response in my app. The API call i think is successful, but the expression to show the data in the UI seems to be incorrect. Could someone advise on the right expression to use for displaying the API response in a text element?

Thanks for your help!

1 Like

Hello @posideon244, :wave:

Thank you for using our plugins! To assist you effectively, could you please specify which of our ChatGPT plugins you are using? We offer two different ChatGPT plugins, and each might have a unique method for displaying API responses in your app’s UI:


Looking forward to your response to help you further!

Best regards,
Daniel.

the free one ,thank you!

1 Like

Hi again @posideon244, :wave:

Thank you for additional info.

Based on the screenshots and information you’ve shared, it seems that there might be an issue with the way the API response data is being referenced in your Bubble workflow.

The dynamic expression Result of step 1 (OpenAI - Generate…)'s choices:first item’s message content should correctly reference the first item’s message content from the choices array if the API response is structured as such. However, if this expression is showing up in red, there are a few things to consider:

  1. Make sure that the API call’s result is indeed structured to contain a choices array and that message content is the correct field within each choice. The structure of the API response should match what you’re trying to reference in your dynamic expression.

  2. Check the actual API response in the Bubble debugger to confirm if the expected data is being returned as you have configured it.

  3. Ensure that your plugin is updated to the latest version in case there have been any recent changes to the API or plugin that might affect data structure.

Given that the path you’re attempting to use is not being recognized, it would be a good idea to cross-reference the actual structure of the API response with what’s expected in the Bubble editor. You can typically do this by checking the API response in the Bubble logs or the network tab of your browser’s developer tools.

If you continue to encounter problems, please share the actual structure of the API response or any error messages you see in the console when you make the API call. This information will be crucial in identifying the root cause of the issue. :pray:

Thank you for your cooperation, and I look forward to resolving this with you.

Best regards,
Daniel.

i am am not a bubble pro user but what i did is changed the action from data to display to set a state and it seems like its working :sweat_smile:! thanks

1 Like

Hello @posideon244, :wave:

That’s great news! I’m thrilled to hear that everything works now! :slightly_smiling_face:

If you’re enjoying our plugins, please rate them. Simply go to the Plugins tab in the Bubble editor, search for the plugin by name, and award it the stars you think it deserves. Your support would mean a great deal to us!

I wish you an amazing day ahead. If there’s anything more you need or questions you have, please don’t hesitate to contact me.

Best regards,
Daniel.