必要な環境
パッケージ | Version |
---|---|
Node.js | V4.4.3 |
v4.4.3をインストールしておく
$ node -v
v4.4.3
wit-nodeのインストール
npm install --save node-wit
Wit.aiの設定
~を実行すると、chatのテストができる。
Wit.aiのClientトークンを取得
Node.jsからWit.aiを実行
node examples/template.js Clientアクセストークン
> こんにちわ
Executing merge action
Executing say with message: こんにちわ!!
こんにちわ!