MV Plugin to be able to create AI NPCs with Inworld API

Dear Makers of RPGs,

In light of the recent advancements in the gaming industry, driven by the AI revolution, I've been contemplating the possibility of creating a plugin to integrate the Inworld API into a text-input dialogue system for NPCs.

Have you all seen the astonishing demonstrations of the capabilities of Inworld's Origins? Several games, including Stardew Valley and Skyrim, have shown impressive implementations of this system. I urge you to see them for yourselves:







According to my research, numerous game development engines already support Inworld. Regrettably, RPG Maker isn't one of them, which is disappointing, to say the least 🙁

Nonetheless, I firmly believe that incorporating Inworld technology into RPG Maker holds immense potential. I'm hoping there might be someone among us with the necessary expertise to create an accessible build to turn this theoretical into a reality.

There have been incredible plugins that incorporated some level of chatbot technology, like Llm-Chatbot by GiusTex or ChatGPT_APIMZ by Kotonoha. But none has so far utilized Inworld's technology, which seems to be an excellent fit, particularly for creating AI NPCs.

I wonder if anyone in our community has the technical knowledge to build such a plugin. It could open up a whole new dimension of interactive and immersive storytelling for our RPG Maker projects.
I took a brief look into this and it may be feasible, though I need to investigate further. I can give this a go if there's interest. What exactly do you want to see in this versus what's offered in Llm-Chatbot and ChatGPT_APIMZ?
I took a brief look into this and it may be feasible, though I need to investigate further. I can give this a go if there's interest. What exactly do you want to see in this versus what's offered in Llm-Chatbot and ChatGPT_APIMZ?

That’s great to hear that you're potentially interested and willing to delve deeper into this 😀 The primary difference I'm envisioning with Inworld API integration, as opposed to Llm-Chatbot or ChatGPT_APIMZ, is the remarkable intricacy and depth of contextual understanding it offers.

While Llm-Chatbot and ChatGPT_APIMZ do provide a level interactive element, Inworld API has demonstrated an exceptional ability to generate more lifelike and engaging dialogue. It brings forth the potential to create NPCs who can respond to player input in a far more nuanced and dynamic way.

Inworld technology seems to be designed strategically for AI NPC creation, which again, I believe could serve our RPG Maker games brilliantly. However, these are just my thoughts, and I would be interested to hear the community's ideas and feedback.
Seems theoretically doable since it provides an API endpoint.

Getting there!

1705664694494.png
Seems theoretically doable since it provides an API endpoint.

Getting there!

View attachment 292329
Oh wow! I'm looking forward to see where this goes!
Seems theoretically doable since it provides an API endpoint.

Getting there!

View attachment 292329
TBH I am really cautious of plugins that allow NPC's that can potentially mention game mechanics and content that doesn't actually exist in-game. This is a game design disaster waiting to happen
TBH I am really cautious of plugins that allow NPC's that can potentially mention game mechanics and content that doesn't actually exist in-game. This is a game design disaster waiting to happen
Inworld does seem to have some stuff that can prevent things like that. The good thing I guess is that the plugin only needs to facilitate the bridge between the service and the game; it's up to the developer to make sure their NPCs are set up in a way that avoids such issues.
Legitimately curious - Do people actually enjoy typing to talk to NPCs?
Legitimately curious - Do people actually enjoy typing to talk to NPCs?
I thought it was a relic of old PC games, but people like to talk to ChatGPTs and chatbots so who knows. This is just a chatbot within a game interface.
Legitimately curious - Do people actually enjoy typing to talk to NPCs?
It really depends on the NPC and the game. The showcase shared in the OP with Skyrim doesn't impress me because the presentation essentially showcases a gimmick, not a game mechanic. It's fine if people want to focus on immersion and realism but what you don't want to be that dev who worldbuilds and builds a boring non-game if any game comes out at all.

Inworld does seem to have some stuff that can prevent things like that. The good thing I guess is that the plugin only needs to facilitate the bridge between the service and the game; it's up to the developer to make sure their NPCs are set up in a way that avoids such issues.
I googled inworld and I seemed to have mistaken it for another generic AI. My mistake.
Legitimately curious - Do people actually enjoy typing to talk to NPCs?
I wouldn't.

Heck, I wouldn't enjoy it even if it were a speech interface. Sitting there talking to my computer cuts a little too close to basement-dwelling madman for my comfort.

And, as most AI-related things...it comes across to me as lazy. Give me well-crafted dialogue (and choices) that's been professionally crafted.
Legitimately curious - Do people actually enjoy typing to talk to NPCs?
I do really enjoy typing to communicate with AI NPCs, and I believe I'm not alone. The act of typing out conversations creates a more intimate and active role playing experience that comes closer to the OG tabletop RPGs, allowing for greater player agency.

It deepens immersion by making characters respond uniquely to your input, improving emotional connections and enhancing replayability. It's also accessible for players who prefer or require a more measured pace of interaction. This human-AI interplay could well be the next frontier in evolving our digital adventures much like how storytelling evolves in a tabletop RPG, molding the narrative organically with each player interaction.

In my project for example, I envision crafting a super intelligent antagonist – a mastermind who isn't merely a roadblock for the hero but a complex character in their own right. The protagonist would have the option not just to fight this villain but to engage them in deep conversation, probing into the intricacies of their motives and gaining critical insights to influence the narrative's progression.

Envisioning this through the lens of Inworld AI's capabilities, we could develop an AI NPC that doesn't just regurgitate pre-written lines (like a cardboard cutout) but truly understands and interacts with the game's lore and context. This villain could argue persuasively, challenging the player to think critically about the story and the world they’re invested in. Every response from the AI would not only be unique but tailored to the dialogue's flow, making for a thoroughly convincing and dynamic character that can react logically and emotionally to the player's actions and choices.
I do really enjoy typing to communicate with AI NPCs, and I believe I'm not alone. The act of typing out conversations creates a more intimate and active role playing experience that comes closer to the OG tabletop RPGs, allowing for greater player agency.

It deepens immersion by making characters respond uniquely to your input, improving emotional connections and enhancing replayability. It's also accessible for players who prefer or require a more measured pace of interaction. This human-AI interplay could well be the next frontier in evolving our digital adventures much like how storytelling evolves in a tabletop RPG, molding the narrative organically with each player interaction.

In my project for example, I envision crafting a super intelligent antagonist – a mastermind who isn't merely a roadblock for the hero but a complex character in their own right. The protagonist would have the option not just to fight this villain but to engage them in deep conversation, probing into the intricacies of their motives and gaining critical insights to influence the narrative's progression.

Envisioning this through the lens of Inworld AI's capabilities, we could develop an AI NPC that doesn't just regurgitate pre-written lines (like a cardboard cutout) but truly understands and interacts with the game's lore and context. This villain could argue persuasively, challenging the player to think critically about the story and the world they’re invested in. Every response from the AI would not only be unique but tailored to the dialogue's flow, making for a thoroughly convincing and dynamic character that can react logically and emotionally to the player's actions and choices.
I don't know if InWorld is a Large Language Model, but if it is a LLM, it does not process ideas "logically" or "emotionally", but generates words based on their statistical relationship with each other provided a given set of parameters. I bring this up because I think it's incredibly important to have a broad understanding of how generative AI like GPT or InWorld works so we have realistic expectations of what they can accomplish.
1705712361309.png

Getting there.
I don't know if InWorld is a Large Language Model, but if it is a LLM, it does not process ideas "logically" or "emotionally", but generates words based on their statistical relationship with each other provided a given set of parameters. I bring this up because I think it's incredibly important to have a broad understanding of how generative AI like GPT or InWorld works so we have realistic expectations of what they can accomplish.
Fair point! I could’ve chosen words more carefully. You're quite right in your understanding of how generative AI models like GPT or InWorld's AI systems function. These are not sentient beings processing information logically or emotionally but rather complex algorithms predicting the next word in a sequence based on patterns they've learned from vast amounts of text data.

Their outputs are contingent upon the internal statistical modeling of language, and indeed, they lack genuine understanding or consciousness. However, despite these limitations, their ability to convincingly simulate conversation and generate contextually appropriate responses can be remarkably sophisticated.

Very stoked to see this! Its crazy to see progress so fast 😮
Legitimately curious - Do people actually enjoy typing to talk to NPCs?
it realy depends,

in you'r casual standard-rpg
[which basically ... well ... like a book, tries to tell you a story ... just visually underlayed and with some gamemechanics in it] ... well, it would probably only annoy me

but for games that are more into the investigation / crime nieche,
having the possibility, to aks your npc [within a certain, predefined, context] anything you'd want ... can be a real boon to the gameplay

However, despite these limitations, their ability to convincingly simulate conversation and generate contextually appropriate responses can be remarkably sophisticated.
ai also likes to halucinate from time to time 😉
but by giving it the full context of you'r lore, you'r character design/behavior patterns, you'r worldbuilding/background story etc ... you already kind of put it inside a box ... that realy helps in making the outcome a lot more beliefable
@Trihan we should collab!

I also have a very rough demo working. Interesting concept!

Input text:
InWorldDemo_1.PNG


Get a response via InWorld:
InWorldDemo_2.PNG


Super rough sketch but basic idea works.
@Trihan we should collab!

I also have a very rough demo working. Interesting concept!

Input text:
View attachment 292405

Get a response via InWorld:
View attachment 292406

Super rough sketch but basic idea works.
I'm genuinely excited about this, and I deeply appreciate the effort that you and @Trihan have put into this project. It's quite impressive, and I'm eager to see it in action!
@Trihan we should collab!

I also have a very rough demo working. Interesting concept!

Input text:
View attachment 292405

Get a response via InWorld:
View attachment 292406

Super rough sketch but basic idea works.
I've already implemented word wrap, working on a window that allows full keyboard typing and supports the mobile keyboard rather than using name input.

Edit: word wrap now accounts for face graphics!
1705749249583.png

I found an MIT plugin for the keyboard input, so I'm incorporating that rather than coding it from scratch.
Update: Got simple text send completely working, currently getting the fully managed integration features in and I have a send working with the node SDK if you have it installed.

Inworld is aware of my plugin and has added me to a group for early access and pioneering developers. 😀

Original thread: https://forums.rpgmakerweb.com/threads/plugin-to-be-able-to-create-ai-npcs-with-inworld-api.164923/