Chat Editor is an extension of Android Studio’s text editor.
To make the Chat Editor available in Android Studio, install the Pepper SDK. For further details, see: Installing the Pepper SDK plug-in.
Chat Editor’s purpose is to help editing Chat topic files.
A chat topic allows you to give your robot conversational skills by using a list of dialog rules that describe how to reply to what the user says. The topic and its rules are written using the QiChat Language language.
As Pepper is able to understand and talk several human languages, it is possible to create several versions of a chat topic, each one supporting a language.
Before creating such variants, it is mandatory to create the default one.
Tip
The first time you name a chat topic, it will create the default one.
Note that it is not possible to select a specific language.
Create again chat topics using the same name, you will be able to select a human language in order to create variants.
Step | Action |
---|---|
In Android Studio choose File > New > Chat Topic. | |
Enter a file name. |
|
Click the Create button. The new Chat Topic file is added to the |
|
Replace the default content by your own QiChat content. You can for example, uncomment the default content in order to test it: For further details, see: QiChat Language. |
Step | Action |
---|---|
In Android Studio choose File > New > Chat Topic. | |
Enter the file name of an existing chat topic then select a language and a region. |
|
Click the Create button. The new Chat Topic file is added to the
|
|
Replace the default content by your own QiChat content. You can for example, uncomment the default content in order to test it: For further details, see: QiChat Language. |
It is now time to use the topic in your code.