# Build An AI Chat App with Thunkable + OpenAI

**URL:** https://community.thunkable.com/t/build-an-ai-chat-app-with-thunkable-openai/3782824
**Category:** Tutorials and DIY Guides
**Tags:** chat, ai, community, novice, tutorial
**Created:** [April 29, 2025, 9:36am UTC](https://community.thunkable.com/t/build-an-ai-chat-app-with-thunkable-openai/3782824 "2025-04-29T09:36:36Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![thecodeloft](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/thecodeloft/32/201844_2.png) [@thecodeloft](https://community.thunkable.com/u/thecodeloft)
#### Post date: [April 29, 2025, 9:36am UTC](https://community.thunkable.com/t/build-an-ai-chat-app-with-thunkable-openai/3782824/1 "2025-04-29T09:36:36Z")

</div>

Hey everyone! 👋

I’ve just published a beginner-friendly tutorial that walks you through creating your own **AI-powered chat app** using **Thunkable** and **OpenAI**.

This tutorial is perfect if you’re:  
✅ New to Thunkable  
✅ Curious about how AI works in apps  
✅ Looking for a hands-on project with step-by-step guidance

🧱 **What you’ll learn:**

- How to set up the OpenAI API with Thunkable
- How to send and receive AI messages
- How to build a clean mobile interface for chat
- Saving chat history

📲 **No prior coding experience needed!**

👉 Check it out here:  
🌐 [Mobile App Tutorials - The Code Loft](https://thecodeloft.com/mobileAppTutorials.html)

I’d love your feedback — and if there’s interest, I’ll keep posting more tutorials like:

- AI image generation
- Voice-controlled input

Thanks for reading and happy building! 🚀

— Adrian (The Code Loft)

---

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [April 29, 2025, 5:48pm UTC](https://community.thunkable.com/t/build-an-ai-chat-app-with-thunkable-openai/3782824/2 "2025-04-29T17:48:48Z")

</div>

It’s a really straightforward, easy-to-follow explanation of how to set up the Open AI block in Thunkable. Thanks for sharing it!

---

<div class="post-metadata">

### Author: ![thecodeloft](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/thecodeloft/32/201844_2.png) [@thecodeloft](https://community.thunkable.com/u/thecodeloft)
#### Post date: [April 29, 2025, 6:46pm UTC](https://community.thunkable.com/t/build-an-ai-chat-app-with-thunkable-openai/3782824/3 "2025-04-29T18:46:09Z")

</div>

Thanks 🙂 I was experimenting with hosting a website on Firebase and thought I’d try building something that could be useful to others while I was at it.

---

<div class="post-metadata">

### Author: ![l.aaronsonsq6](https://avatars.discourse-cdn.com/v4/letter/l/8baadc/32.png) [@l.aaronsonsq6](https://community.thunkable.com/u/l.aaronsonsq6)
#### Post date: [April 30, 2025, 4:54pm UTC](https://community.thunkable.com/t/build-an-ai-chat-app-with-thunkable-openai/3782824/4 "2025-04-30T16:54:31Z")

</div>

my students just build and are getting error code. is this because they do not have tokens/credits in their API accounts? Is there a workaround?

laurie

---

<div class="post-metadata">

### Author: ![thecodeloft](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/thecodeloft/32/201844_2.png) [@thecodeloft](https://community.thunkable.com/u/thecodeloft)
#### Post date: [April 30, 2025, 7:38pm UTC](https://community.thunkable.com/t/build-an-ai-chat-app-with-thunkable-openai/3782824/5 "2025-04-30T19:38:29Z")

</div>

Hi Laurie,

They should get a certain free amount of calls to the Open AI API, I have heard some accounts lose these after a period of time of being active though. It could be worth creating a new Open AI account with a new email address if thats an option?

Kind Regards  
Adrian (The Code Loft)

---

<div class="post-metadata">

### Author: ![shaydentimej95ceq](https://avatars.discourse-cdn.com/v4/letter/s/41988e/32.png) [@shaydentimej95ceq](https://community.thunkable.com/u/shaydentimej95ceq)
#### Post date: [June 5, 2025, 8:08pm UTC](https://community.thunkable.com/t/build-an-ai-chat-app-with-thunkable-openai/3782824/7 "2025-06-05T20:08:28Z")

</div>

Im having a issue with my API I posed a question 5 days ago if someone could check it out and help me
