Unable to get the Thread ID from the previous HTTP module

Hi all, this is my first work on Make.com so apologies if this is a simple question

I created a HTTP POST module https://api.openai.com/v1/threads and successfully receiving the Thread ID

I linked the first HTTP module with the second HTTP module to use this Thread ID and have been using the following URLs but both are not working, please help

https://api.openai.com/v1/threads/{{1.data.id}}/messages
https://api.openai.com/v1/threads/{{1.response.id}}/messages

When I asked chatGPT to help fix the error it says that I will get a drop down where I can select the Thread ID from the previous step but I am not getting any drop down but instead getting the attached pop-up.

I can see the Thread ID being shown in the pop-up but I am not sure how to use it dynamically in the URL

Please assist. Thanks in advance

@Choks
Hi, If you use OpenAI’s Make an API call Module, make should automatically handle this and make the response data available to subsequent modules.

In the first post, it seems that you are getting a response in JSON format as Data, but everything is recognised as a string and should not be extractable.

@momomomonmon Many thanks for your reply. If you don’t mind me asking, how do I use OpenAI’s Make an API call. Is this something I have to do as part of the first HTTP module. In the header I have used the API key as per the attached

I think you can use the module in the attached image.

Many thanks will try it out

1 Like

Hi @Choks, please, get back and mark solution if it worked for you. :slight_smile: so someone else with the same issue can learn from it. Thanks!

1 Like