Please Help! I WILL PAY YOU

Hello everyone,

I’m developing a web application in Bubble.io as part of my final year project in Social Work, and I’ve encountered a technical problem that I can’t seem to solve, despite trying multiple approaches.

The application involves a professional entering a social assessment in free text. When a button is pressed, this text is sent to OpenAI for analysis and classification into different sections relevant to the field of social work (risk factors, protective factors, emotional state, ADLs/IADLs, economic situation, support network, etc.). Each of these sections should automatically display on its corresponding card within the interface.

The API call works correctly: OpenAI returns the information, and it’s saved in the Bubble database in a text field (raw_text). In the App Data section, I can verify that the AI’s response is there and clearly contains the expected information. The workflow also seems correct: button → API call → record creation → attempt to display the data on the cards.

The problem is that, although the information exists and is saved, I can’t get it to display on the cards. I’ve tried different strategies: returning structured JSON, returning plain text, using regex to extract each section, using custom states, and different ways of linking the container group to the data. In all cases, the cards appear empty in preview or don’t correctly detect the content, even though everything seems to be configured correctly.

My feeling is that I’m doing “the right thing” according to the documentation and the usual examples, but there’s some limitation or detail in Bubble when working with AI responses (long text, JSON, Markdown, etc.) that I’m missing. After quite some time trying to solve it, I no longer know if the problem is with parsing, how Bubble interprets external responses, or some key step I’m overlooking.

I would greatly appreciate any guidance, similar experiences, or suggestions, as this project is crucial for completing my studies and I’m currently feeling quite stuck.

Thank you so much for reading and for any help you can offer.

Send the response to a custom backend endpoint in Bubble. Add a Return Data action and set its content type to application/json. This should help you parse the response.

Use the API Connector plugin to help you trigger it and return data client-side.

This indicates privacy rules…

1 Like

Hey, I feel you on this - these display issues can be really frustrating especially when everything seems configured correctly on the backend. The thing is, there are a few different points where this could be breaking down, and the fix depends on exactly how you’ve got things set up right now.

Could you share a few quick details so I can give you the exact solution? Specifically, what does the data structure look like that OpenAI is returning - is it coming back as JSON with specific keys, or is it all one text string with sections marked somehow? Also, how are your cards set up to pull the data - are they in a repeating group, individual groups, or text elements, and what’s the data source you’ve connected them to?

Just need to see those pieces to pinpoint where the disconnect is happening and get you the right fix.

Hey,
I’ve read your post and all the replies from others. To better understand the issue and help you properly, I’ll need a bit more information from you.

Please share screenshots or a short screen recording showing:

  • Your API call setup
  • The backend workflow
  • How you’re handling the API response
  • Your database structure
  • The cards or UI elements where the data is being displayed

Once I have these details, we can move forward with the solution.

Gracias por tu respuesta, te paso capturas. He hecho solo con factor_risk para probar. Puedes responderme en ingles