Bubble + ChatGPT: How to Insert Dynamic Data into a Prompt and Display the Response in a Popup?

Hey, I’m a new user of Bubble and have little prior experience with similar platforms. Right now, I’m learning the basics and trying to create a simple application with minimal functionality. Its main task is to collect user-entered data from input fields, insert it into a prewritten prompt for ChatGPT, send a request via an API key, and then not only save the received response in the database but also display it on the screen.

I found a small guide that helped me understand where to add prompts for requests and how to create a basic table for storing ChatGPT responses. However, I’ve been stuck for two days because I don’t understand the following:

  1. Where exactly should I specify that dynamic data from the input fields should be inserted into the prompt?
  2. How can I set up the workflow so that when the “Generate” button is clicked, the received information is displayed in a popup window?

I’d really appreciate any help!

Hey @vhslifedream :wave:

Welcome to the Bubble Community! :tada: :confetti_ball:

We hope that we can help assist you in your question here. Can you show a screenshot of where exactly you are getting the error or getting stuck? This can help if we see an error or see what you are trying to do.

For example, question number 2… you need to use ‘display data’ to the popup. But I am not sure if that is the only part that you need assistance on without seeing more information.

Hope that helps. :blush: