# Kirby CMS OpenAI text generator

**URL:** <https://forum.getkirby.com/t/kirby-cms-openai-text-generator/27556>\
**Category:** Plugins\
**Tags:** v3\
**Created:** [January 17, 2023, 1:49pm UTC](https://forum.getkirby.com/t/kirby-cms-openai-text-generator/27556 "2023-01-17T13:49:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Horia\_Radu](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/horia_radu/32/11854_2.png) [@Horia\_Radu](https://forum.getkirby.com/u/Horia_Radu)\
**Post date:** [January 17, 2023, 1:49pm UTC](https://forum.getkirby.com/t/kirby-cms-openai-text-generator/27556/1 "2023-01-17T13:49:39Z")

</div>

Hi all,

I’ve created a new plugin that use OpenAI to create AI generated content (field+block text item).  
The plugin is available here: [GitHub - raduhoria/openai-textgenerator-field: Kirby CMS OpenAI text generator](https://github.com/raduhoria/openai-textgenerator-field)

Hope this will bring KirbyCMS closer to a modern use of CMS.

Waiting for your input and comments.  
@texnixe

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [January 17, 2023, 7:04pm UTC](https://forum.getkirby.com/t/kirby-cms-openai-text-generator/27556/2 "2023-01-17T19:04:58Z")

</div>

@Horia_Radu Going to test this soon!

A little error I noticed: your documentation requests users to edit the index.php of your plugin to enter API key etc. However, options should be set in the config, not by editing the source code of your plugin.

---

<div class="post-metadata">

**Author:** ![Horia\_Radu](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/horia_radu/32/11854_2.png) [@Horia\_Radu](https://forum.getkirby.com/u/Horia_Radu)\
**Post date:** [January 17, 2023, 9:27pm UTC](https://forum.getkirby.com/t/kirby-cms-openai-text-generator/27556/3 "2023-01-17T21:27:01Z")

</div>

Thank you!  
Updated options.php and README.

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [January 17, 2023, 9:32pm UTC](https://forum.getkirby.com/t/kirby-cms-openai-text-generator/27556/4 "2023-01-17T21:32:56Z")

</div>

You got me wrong, there was no need to make changes in your code. A user should never be required to edit files in your plugin. This additional options file is not needed. When you have set the options like you did before, the user can set those options in /site/config/config (i.e. in the user realm). So the only change you would have had to do was in your documentation.

---

<div class="post-metadata">

**Author:** ![Horia\_Radu](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/horia_radu/32/11854_2.png) [@Horia\_Radu](https://forum.getkirby.com/u/Horia_Radu)\
**Post date:** [January 17, 2023, 9:54pm UTC](https://forum.getkirby.com/t/kirby-cms-openai-text-generator/27556/5 "2023-01-17T21:54:15Z")

</div>

🤦‍♂️  
Updated. Thanks,
