Cortex · AI for your Roblox game · all guides

How to add AI NPCs to a Roblox game

Static dialogue trees get old fast. With Cortex your NPCs reply in character to whatever the player actually types — no giant tables, no branching mess.

One server-side request

Put a ModuleScript in ServerStorage and call it from a server Script — your key never touches the client.

local Cortex = require(game.ServerStorage.Cortex)
local ai = Cortex.new("YOUR_KEY")

print(ai:ask(
  "You are a gruff dwarven blacksmith. One short in-character line.",
  "Can you forge me a sword?"
))

~3 seconds, and you pay in Robux via a game pass. No cards, no backend.

🎁 Open beta — free keys for the first devs. Founding testers keep a permanent founder discount when it goes paid, plus a Robux reward + your game featured for shipping it in a live game with feedback.

Get started

Get a free beta key → Free kit on GitHub Live demo

More guides: ai npc · ai chatbot · chat moderation · ai quests · ai companion · ai shopkeeper · dynamic dialogue · ai dungeon master · ai lore generator · smart enemies · ai tutorial npc · ai story generator