Edit:
This template has been removed from the asset store. If you are interested in using OpenAI in your Construct 3 projects, please consider using the OpenAI Plugin Suite instead.
https://www.construct.net/en/game-assets/addons/openai-plugin-suite-3317
**************************************************************
Hi guys, I've just released "OpenAI API Construct 3 template" in the asset store!
Template
https://www.construct.net/en/game-assets/game-templates/openai-api-construct-template-3172
OpenAI API Construct 3 template
The purpose of this template is to demonstrate how the following features can be integrated into Construct 3, enabling you to develop your own applications and games using them. Each feature has its own distinct layout and event sheet, providing you with an understanding of how it works and the ability to easily copy or modify it in your own C3 projects
Introducing the OpenAI C3 template - a powerful and easy-to-use template for integrating the OpenAI API into your C3 projects. With this template, you can easily add AI-powered functionality to your apps/games, including:
● Completions feature for creating completions for any prompt to provide a wide range of possible completions, including but not limited to:
- natural language responses
- dialogue continuation
- text summarization
- code generation
- question answering
● Create image feature for generating images based on a given prompt
● Outpainting feature to generate extended images based on a given prompt. This can be used to add additional elements, details, or context to an existing image
● Create image variation feature for creating variations of existing images
● Create image edit feature to erase certain parts of an existing image and generate new elements based on a given prompt
● Seamless integration with C3
The OpenAI C3 template is designed to integrate seamlessly with C3 and utilizes the C3 event system for the majority of its functionality. Even though certain features such as sending images to OpenAI API requires the use of pure JavaScript, the template comes well-commented and easy to understand, so even those parts will pose no problem for users with a basic understanding of JavaScript
Please note that in order to use the OpenAI C3 template, you will need to provide your own OpenAI API key. This key can be obtained by signing up for an OpenAI account, which is free and easy to do. Once you have your API key, simply enter it into the “APIKEY” Global constant in the template and you’ll be ready to start using all of the powerful AI-powered features it provides
If you have any questions about it, feel free to reach out.