Chatbot Demo.rbxl (657.1 KB)
This is a place file that is already set up, requires only that you:
Get your Free API token from Huggingface profile settings and insert it here as shown in the image!
Publish the place and make sure you have HTTP requests enabled! To Disable a feature you can set the variable to false!
You’re maybe thinking this is just another chatbot module?
All supporting modules were written by me, and held to extremely high standards of performance and organization, as well as understandability. Only code I didn’t write is the except the custom Animation Implementation that allows you to play animations created by another creator.
features={aware=true,wiki=true,music=true,emoji=true,emote=true,memory=true}
Feature Overview:
Aware : This gives the chatbot awareness of its surroundings by synthesizing Text Descriptions of the surroundings.
Wikipedia Summarization : If you say lookup or search it will attempt to inject a wikipedia page into the system message for more accurate results using a simplified Eliza chatbot ripe for improvement and inject it into the LLMs system message for one chat turn.
How it works entry from wikipedia inserted to the response when a search query is recognized.
This is the system message.
Emoji : Intelligently inserts emojis into a string. Using a Massive Emoji Dataset created by me and ChatGPT mapping 2400 emojis to over 14,000 words. Completed and designed for inference.
Emote : Using another creators module’s custom Animation implementation, over 100 animations each chosen intelligently for the input. Uses dataset of text descriptions of emotes to make decision based on the input.
Memory : Chatbots are designed to have seamless persistent memories between visits. Designed to be simple to use, Uses ROBLOX DataStores, very efficient, only load Character Memories as needed, multi-server compatible.
Multiple Agents : Have as many characters as you like each character has different context and memories and the Demo supports as many different characters as you want.
Secure : All data is processed safely on the server to prevent any impact on the client via huggingface inference API, memories are stored via ROBLOX data stores.
High-Quality Code : All the code is very performant, simple to understand and implementation using the main modules was written exclusively for this Open Source Release. All of the modules have been released as Open-Source by me and this is a culmination of those projects. Demonstrating what I would like to give other developers the insight to do.
This is a side project, my main project is private, I do use all of these modules though.
Chatbot Demo.rbxl (657.1 KB)
!DISCLAIMER!
I am not responsible for any misuse of this code. Use AI Tools ethically and responsibly follow ROBLOX’s terms and conditions.
Forgot to mention, this sample place includes my Boids library to add some birds and bees to the skies for the AI to experience via its awareness.
“Boids” Flocking Swarming Simulation Luau Algorithm - Library Animated Bird+Bats+Insects V.1.3 [Open Source] FREE MODEL - Resources / Community Resources - Developer Forum | Roblox
If you enjoy this, show your support by leaving a like!
Interesting thing to note is I asked the chatbot what does it think of its surroundings and it said it can see.