Browsed by
Tag: wit.ai

Making a Chat Bot with wit.ai

Making a Chat Bot with wit.ai

I’m currently building a chat bot with wit.ai as an additional way to search for courses. As part of this I need to learn how to build one.

There are a number of api’s / frameworks available to build chat bots. I am currently using wit.ai

Wit.ai Useful Links

Steps

I followed the Getting Started Guide to create my app : https://wit.ai/getting-started

I then went through the documentation to get a rough idea of how to setup and train my app : https://wit.ai/docs/quickstart

I setup my entities and trained it to certain sentences. (read the quick start documentation to understand how this works)

Finally in the settings tab I have a curl script I can use to test the app in terminal which return:

{
    "_text" : "Do you have any courses in art?",
    "entities" : {
        "course_type" : [
            {
                "confidence" : 0.9968739640596, 
                "value" : "Art",
                "type" : "value" 
            }],
        "sentiment" : [
            {
                "confidence" : 0.87585085150416,
                "value" : "neutral"
            }],
        "intent" : [
            {
                "confidence" : 0.99992613113395,
                "value":"course"
            }]
    },
    "msg_id" : "14PsrGfV9LIEz4neL"
}

Next I need to work out how to integrate this into a website.

More to follow…

Prototypes….

Chat Bot Design Mock