Bummer! This is just a preview. You need to be signed in with a Basic account to view the entire video.
Start a free Basic trial
to watch this video
Let's get started on IBM Cloud by setting up a new Conversation Workspace.
Registering for IBM Cloud
If you haven't yet, register here for a free IBM Cloud account. Please be sure to register using the same email address you used when you registered with Treehouse.
Links
Here are some helpful guides and links to set up your local development environment.
- Installing Node.js and NPM on a Mac
- Installing Node.js and NPM on Windows
- Installing Node.js and NPM on Linux
- Download Atom - Free text editor
Project Repo on GitHub
We are essentially working through the steps outlined in this training guide in the Watson docs. This would be helpful to bookmark for reference and review.
-
0:00
Like we said earlier, we're gonna build this chatbot in Node.js.
-
0:03
We definitely invite you to follow along with your programming language though.
-
0:07
As you'll see the Blue Mix documentation is great and
-
0:10
contains examples in Node, Java, and Python, which makes it easy for
-
0:13
you to do the same thing we're doing in a different language.
-
0:17
Now Armen and I are working on local Node installations using a text editor.
-
0:21
It's very easy to set up, so if you need to do that check out
-
0:24
the installation instructions we included in the teacher's notes.
-
0:27
It will walk you through setting up Node and NPM on a Mac, Windows or Linux.
-
0:31
And if you need a text editor, I'd recommend Atom from GitHub,
-
0:34
which is free and easy to use, and also linked below.
-
0:36
All right, so once you have Node set up on your local computer,
-
0:39
you can download the project starter files from the teacher's notes and
-
0:42
use them to follow along.
-
0:44
Now if you prefer to use Treehouse workspaces for this,
-
0:47
you can launch one using the button on this page.
-
0:49
It will load a workspace with the same project files we're going to use locally,
-
0:52
so you should be able to follow along directly.
-
0:55
The only issue is that currently we have a bug in how .env files are edited.
-
1:00
In workspaces you need to add .txt to the file name to make some changes and
-
1:04
then you have to remove that .txt extension and Save it and
-
1:07
then you can use it in the app itself.
-
1:10
We are essentially working through the steps outlined in this training guide
-
1:13
in the Watson Docs.
-
1:15
This link is in the teacher's notes and it would be helpful for
-
1:18
you to bookmark it to refer to later for review.
-
1:21
I've just created a brand new account, and I've confirmed it through email.
-
1:25
And now we're at this page where we need to create an organization.
-
1:27
So Armen, can you help me set this up correctly?
-
1:30
>> Gladly Ben.
-
1:31
A few steps that we want to pay attention to.
-
1:35
Notice the region that is selected for you happens to be US South.
-
1:39
We are going to keep that, that is the region we are closest to.
-
1:42
And we need to create an organization.
-
1:45
If below you can see there are two suggested names.
-
1:49
One of them is your email, and the other one is your shorter form of email.
-
1:52
I recommend picking the ones just right there as opposed to typing a new one,
-
1:56
whichever you'd like.
-
1:57
>> Sounds good.
-
2:00
>> Now we're going to create a space,
-
2:02
again, notice the suggestions down there, development, test, production.
-
2:06
Pick one of those.
-
2:08
>> Lets do dev.
-
2:08
Yeah, that makes sense.
-
2:10
Okay, it looks like we are set up with the basics.
-
2:14
Click here? >> Very well, yes.
-
2:16
>> And we are coming up on the dashboard.
-
2:18
All right mine does not have as much as yours did.
-
2:22
>> A good place to go typically at this time, Ben, is to click the Catalog tab.
-
2:29
And now, we have a great view of all the services that are on our platform.
-
2:35
>> Cool, yeah, like you mentioned before, more than just Watson,
-
2:37
there are a lot of other services available.
-
2:40
But I'm guessing I want to click Watson down here at the bottom of
-
2:42
the platform site.
-
2:43
>> For our purposes, let's go to the Watson set of cognitive services.
-
2:48
And let's just take a look at the 12 services that are here.
-
2:53
We'll be working with the Conversation service,
-
2:55
we'll also work with the Discovery service, and
-
2:59
another one of our favorites is the Tone Analyzer.
-
3:05
Interesting to note that the Natural Language Classifier, Ben,
-
3:10
is included in the Conversation service.
-
3:12
>> Right right.
-
3:13
>> That really helps in disambiguating and
-
3:17
taking care of the nuances of our speech, our colloquial way of speaking.
-
3:22
>> So that's the magic behind the scenes.
-
3:23
We're using the Conversation service, which is a wrapper for
-
3:26
all of the other work that Watson is doing for us.
-
3:28
>> Absolutely.
-
3:29
Another good point to note is that NLC,
-
3:33
that's your language classifier, is trained on Wikipedia.
-
3:40
So you're already getting machine learned set of
-
3:45
training data where, from there on, we can go on.
-
3:50
And it allows us to speak comfortably, colloquially,
-
3:54
and it would understand our nuances in our speech.
-
3:57
>> Very cool.
-
3:59
All right so, I should click on Conversation, right?
-
4:00
>> Yes, let's start with the Conversation service.
-
4:05
Wonderful, a good habit is to give the service a name,
-
4:09
typically I leave Conversation intact and just backspace over the 95 and
-
4:14
something meaningful to you, your name or whatnot.
-
4:18
This is our Ben and Armen together.
-
4:22
Here we go.
-
4:22
>> Wonderful, and really, that's all we need.
-
4:24
Let's click Create.
-
4:26
>> I see it's got organization and the dev space we created.
-
4:29
>> Absolutely.
-
4:30
>> Let it spin for a moment.
-
4:34
All right, looks like we have it.
-
4:36
>> Wonderful Ben, let's go ahead and
-
4:39
a few things I'd like to show you before we do click on the Launch tools.
-
4:42
Notice the Service credentials link to the left.
-
4:47
Let's explore that.
-
4:50
Further down, you're seeing View credentials to the bottom of the page.
-
4:54
>> This is gonna important shortly.
-
4:56
>> You're absolutely right, that username and
-
4:59
password is really our currency as we're dealing with RESTful services.
-
5:03
We will be copying pasting that in a number of files.
-
5:08
Very well back to the Manage, and let's click Launch tool.
-
5:15
>> Okay so it's asking me to login again, but hopeful it retains my credentials and
-
5:20
lets me through.
-
5:21
>> And it's true, yes.
-
5:23
Interesting to note that out
-
5:26
of the box you are presented with a Car Dashboard sample app.
-
5:31
>> Very helpful.
-
5:32
>> Very helpful, it allows us to get started with an already built Conversation
-
5:37
full of entities, intents, and so forth.
-
5:40
[COUGH] In early example we're going to create a new workspace.
-
5:45
>> Cool, and we'll come back to that sample later because we do wanna look at
-
5:48
some of the stuff in there.
-
5:49
But for the new one, what kind of name should I give this?
-
5:52
I guess this is a different car dashboard?
-
5:55
>> Correct. >> This is the Treehouse Car Chatbot.
-
5:57
And I can give it an optional description if I want,
-
6:02
working on the course with Armen, and Create.
-
6:07
>> Notice Ben, you are presented by a workspace.
-
6:11
A workspace is a container full of the artifacts that define
-
6:15
the conversation flow for an application.
-
6:19
The natural language processing for
-
6:21
the conversation service happens inside a workspace and you should add information.
-
6:27
The workspace trains itself, as we will note,
-
6:31
the automatic training of the system that takes place in the background.
-
6:35
You don't have to do anything to initiate it.
-
6:37
This will make more sense as we add different parts to it.
-
6:42
We should also note that a single Conversation
-
6:44
service instance can contain multiple workspaces.
-
6:49
Here is an example of why you may want to have more than one workspace.
-
6:54
Perhaps one of your workspaces is for chit-chat.
-
6:58
The greetings and the hello's and goodbye's,you can keep that separate from
-
7:02
the more germane and core topic of your conversation in a separate.
-
7:07
>> That's a good idea, I love well organized components like that, very cool.
You need to sign up for Treehouse in order to download course files.
Sign up