This feature is in an experimental state so you can try it out, provide feedback, and see what we are planning. You cannot publish a project that uses persona or its related features at this time.
To use this feature, you need to enable the persona_component in the Experimental Scene Graph features. Then, under Experimental Access, check Runtime AI.
The Prompt Editor Tool is a window in Unreal Editor for Fortnite (UEFN) where you can define a persona’s character and behavior using prompts that generate an NPC conversation.
With the prompt fields Personality and Knowledge, you can define the NPC responses, then using the Prompt Conversation or Bulk Response fields, you can test your AI by having a text conversation with it.
The Prompt Editor Tool is essential for defining and molding an AI personality in your project, and can be used to create an NPC character that dynamically generates responses to your players.
Overview
The Prompt Editor Tool is the foundational interface with your persona AI. After adding a Persona Modifier to an NPC Character Definitions asset or prefab, you can open the editor and define your AI’s basic prompts.
Area | Name | Description |
1 | Persona | The primary window to define:
|
2 | Conversation Log | Test and interact:
|
3 | Response Details | After clicking a response in the Conversation Log, its details will appear in the Response Details panel. From the expanded information, you can see which prompt triggered the response and how the persona responded, and see what messages in the Conversation Log influenced the persona to give that specific response. |
Accessing the Prompt Editor
To access the Prompt Editor, you must first attach a persona component to a character definitions asset in UEFN.
Open the Prompt Editor Tool Using a Character Definition Asset
Create and open a new Character Definitions asset or open an existing one.
Navigate to the Details panel and scroll down to the NPC Character Modifiers property.
Use (+) Add to create a new index in the array of Modifiers.
Using the dropdown menu, select the Persona Modifier (experimental) option.
Expand the Modifier Index properties, then expand the Character Facts property. Click the Edit in Prompt Editor button.
You can also provide Personality Prompts and Knowledge Prompts to your persona using the fields in the Details panel. Any prompts you define with the Prompt Editor Tool will reflect here as well. Any prompts you define here will be added to any existing prompts and will reflect in the Prompt Editor Tool.
Persona Prompt Overrides
In addition to using the Prompt Editor Tool, you can add additional prompts in the Character Definitions asset or on the NPC Spawner device directly. You do this by filling out the following fields under Character Facts:
Personality defines the emotional character of the persona’s conversation.
Knowledge defines what the persona knows at the start of a session.
After adding a Persona Modifier, you can expand the index and provide additional Personality or Knowledge in the Details panel.