After you finish going through the quick start guide and the Planning Your Capsule guide, you're ready to create a capsule of your own.
To help with your engineering planning, here are typical tasks that a capsule developer will need to work on, in the order they should typically be done. This guide outlines those steps, lists questions you should ask yourself, and points to relevant documentation for each step.
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're ready to set up the capsule metadata.
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.
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 continue using Bixby.
When you add input validations and error handling code, this 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 setting up some user stories so that you can have repeatable testing units you can easily run, especially as you continue to iterate and refine your capsule.
After setting up the core functionalities of your capsule, you're ready to start the submission and deployment process. If you haven't yet set up your capsule workspace, complete that before working on submission and deployment.
A full checklist of what needs to be done is available in the Deployment Checklist.
After the core functionality of your capsule has been implemented and tested, make sure to iterate and refine your user experience and user interface as needed.