You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 13, 2021. It is now read-only.
* Add encrypted credentials fixeswatson-developer-cloud#63
* add a version to nano
* Remove clouding, update travis and more cleanup
* [ci skip] fix README badge
* Add gif to README
The output from this command is a JSON object, as in this example:
@@ -126,7 +126,7 @@ The chat interface is on the left, and the JSON that the JavaScript code receive
126
126
capabilities
127
127
greetings
128
128
goodbyes
129
-
129
+
130
130
Type a request, such as `music on` or `I want to turn on the windshield wipers`. The system understands your intent and responds. You can see the details of how your input was understood by examining the JSON data in the `Watson understands` section on the right side.
131
131
132
132
For example, if you type`Turn on some music`, the JSON data shows that the system understood the `turn_on` intent with a high level of confidence, along with the `appliance` entity with a value of `music`.
@@ -142,67 +142,65 @@ After you have the app deployed and running, you can explore the source files an
142
142
* Modify the .js files to change the app logic.
143
143
* Modify the .html file to change the appearance of the app page.
144
144
* Use the Conversation tool to train the service for new intents, or to modify the dialog flow. For more information, see the [Conversation service documentation][docs_landing].
145
-
145
+
146
146
## Deploying to Bluemix
147
147
148
148
You can use Cloud Foundry to deploy your local version of the app to Bluemix.
149
149
150
150
1. In the project root directory, open the `manifest.yml` file:
151
151
152
-
* In the `applications` section of the `manifest.yml` file, change the `name` value to a unique name for your version of the demo app.
153
-
* In the `services` section, specify the name of the Conversation service instance you created for the demo app. If you do not remember the service name, use the `cf services`command to list all services you have created.
154
-
* In the `env` section, add `WORKSPACE_ID` and specify the value from the `.env` file.
155
-
156
-
The following example shows a modified `manifest.yml` file:
* In the `applications` section of the `manifest.yml` file, change the `name` value to a unique name for your version of the demo app.
153
+
* In the `services` section, specify the name of the Conversation service instance you created for the demo app. If you do not remember the service name, use the `cf services`command to list all services you have created.
154
+
155
+
The following example shows a modified `manifest.yml` file:
156
+
157
+
```yml
158
+
---
159
+
declared-services:
160
+
conversation-service:
161
+
label: conversation
162
+
plan: free
163
+
applications:
164
+
- name: conversation-simple-app-test1
165
+
command: npm start
166
+
path: .
167
+
memory: 256M
168
+
instances: 1
169
+
services:
170
+
- my-conversation-service
171
+
env:
172
+
NPM_CONFIG_PRODUCTION: false
173
+
```
176
174
177
175
1. Push the app to Bluemix:
178
176
179
-
```bash
180
-
cf push
181
-
```
177
+
```bash
178
+
cf push
179
+
```
182
180
183
-
Access your app on Bluemix at the URL specified in the command output.
181
+
Access your app on Bluemix at the URL specified in the command output.
184
182
185
183
## Troubleshooting
186
184
187
185
If you encounter a problem, you can check the logs for more information. To see the logs, run the `cf logs` command:
188
186
189
-
```bash
187
+
```none
190
188
cf logs <application-name> --recent
191
189
```
192
190
193
191
## License
194
192
195
-
This sample code is licensed under Apache 2.0.
196
-
Full license text is available in [LICENSE](LICENSE).
193
+
This sample code is licensed under Apache 2.0.
194
+
Full license text is available in [LICENSE](LICENSE).
0 commit comments