This capsule is the the companion code to the Bixby Simple Search Capsule guide. This sample capsule shows how to include basic search in a capsule. The user can start with a simple utterance, such as "Find me some shoes," or do a more specific search, such as "Find me dancing shoes."
The UI is very basic (some simple dialogs and a layout). This example also demonstrates usage of Fetch action as a lazy source for the accessories property of a Shoe.
The FindShoe action model FindShoe.model.bxb
is backed by the Javascript FindShoe.js
.
Note the parallel relationship for FindAccessories model and js files.
The FindShoe action is a Search, which uses the inputs as constraints. The FindAccessories action is actually a Fetch, which is a simple lookup of additional data from a single input.
The lazy-source, as its name implies, means that the data is only fetched when needed. In this example, it means that the fetch won't
happen until the shoe-details-fragment.layout.bml
is rendered.
For more details, check https://bixbydevelopers.com/dev/docs/reference/type/structure.property.lazy-source
- Bixby Developer Center - Everything you need to get started with Bixby Development!
- Bixby News, Blogs and Tutorials - Bixby News, Tutorials, Blogs and Events
- Quick Start Guide - Build your first capsule
- Design Guides - Best practices for designing your capsules
- Developer Guides - Guides that take you from design and modeling all the way through deployment of your capsules
- Bixby Developers YouTube Channel - Tutorial videos, Presentations, Capsule Demos and more
- Bixby Developers Chat - Voice, Conversational AI and Bixby discussions
- @BixbyDevelopers - Twitter
- Have a feature request? Please suggest it in our Support Community to help us prioritize.
- Have a technical question? Ask on Stack Overflow with tag “bixby”