Giter VIP home page Giter VIP logo

capsule-sample-fact's Introduction


Bixby Facts Sample Capsule

Overview

Do you have some interesting facts about a hobby or passion to share? Do you have a set of LOL jokes to share? The facts sample capsule is the perfect place to share that content by building a Bixby capsule.

Lots of the basic building blocks of a Bixby capsule are highlighted; This is a great capsule to start learning how to develop for Bixby.

You can easily customize this capsule with your own content without any development! Just use the spreadsheet in the contentUtility folder and cut and paste from there into the content.js file, update the capsule.id and training as necessary and you have made this capsule your own!

You can also retrieve data from an API. Included is an example of a simple API call to get dad jokes. See the getRemoteContent.js file

How to get started

  • Download and install the Bixby Studio IDE from the Bixby Developer Center
  • Download this capsule (zip is the easiest way) from Github. Unzip in your directory of choice
  • Open the Capsule in Bixby Studio
  • Open the simulator and give it a try!

How to try

Ask about facts. Try these:

Tell me a fact (Bixby says a random fact)

Tell me a fact about dogs (Bixby says a fact about dogs)

Or ask about jokes. Try these:

Tell me a joke (Bixby says a random joke (fact)

Tell me a cat joke (Bixby says a random joke (fact) about cats)

Or ask about dad jokes (uses an API call). Try this:

Tell me a dad joke (Bixby says a random dad joke (fact) using a remote API call)

How to customize

  • Put your own content (facts and associated tags and images) into code/content.js - You may also use the spreadsheet located in contentUtility/CreateContent.xslx to create content
  • Use an API for your facts/jokes. You need to modify code/lib/getRemoteContent.js and code/content.js
  • If you want to use images in your content you can either use a web URL or you can save your image under assets/images and refer to them with a relative path, e.g. images/cow.png (you might have to wait a little until the IDE uploads images to the cloud)
  • Change the capsule id to reflect your organization and your content. The capsule id is defined in the capsule.bxb file
  • You can customize the NoResult dialog (resources/base/dialog/Content_NoResult.dialog.bxb)
  • Add more training / change the training
  • Have fun!

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”

capsule-sample-fact's People

Contributors

rogerkibbe avatar siamakh avatar jpalioto avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.