Services Plugins FAQs

Full OpenAI chatgpt

Hello everyone,

I am new to chatgpt and I have just subscribed to the Full Openai plugin

I can’t configure my workflow. To provide context, I created software with bubble to interview users.

The idea is that chatgpt conducts the interview and asks questions to the candidate according to previously defined criteria. I have already created an assistant in my openai dashboard and I would like to use it to conduct interviews.

My current workflow is as follows: when clicking a button, a new “interview” datatype is created.

I then use the actions create thread and create message.

The user is then taken to a new page (classic conversation type) where ideally chatgpt should send the first welcome message to start the conversation with an open question. The idea being that the user responds and chatgpt continues the interview by asking other questions based on the answers provided by the user.

The more I try, the more I feel like I’m getting lost. Maybe I’m missing something.

I saw that the “create a run” action made it possible to “link” the thread and the assistant. Should it be included in the workflow?

Could someone guide me to set up a classic workflow for an exchange between an assistant and a user? From there, I might be able to see things more clearly.

Hey @_nathan ,
Thank you for contacting us.

To set up a workflow where ChatGPT conducts interviews with users in your Bubble application, the general idea is to use the OpenAI (ChatGPT) plugin to manage the conversation flow. Here’s a concise guide:

  1. Create a New Thread: Use the Create Thread action to initiate a conversation between your assistant and the user. This thread will serve as the foundation for the entire interview session.
  2. Send the First Message: After creating the thread, use the Create Message action to send an opening message from ChatGPT, such as a welcome greeting or the first interview question.
  3. Enable Contextual Conversations: To make the conversation interactive and dynamic:
  • Store the Thread ID and link it to the interview record.
  • Each user response should trigger a workflow to send the user’s input to ChatGPT using the Create Message action and retrieve ChatGPT’s next response.
  1. Display the Conversation: Use a repeating group or similar dynamic element on your conversation page to show the back-and-forth between the user and ChatGPT.
  2. Use the Assistant Setup: If you’ve configured an assistant in the OpenAI dashboard, make sure to link it correctly in the plugin settings. The Run Assistant action can help apply the assistant’s defined behavior in your workflow.

For detailed configuration, I highly recommend checking the Zeroqode OpenAI Plugin Documentation and exploring the demo page to see a practical example.

Best Regards,
Anton

Support Team

Browse all Zeroqode Plugins for Bubble

Banner_Last3

1 Like

Hello @AntonZ and thank you for your quick response.

Everything works fine. I just have one last question

Can you tell me if it is possible to display all messages from a thread in a repeating group? I’m trying to display messages from my assistant and messages sent by the user in my chat

NB: I found how to retrieve the messages from the thread and send them in a custom states. My problem is to differentiate messages sent by the assistant and messages sent by the user

NB 2 :

image

To explain, I manage to send my messages to my repeating group but I cannot include the role for each message.

The idea would be to have, for each message in my thread, to send a list of text in this format:

Role - Current message

Role - Current message

I could then arrange to set conditions based on who is sending the message.

Sorry to insist but perhaps you have already had this situation?

Hey @_nathan ,
Thank you for your reply.

I understood your question and recreated on this test page what you mentioned above.
Please test and configure the plugin as shown on this test page.

If there are any additional questions, feel free to ask

Best Regards,
Anton

Support Team

Browse all Zeroqode Plugins for Bubble

Banner_Last3