Skip to content
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."
JavaScript
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets/images add marketplace info, hints, up lib versions Jul 8, 2019
code Shoe Capsule Nov 1, 2018
models Converge Feb 12, 2019
resources 19Q deprecations Sep 11, 2019
stories Updated Story Nov 30, 2018
.gitignore Converge Feb 12, 2019
LICENSE Shoe Capsule Nov 1, 2018
README.md Update README.md Feb 12, 2019
capsule.bxb 19r deprecations Sep 19, 2019

README.md


Bixby Simple Search Sample Capsule

Overview

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."


Development Notes

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


Additional Resources

Your Source for Everything Bixby

Guides & Best Practices

Video Guides

Need Support?

  • 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”
You can’t perform that action at this time.