# OpenAI ChatGPT Now Available in Thunkable with Our New Integration

**URL:** <https://community.thunkable.com/t/openai-chatgpt-now-available-in-thunkable-with-our-new-integration/2209360>\
**Category:** Release Updates\
**Created:** [January 6, 2023, 7:54pm UTC](https://community.thunkable.com/t/openai-chatgpt-now-available-in-thunkable-with-our-new-integration/2209360 "2023-01-06T19:54:08Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![manyone](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@manyone](https://community.thunkable.com/u/manyone)\
**Post date:** [January 18, 2023, 8:42am UTC](https://community.thunkable.com/t/openai-chatgpt-now-available-in-thunkable-with-our-new-integration/2209360/14 "2023-01-18T08:42:10Z")

</div>

it’s nice to know that we can connect to openAI via a thunkable block designed for that purpose.

first i asked “ **Tell me, in a poem, why python rocks** ” and it came back with this:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/b/1bbf65e7df51a01f405eeedeab68fb82055f27f4.png)

it seemed to have problems in handling newlines (\n) though,

so i split the returned response by hand:

_Python’s great for all your coding needs_  
_It’s easy to learn and a great tool to please_  
_It’s open source, and it’s ever so flexible_  
_And it’s got a huge library to explore and collect_  
_Python’s great for automation and data science_  
_It’s so versatile, it can do almost anything_  
_It’s got a great community, full of helpful folks_  
_Ready to help you when your code chokes_  
_Python’s the language of choice for many_  
_It’s got the power to solve any coding worry_  
_It’s easy to use and understand_  
_The perfect language for any tech-savvy man_  
_Python rocks, it’s clear for us to see_  
_It’s the language of choice for you and me!_

actually i made an earlier request with this prompt:  
**write a poem describing why i should learn python.**

and it came back with this (which is not bad) - i also had to split by hand.

_Python is a language that’s worth learning,_  
_Its power and flexibility make it appealing._  
_You can create things that are quite amazing,_  
_And the learning process is not too taxing._  
_It provides a base for quite a few things,_  
_From simple scripts to web development wings._  
_It’s easy to learn and quite a lot of fun,_  
_And you can apply it to many a project, one and one._  
_The applications it has can be seen,_  
_From automation to data science and machine learning._  
_So don’t hesitate, take the time,_  
_To learn Python and you won’t regret your climb._

so it’s not ChatGPT but it tries!

then i tried the image generation with this prompt:  
**robot in grass skirt , green hills in background, style stained glass**

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/b/2bbe21bcacc1dce931fe441fccd7f9cf0c5d9e68.png)

i was surprised by the response - it may have missed the grass skirt (i should have worded it differently) but overall, the image is impressive!

then i tried the prompt “ **don quixote dancing with snow white in the style of picasso** ” and voila

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/7/b773dddbcde6fc886145a147f14d3aa62dcbb9d6.png)

there must be a way to interpret those newlines in the returned response of the first example for text generation. (when i was connecting to GPT-3 - directly - in the summer, the response came back with newlines correctly interpreted - perhaps in this format, via the control block, there is some setting i need to set).

all in all, it’s impressive - here are my blocks:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/4/c40b494c9297e65987ddebe691c49ae2b0524f5f.png)

here;s the link to the project for remixing (you have to supplu an api\_key)  
[https://x.thunkable.com/copy/c548528e5420ab6ce006d7e14e3c8f49](https://x.thunkable.com/copy/c548528e5420ab6ce006d7e14e3c8f49)

sign up for an API key with OpenAI and click on the link in @conroy33’s post above.

---

_[View the full topic](https://community.thunkable.com/t/openai-chatgpt-now-available-in-thunkable-with-our-new-integration/2209360)._
