How to Implement AI-Powered Suggestions with OpenAI (ChatGPT) in Thunkable?

I’m new to Thunkable and I’m working on an app that includes a section where users can get creative suggestions powered by OpenAI’s ChatGPT. Basically I would like the app to proactively publish prompts by chatGPT each time a user opens the home screen or taps on a “generate new suggestions” button, and then users should be able to tap into each suggestion to get more details and interact with the AI system. I’ve managed to set up an API key on Open AI, but I’m struggling with implementing this feature and not sure what would be the best way to do this. I tried asking ChatGPT how I could implement this concept into Thunkable blocks but am getting nowhere. Is this even feasible? Thanks in advance for any tips you can offer.

It’s absolutely feasible but you’ll need to use Web API blocks rather than the built-in ChatGPT block.

It’s complicated enough that I can’t explain how to do it here but I recommend asking ChatGPT how to create a curl command or Postman settings for the API and once you have a response you like, then figure out how to convert that to blocks in Thunkable, which ChatGPT is not going to be all that helpful with.

You can see an example and discussion here: Open Ai source ChatGPT API undefined response

·····················································································································
Need help? How to Ask Great Questions :sparkles: Debugging A Project :sparkles: API JSON Tutorial

Want to hire a Certified Thunkable Expert? Elevate your app with Tatiang on Fiverr

Thank you! Will try that. I’m a UX designer by trade and having a very hard time understanding all the technical stuff so I may come back with more questions. :slightly_smiling_face:

1 Like

I think it took me 20 hours to figure out how to set up a working ChatGPT API call that could keep track of previous prompts and responses (that was before OpenAI included that feature in ChatGPT so I was pretty excited to figure it out at the time!). Fortunately, there’s that example I linked to and I think with some tweaking, you might be able to get it working. I’m not even sure my original method still works with the current API requirements.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.