Skip to content

This Unreal Engine plugin integrates Convai API for conversational AI and environment perception and action-taking by the AI in Unreal Engine.

License

Notifications You must be signed in to change notification settings

Conv-AI/Convai-UnrealEngine-SDK

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Convai Unreal Engine SDK Plugin

Overview

Convai brings advanced AI-driven interaction to Unreal Engine, empowering NPCs to engage in realistic conversations with players and respond intelligently to verbal commands and environmental events. Convai integrates seamlessly with various character assets and multiple language support.

Key Highlights

  • Intelligent Conversation: Real-time, open-ended conversation capabilities that make interactions more natural and dynamic.
  • Multilingual Support: Engage with players in multiple languages, broadening the reach of your game.
  • Advanced Actions: NPCs can interpret their surroundings and respond to conversations, verbal commands, and events, paving the way for innovative gameplay scenarios.
  • Knowledge Base: Equip your characters with extensive knowledge, making them lore experts or embedding them deeply into the game's world.
  • Multiplayer Interaction: Facilitates voice chat between multiple players and characters, enhancing the multiplayer experience.
  • Intelligent Animations: Integration with lip-sync and comprehensive facial and body animations, synchronized with conversation flow.

Resources for Ease of Use

Compatibility and Integration

The plugin is compatible with a wide range of character and avatar assets, including Metahumans, Daz3D, Reallusion, ReadyPlayerMe, Avaturn and more. Both humanoid and non-humanoid assets can be seamlessly integrated.

Standalone Components

  • Text to Speech & Speech to Text: Empower your characters with realistic speech capabilities.
  • Dynamic Character Updates: Modify characters’ personalities, backstories, and knowledge in real-time, based on in-game events.

Coming Soon

  • Expansion to Other Platforms: Including iOS and Linux.
  • Long-term Memory for Characters: Enabling NPCs to remember past interactions for more immersive gameplay.

Installation

Prerequisites

Before starting, ensure you have the following installed:

Overview

There are multiple ways to install the plugin:

  • Install via the marketplace
  • Download one of our ready made releases and copy them to
     C:\Program Files\Epic Games\UE_5.x\Engine\Plugins\Marketplace
    
    or for macOS:
     /Users/your_user/UnrealEngine/UE_5.x/Engine/Plugins/Marketplace
    
  • Build the plugin manually to get the latest updates and support for Custom Unreal Engine Versions, which you can do by following below steps

Building the plugin from source - Method 1

Cloning and Building the Plugin

  1. Open a command prompt or terminal.

  2. Clone the repository:

    git clone https://github.com/Conv-AI/Convai-UnrealEngine-SDK.git
    
  3. Change directory to the cloned repository:

    cd Convai-UnrealEngine-SDK
    
  4. Run the build script with the Unreal Engine directory as the first argument:

    python Build.py [Unreal Engine Directory] [Additional Flags]
    

    Add -TargetPlatforms=Win64 to build specifically for Windows. For building on Windows with support for both Windows and Android, no extra flags are needed.

    // Example: Windows only Build for Unreal Engine 5.3.
    python Build.py "C:\Program Files\Epic Games\UE_5.3" -TargetPlatforms=Win64 
    

Installing the Plugin

  1. After building the plugin, locate the output files in the Output folder within the repository directory.
  2. Copy the entire plugin folder to the Unreal Engine's plugins directory:
    • For a vanilla installation, this is typically located at:
      C:\Program Files\Epic Games\UE_5.x\Engine\Plugins\Marketplace
      
      or for macOS:
      /Users/your_user/UnrealEngine/UE_5.x/Engine/Plugins/Marketplace
      
  3. Ensure the folder hierarchy in the plugins directory mirrors the structure in the Output folder. It should look like this:
    UE_5.x
    ├── Engine
        ├── Plugins
            ├── Convai
                ├── (plugin files and folders)
    

Building the plugin from source - Method 2

  1. Clone the plugin as described in Method 1 without running the build script.

  2. Go to this drive link and download Content.zip and ThirdParty.zip.

  3. Copy the downloaded files into your cloned plugin folder (e.g., Convai-UnrealEngine-SDK) and extract them.

  4. Open \Source\Convai\Convai.Build.cs with a text editor and change bUsePrecompiled = true; to bUsePrecompiled = false;.

  5. Ensure your project is a C++ project by creating a new C++ class from the Tools menu. For conversion help, refer to this Unreal forum thread.

  6. Copy the cloned plugin folder to the Plugins folder in your project directory. Create a Plugins folder if it doesn't exist.

  7. Restart your project to prompt a rebuild of the Convai plugin. Click Yes to rebuild the plugin, then after it opens navigate to Edit->Plugins - Note: if it gave you any errors then make sure you have the required Prerequisites.

  8. In the plugins menu, search for Convai and enable it.

  9. Restart the project.

The Convai plugin should now be installed and ready for use in your Unreal Engine project.

Need Support or Have Questions?

If you encounter any issues or have questions, feel free to reach out to us at support@convai.com or join the community on Discord Our team is dedicated to providing you with the support you need to make the most out of Convai.

About

This Unreal Engine plugin integrates Convai API for conversational AI and environment perception and action-taking by the AI in Unreal Engine.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages