• DYNAMIC
  • STATEFUL
  • AUTONOMOUS
  • HUMAN

How to automate NPC dialogue and behavior with your AI

Connect your agent to the Morpheus Cloud to turn static scripts into living characters. Once connected, your AI handles the heavy lifting of state management and real-time responses.

Ask AI about this page

Short answer

How can I make NPCs react in real-time using my AI?

You use your agent to trigger responses and manage interaction sessions via the Morpheus Cloud. This setup allows your AI to maintain character consistency and handle live dialogue loops. You'll see how the session management works below.

The outcomes

What your AI achieves

The connection turns your agent into a real-time game director.

DYNAMIC

Live NPC responses

Your AI sends logic-driven replies to players instantly. This keeps conversations moving without manual triggers.

STATEFUL

Persistent memory

The agent tracks the history of every interaction. Characters remember what was said in previous turns.

AUTONOMOUS

Behavioral control

The AI manages the flow of the interaction session. It decides when a character stays or leaves a conversation.

HUMAN

Manual overrides

You retain control over the core logic. The AI handles the dialogue, but you decide the high-level story beats.

The workflow

What your AI does when the interaction starts.

The AI takes over the session management so you can focus on the world design.

  1. Initialize the encounter

    Your agent starts a new interaction loop by opening a dedicated space in the cloud.

    create_session
  2. Process player input

    The AI takes the player's text and runs it through its reasoning engine to decide the next move.

    send_inference
  3. Retrieve character context

    The agent pulls the current state of the conversation to ensure the NPC doesn't forget the player.

    get_session
  4. Execute response

    The AI sends the final dialogue or behavior command back to the game engine.

    send_inference

Try it

Copy these to start.

Use these prompts to kick off your NPC automation.

Starting points

These are starting lines. Swap out the character names and settings to fit your game.

rct.ai Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_c6ZwtwQXQFbVVeMcC99E2q53moEXe4fS0cDzpVFl/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat — rct.ai capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "rctai-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_c6ZwtwQXQFbVVeMcC99E2q53moEXe4fS0cDzpVFl/mcp"
    }
  }
}
Copy into chat04
  • Create a new session for a merchant NPC in a fantasy village.

  • Send an inference for a guard who is suspicious of the player's armor.

  • Get the current session state for the dragon encounter to see what the player said.

  • Start a session for a mysterious wanderer and generate a greeting.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect rct.ai once, then ask.

Just link your client to the Morpheus Cloud. Your credentials stay encrypted, and you can start prompting immediately.

Connect rct.ai to your AI

FAQ

How the automation behaves

  • 01

    Can the AI change my game's source code?

    No. The AI only manages dialogue and session data through the provided tools.

  • 02

    Does the AI handle the actual audio for the NPCs?

    No. The AI generates the text and logic for the responses, but you must handle audio playback in your game engine.

  • 03

    How does the AI remember what a player said?

    It uses the session management tools to track and retrieve the history of the interaction.

  • 04

    Can I stop an NPC interaction mid-way?

    Yes. You can manage and terminate sessions through the cloud interface.

  • 05

    Does the AI decide the player's actions?

    No. The AI only manages the NPC's responses and behavior based on what the player does.

  • More questions about rct.ai? The Connector page answers them. See everything the rct.ai Connector can do

Connect rct.ai to Claude, Cursor, ChatGPT & more