LLMAI Demo Guide

LLMAI comes in two demonstration projects: Both feature the same real-time AI chat interface with text and voice communication capabilities. Each demo showcases different AI function calling integrations to demonstrate the versatility of the LLMAI plugin.

LLMAI_Arcade — AI controls a retro arcade game called Rocketeer
LLMAI_LiveLink — AI controls a MetaHuman character with lip-sync and gestures
💬 Real-time AI Chat | 🎤 Voice Communication | 🔧 AI Function Calling | 🎮 Two Demo Showcases

🔑 Required Setup (Both Demos)

⚠️ Important: API Configuration Required

Both demos require either an OpenAI API key or the LLMAI LocalAI distribution (available separately) to function.

Option A: OpenAI API Key

To use OpenAI's cloud service, configure your API key:

Method 1: Project Settings (Recommended)

  1. Open Edit > Project Settings
  2. Navigate to Plugins > LLMAI
  3. Enter your API key in the Default OpenAI API Key field

Method 2: Environment Variable

# Windows Command Prompt
set OPENAI_API_KEY=your-api-key-here

# Windows PowerShell
$env:OPENAI_API_KEY="your-api-key-here"

Getting an API Key: Visit OpenAI's API Keys page to create your API key.

Option B: LocalAI (Offline/Local Processing)

For offline operation or local AI processing, use the LLMAI LocalAI distribution, available separately. LocalAI provides:

See LocalAI TTS Configuration for setup details.

📦 Demo Projects Overview

🎮 LLMAI_Arcade

Rocketeer Game Integration

A retro-style arcade shooter where AI controls the game through natural language commands. Demonstrates comprehensive function calling with 17+ AI-callable functions.

AI Can Control:

  • Game start/stop, stage progression, difficulty
  • Player lives and weapon upgrades
  • Enemy spawning with custom flight paths
  • Game speed and UI visibility
  • Timed challenges with AI callbacks

Learn More: Rocketeer Game Documentation

✨ Shared Features (Both Demos)

Both demo projects use the same LLMAI Terminal interface, providing:

Terminal Reference: Terminal Demo Documentation

🚀 Getting Started

Quick Start Steps (Both Demos)

  1. Configure AI: Set up OpenAI API key or LocalAI (see above)
  2. Open the Level: Navigate to Content/LLMAITerminal/Levels/LVL_LLMAITerminal
  3. Play the Level: Click Play in Editor or press Alt+P
  4. Connect to AI: Use the connection dialog to select model and voice
  5. Start Chatting: Use text or enable voice mode for natural conversation
  6. Try the Features: Use natural language to control the demo's features

🎮 LLMAI_Arcade Demo Details

Rocketeer Game Integration

The Rocketeer demo showcases AI function calling in a game context. The AI can start, control, and modify the game through natural conversation.

What to Try

Game Controls

Complete Function Reference: Rocketeer Game Documentation

MetaHuman Character Control

The LiveLink demo showcases AI-driven character animation with a MetaHuman (Cooper). The AI's voice output drives real-time lip-sync, and function calling enables expressive gestures and movement.

Lip-Sync Feature

When voice mode is enabled, the AI's TTS (Text-to-Speech) output automatically drives the MetaHuman's lip-sync animations through LiveLink, creating natural-looking speech animation.

What to Try

Available Gestures

The AI can trigger 16 different character gestures through natural language:

Articulate
Expressive hand gestures while explaining
BringItOn
Taunting "bring it on" motion
Dance
Dancing movement
Dismissive
Dismissive wave gesture
LookAtMyOwnBody
Character looks down at body
LookDown
Looking downward
LookUp
Looking upward
NodNo
Shaking head no
NodYes
Nodding yes
NotSure
Uncertain shrug
PlayfulPoint
Playful pointing
Surprised
Surprised reaction
ThumbsDown
Thumbs down
ThumbsUp
Thumbs up
Wave
Waving hello/goodbye
WaveFingerNo
Finger wagging "no-no"

Movement Functions

The character can move between three waypoints using natural navigation:

AIF_Move — Waypoint Movement

Uses the built-in navigation system with Third Person character movement animations, then faces the camera upon arrival.

AIF_Jump — Jump Action

Triggers the character's jump animation using the Third Person character's built-in functionality with Animation Blueprint state machine for proper jump physics and animation blending.

Technical Implementation

The LiveLink demo uses these AI Function Definition assets:

Location: Content/LLMAITerminal/Character/Blueprints/AIFunctions/

🆘 Troubleshooting

Common Issues

Connection Problems

Audio Issues

LiveLink Demo Issues

Arcade Demo Issues

Need More Help? See the FAQ or Debug & Logging Documentation.

📚 Additional Documentation

🎯 Experience the power of AI integration with real-time conversation and intelligent control!



Engineered by