Skip to main content

Demo: LLM

Starting from version 3.6.0, Inworld provides direct integration support for the Inworld LLM to all users. While in a connected state, you can access this integration during any character interaction scenario by opening the built-in Global Chat Panel and selecting the LLM Service. Alternatively, you can directly experience this integration support using Inworld's sample scene SampleLLM.

⚠️ Note:: For the LLM service, only text message is supported for now.

1. 2D Sample Scene:

This demo is under Assets > Inworld > Inworld.Assets > Scenes > SampleLLM.

After the application has loaded, press the Connect button to initiate the session. Once the session is established, the status is marked as Initialized.

LLM2D1

To send a message to the character, type your message and press the Enter or Send button.

LLM2D2

2. Using LLM in the existing demo.

Open an Innequin demo such as Assets > Inworld > Inworld.Samples.Innequin > Scenes > SampleBasic.

Note that most other sample scenes under the Innequin folder also support this feature.

Once the program is running, press ~ to open the Global Chat Panel. In the character selection list at the bottom left, select LLM Service to activate the LLM for interaction.

LLM3D1

3. Using LLM in your own game

To integrate your custom LLM service, you need at least one workspace and one runtime API key/secret. Ensure that you have prepared all the necessary assets.

If you are unsure about the required data, please refer to the Prerequisite Page for detailed guidance.

Login Inworld Studio

This is the same as the Create your own page.

Integrating LLM in 2D

  1. Follow the Create your own page to login.
  2. After logging in, select your Workspace, Runtime API Key (create one if you haven't already), and LLM Service.
  3. Modify parameters as needed, such as selecting a specific AI Model, then choose Add PlayerController to your scene.
  4. Close the Inworld Studio Panel.

That's it! Now you can press Play and interact with the LLM just like in the SampleLLM scene. LLM2D3

Using LLM in a 3D Scene

The steps are the same as in the Create your own page.

The usage is the same as in the existing demo.

After clicking Play, you first need to Connect to Inworld (initiate a conversation with your character to connect automatically).

Then, press ~ to open the Global Chat Panel, select LLM Service, and start interacting with the LLM.

LLM3D2