Services Plugins FAQs

Full Open AI GPT 4 - Retrieve a message?

Hi, I am struggling to find how to retrieve a message from an assistant thread. I only see the option for retrieving a list of messages but the support documentation for the plugin and open AI mentions a single message.

Anyone have any ideas?

Screenshot 2024-11-09 at 15.12.34

Hey @patrick1,
Thank you for contacting us, and sorry for the long wait due to the weekend.

To retrieve a specific message from an assistant thread using the plugin, you’ll want to use the Retrieve Message (Beta) function. In this function, you need to set both the thread_id and message_id, which will allow you to get the individual message you’re looking for.

However, unlike typical actions, this function works by returning data rather than acting directly as an action in your workflow. Here’s how to approach it:

  1. When you press a button (or trigger the function in some way), set a state with the value of the API call result.
  2. For a practical example, check out this test page on Bubble where you can see how we handle this setup.

Additionally, here are two screenshots for visual reference:

Let me know if you have any further questions, and I’ll be glad to help you!

Best Regards,
Anton

Support Team

Browse all Zeroqode Plugins for Bubble

Banner_Last3