What is AI Hub?
AI Hub Extension is the generative AI tool center in Gandi IDE, providing you with AI technologies that can be used in games.
Currently, the main function of AI Hub is the GPT Chatbot, which is a language model based on GPT 3.5.
Why do you need GPT Chatbot?
We used GPT 3.5 API to design the blocks in AI Hub based on game scenarios. You can use the blocks in the extension to enable players to interact with in-game characters using natural language, creating a brand new gaming experience.
In traditional role-playing games, designers had to write every line for NPCs, and players were typically limited to fixed dialogue options, even if there were branching choices, the options were limited.
With generative AI technology, you can allow players to converse with NPCs using natural language in the game, just like chatting with friends on instant messaging software. This technology can help you create a role-playing experience with higher freedom and immersion.
This is an escape room showcase game made using AI Hub, where you can use natural language to converse with AI NPCs and solve puzzles.
House of Resonance AI Demo by @Jamin /Scratch project hosted on Cocrea.
Welcome to play My Project Hosted on Cocrea.world, powered by Gandi IDE.
Of course, there are many other possibilities that language models can achieve, so feel free to unleash your imagination.
How to use AI Hub？
The lates version of GPT Chatbot contains 4 modules:
- Set the chat language - Set the background information for the game world
- Create AI characters and set their name, personality, identity, speaking style, task, and background information
- Set player’s name, identity, and background information
- Chat with a designated AI character and obtain a response message.
Functions and definition
AI characters can communicate with players in any language. You can use this block to set the language used by AI characters.
The default option is [Follow the Chat]. In this case, AI characters will respond based on the language input by the player.
The drop-down menu also includes preset options for English and 中文. You can also use variables to set any language.
You can set some background information for your game world. All AI characters in the game will be aware of this information.
Before chatting, you need to create an AI character and set its various properties.
The personality of an AI character will affect its responses when chatting with players.
The identity of an AI character will affect its responses when chatting with players.
You can make an AI character speak like a celebrity or a well-known character.
Different characters can be distinguished by their names in the program. Characters cannot have the same name.
In the drop-down menu of the block, there are several preset options for the personality, identity, and speaking style of the character. You can also use variables to set them.
When creating an AI character, you may want this character to complete a specific task in the game, such as helping the player learn a certain skill.
You can set a task for the AI character in the program, and the character will be more inclined to guide the conversation towards completing the task when communicating with the player.
The background information of an AI character refers to the knowledge and information that the AI character possesses in the game world.
Setting the background information of a character has a high degree of freedom and possibility. You can set various information according to your needs, such as the AI character's opinions on other characters.
In the game world, you can give the player a background setting, and AI characters will use it as a reference when talking to the player.
The player's identity will affect the reactions of AI characters during conversations with the player.
The player's name will determine how AI characters address the player.
The player's background setting will affect how AI characters react when chatting with the player.
Hero is a homeless
You can set a task for the player, which will affect how AI characters react during conversations with the player.
This block can be used to clear the conversation history in AI Hub, which is remembered by the AI characters during interactions with the player. The characters may give different responses based on the conversation history.
The simplest chat block allows you to specify the name of the AI character and the content to start the conversation. The block will return the response from the AI character.
However, the execution of this block may take some time and it depends on the network condition and server status.
Another block used for chatting with AI characters. The async chat block sends out a chat message without waiting for the AI's response, allowing subsequent blocks to run before the AI responds. In addition to specifying the AI character's name and chat content, you also need to set an event ID. This is used to identify which message the AI character is responding to when their reply is received.
After sending a message using the async chat block, this hat block will be triggered when the AI character responds.
The hat block will contain the AI character's name, the response content, and the corresponding event ID.
Player messages and AI responses may go beyond the scope of your design
Using natural language to communicate with NPCs in games can give players more freedom and greatly enhance the immersion of the game. However, for game designers, this means that they cannot control the content of communication between players and NPCs. This may lead to a significant reduction in the game experience.
Using AI Hub extensions does not mean that everything can be left to AI generation. You still need to edit high-quality background settings and character introductions, design appropriate plots and gameplay to guide players, in order to allow the content generated by AI to help you create a better game experience.