A very simplistic AI tool (plus webhook!)

USAGE: TYPE /a IN CHAT THEN YOUR MESSAGE
I found a vey neat website, it is wit.ai. This site allows you to easily create and train an AI, and has pretty simple integration with ROBLOX. I will post a small script of how I integrated it to find out if users are asking what time it is.
ALSO: I didn’t put this here just to show off my game. This site is great for dabbling in AI, I haven’t
typed a line of code on the AI site yet, and it still works.

local message = game:GetService("HttpService"):JSONEncode("What time is it?")

local response = game:GetService("HttpService"):RequestAsync({ Url = "https://api.wit.ai/message?v=20200506&q="..message,

Method = "GET",

Headers = { ["Authorization"] = "AUTH TOKEN GOES HERE"},

})

print(response.Body)
13 Likes

This is really cool! I am going to check it out right now!

Edit: I can’t join it is private.

It used to not give answers, now it kinda does.

To clarify for anyone reading - this AI is supposed to just detect the intent of a message to be used for passing on to a function.

For example: “What time is it?” will mean “request-time” and then you can connect that to a function that displays the current time.

(You have to program the intents in if you’re doing it on your own)

2 Likes

It can also only detect intents I’ve programmed it to.

This is pretty nice! Old topic, but still helpfull!