So you finished going through the quick start guide, you've read through the Planning Your Capsule guide, and you're finally ready to create a capsule of your own!
To help with your engineering planning, here are the typical tasks that the capsule developer will need to work on, in the order that they should typically be done. This guide outlines those steps, lists some questions you should ask yourself, and points to relevant documentation for each of those steps.
We highly recommend that you follow the order listed below when developing your capsule!
These steps are mostly for creating a capsule from scratch. You can also create a capsule using one of the capsule templates available in Bixby Studio or build off of any of our other sample capsules!
This is an optional starting point. You can use the playground
namespace to start developing your capsule until you are more ready for setting up the capsule meta data.
First, go to the Developer Console to set up some information about your capsule.
Then, you will need to open Bixby Studio and create an empty capsule. This will get you started on setting up your capsule.
We recommend starting with mobile
and your primary language. After you've developed the basic functionality of your capsule, you can then expand to other devices and locales later.
Creating your initial set of models is the first step of developing your capsule.
To make your models come to life, you need to implement the actions using JavaScript for major API calls.
endpoints.bxb
file.Adding training utterances is what helps Bixby learn about how to interact with users. For more information, see natural language (NL) training (utterances).
Further, adding these initial training examples enables you to use NL utterances while testing instead of relying on intents or Aligned NL.
Views are the look-and-feel aspect of your capsule. You need to create initial views for lists, summaries, and properties.
We recommend you read the Using Expression Language and the Match Patterns Developers' Guides while working on views/layouts, dialog, and strategies. Expression Language helps you use your models directly in these files. Match patterns help Bixby identify which models, dialogs, views/layouts, or strategies to call during execution. You can read the Planner Overview guide to understand more about how Bixby uses these things and your training to dynamically generate a program.
Dialogs are how Bixby talks to users, both as displayed text and spoken aloud.
If you are planning to support multiple locales, make sure to review how to localize your capsules.
Instantiation Strategies offer ways for you to provide some default values to users.
Selection Strategies and Preference Learning are features you can add to your capsule that enable Bixby to better understand users and provide better results for them as they continuing using Bixby.
When you add input validations and error handling code, it helps ensure that your user's experience is smoother.
You should constantly be testing your capsule, either with the Bixby Studio Simulator or with on-device testing.
Additionally, we recommend you set up some user stories so that you can have repeatable testing units that you can easily run, especially as you continue to iterate and refine your capsule.
After getting the core functionalities of your capsule, you're ready to start the submission and deployment process. If you haven't done the initial step of setting up your capsule workspace, you need to work on that before working on submitting and deploying.
A full checklist of what needs to be done is available in the Deployment Checklist.
You should continue to iterate and refine your user experience and user interface as needed, once the core functionality of your capsule has been implemented and tested.