This tutorial will help you understand how to create AI generated content from any plugin built by CodeRevolution. You will need to set up also the Aiomatic plugin and configure it (add your OpenAI/AiomaticAPI API keys in its settings) for this method to work.
*Update April 2023*: Support for nested [aicontent] shortcodes was added, check details about this, below!
To create AI content in any plugin, please be sure to update the plugins you are using to the latest version, be sure to search for this badge on the bottom of plugin admin menus, to be sure that this feature will work for you:
Once you see this badge, you can get started creating AI prompts in any input field of the plugin you are using which accepts shortcodes. Example usage:
[aicontent model=”text-davinci-003″]Write an intro for the article title: “%%item_title%%[/aicontent]
Tutorial video:
Update April 2023:
Now you will be able to create nested aicontent shortcodes, as follows. For the aicontent shortcodes which are embedded in another aicontent shortcode, you need to add a number, which will differentiate it from other shortcodes found in the text.
Example:
[aicontent]Act as an AI assistant. [aicontent2]Write a AI prompt which will instruct the AI to respond to questions in a respectful way, to be sure to not offend the user[/aicontent2][/aicontent]
You can use as many similar shortcodes, embedded in another (multiple level embedding/nesting also supported). If you nest shortcodes, be sure to differentiate them with numbers and close them accordingly.
Example of multi-level shortcode nesting:
[aicontent]Your initial prompt part [aicontent2]A prompt for the first level of the nested shortcode [aicontent3]A prompt for the second level of the nested shortcode[/aicontent3][/aicontent2][/aicontent]
Tutorial video for nested [aicontent] shortcodes: