# Write Function Node Code with ChatGPT

**URL:** <https://discourse.nodered.org/t/write-function-node-code-with-chatgpt/78147>\
**Category:** Share Your Nodes\
**Created:** [3 May 2023 11:36 UTC](https://discourse.nodered.org/t/write-function-node-code-with-chatgpt/78147 "2023-05-03T11:36:24Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [3 May 2023 21:57 UTC](https://discourse.nodered.org/t/write-function-node-code-with-chatgpt/78147/3 "2023-05-03T21:57:57Z")

</div>

@robmarcer,  
Thanks to the entire team for developing this, and sharing it with the community!

I am a fan of chatgpt (at least for some areas that it know a lot about) so looking forward to start using this in Node-RED. BTW The demo looks very nice!!

I "think" I have setup my API key correctly, and entered all my info into the config screen. But I keep getting this error:

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/d/dd6163332aa219901224c8773367d146e1796a50.png)

Do you have any tips I could try?

Two other remarks:

- A _"test connection"_ button in the config screen might be useful.
- Is it the intention to keep this in the future as a separate node, or will it be integrated later on into the standard function node? In case it will stay a separate node, my [feature request](https://discourse.nodered.org/t/function-node-backend-as-reusable-package/70797) from some time ago might be useful. Because if the function node backend part could be reused, that would simplify maintaince for all of us.

Thanks!!!  
Bart

---

_[View the full topic](https://discourse.nodered.org/t/write-function-node-code-with-chatgpt/78147)._
