Skip to content

Commit

Permalink
Merge pull request #756 from rubenaeg/rmtuckerphx/bixby-fixes
Browse files Browse the repository at this point in the history
馃憣 Adjust Bixby Examples
  • Loading branch information
aswetlow committed May 26, 2020
2 parents 3d8458d + 2bf19a4 commit 951e20e
Show file tree
Hide file tree
Showing 72 changed files with 412 additions and 0 deletions.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,18 @@
capsule {
id (playground.jovo_test)
version (0.1.0)
format (3)
targets {
target (bixby-mobile-en-US)
}
runtime-version (3)
permissions {
bixby-user-id-access
}
store-countries {
all
}
store-sections {
section (Utilities)
}
}
@@ -0,0 +1,3 @@
text (JovoSessionId) {
description (Defines a unique session id.)
}
@@ -0,0 +1,3 @@
text (JovoSpeech) {
description (The returned Jovo output.)
}
@@ -0,0 +1,3 @@
text (JovoState) {
description (The current state of the Jovo handler.)
}
@@ -0,0 +1,3 @@
text (JovoText) {
description (The returned Jovo output as plain text without SSML.)
}
@@ -0,0 +1,6 @@
structure (JovoLayout) {
description (Layout structure. Add your fields for usage.)

// Paste your own layout properties here.

}
@@ -0,0 +1,27 @@
structure (JovoResponse) {
description (Response from Jovo Framework)

property (_JOVO_SESSION_DATA_) {
type (JovoSessionData)
min (Optional)
max (One)
}

property(_JOVO_SPEECH_) {
type(JovoSpeech)
min (Optional)
max (One)
}

property (_JOVO_TEXT_) {
type(JovoText)
min (Optional)
max (One)
}

property (_JOVO_LAYOUT_) {
type(JovoLayout)
min (Optional)
max (One)
}
}
@@ -0,0 +1,22 @@
structure (JovoSessionData) {
description (Session Data)

property(_JOVO_SESSION_ID_) {
type(JovoSessionId)
max (One)
min (Required)
}

property(_JOVO_STATE_) {
type(JovoState)
max (One)
min (Optional)
}

// Paste your own session properties here.
property(name) {
type (NameInput)
max (One)
min (Optional)
}
}
@@ -0,0 +1,5 @@
action (LaunchAction) {
description (Opens the voice application for the first time.)
type (Search)
output (JovoResponse)
}
@@ -0,0 +1,20 @@
action (MyNameIsAction) {
description (Collects a name from the user and returns a welcome message.)
type (Search)

collect {
input (_JOVO_INPUT_name) {
type (NameInput)
min (Required)
max (One)
}

input (_JOVO_PREV_RESPONSE_) {
type(JovoResponse)
min (Required)
max (One)
}
}
output (JovoResponse)
}

@@ -0,0 +1,3 @@
text (NameInput) {
description (A name to display in a welcome message.)
}
@@ -0,0 +1 @@
config.default.remote.url=YOUR_WEBHOOK_URL_HERE
@@ -0,0 +1,15 @@
endpoints {
action-endpoints {
action-endpoint (LaunchAction) {
remote-endpoint ("{remote.url}") {
method (POST)
}
}

action-endpoint (MyNameIsAction) {
remote-endpoint ("{remote.url}?intent=MyNameIsIntent") {
method (POST)
}
}
}
}
@@ -0,0 +1,12 @@
capsule-info {
display-name (Jovo Test Capsule)
developer-name (Jovo)
icon-asset (jovo-logo.png)
description ("An example capsule, that demonstrates how to integrate a Bixby capsule into a Jovo Application.")
website-url (https://jovo.tech)
terms-url (https://jovo.tech/terms)
search-keywords {
keyword(jovo)
}
dispatch-name (Jovo Test Capsule)
}
@@ -0,0 +1,7 @@
hints {
uncategorized {
hint (start Jovo Test Capsule)
hint (with Jovo Test Capsule)
hint (ask Jovo Test Capsule)
}
}
@@ -0,0 +1,13 @@
result-view {
match {
JovoResponse (response)
}

message {
if (exists(response._JOVO_TEXT_) && exists(response._JOVO_SPEECH_)) {
template("#{value (response._JOVO_TEXT_)}") {
speech ("#{value (response._JOVO_SPEECH_)}")
}
}
}
}
@@ -0,0 +1,5 @@
train (t-65qvujlnruo3utlq08b6ckzg0) {
utterance ([g:LaunchAction] start jovo test capsule)
plan (Y2BiUCzISaxML8ovzUvRy8ovy48vSS0u0fMCsoJSiwvy84pTcSjxSSzNS85wTC7JzM9jYARCBigGkgA=)
last-modified (1580654109506)
}
@@ -0,0 +1,10 @@
train (t-7g5q9m894osc44x6f6uof2qll) {
utterance ("[g:MyNameIsAction] my name is (paul)[v:NameInput]")
plan (Y2BhUCzISaxML8ovzUvRy8ovy48vSS0u0fMCsoJSiwvy84pTGZSxKvGt9EvMTfUsdkwuyczPI8YcOaxKwKbkFZSWMDAzMDIwAUkGIA2CEMAEZAHFAA==)
last-modified (1580654090327)
}
train (t-7lljzcz28wvxhiv242avuw4m2) {
utterance ("[g:MyNameIsAction] my name is (ruben)[v:NameInput]")
plan (Y2BhUCzISaxML8ovzUvRy8ovy48vSS0u0fMCsoJSiwvy84pTGZSxKvGt9EvMTfUsdkwuyczPI8YcOaxKwKbkFZSWMDAzMDIwAUkGIA2CEMAEZAHFAA==)
last-modified (1580819039785)
}
@@ -0,0 +1,5 @@
train (t-amdxx0iwfv69q67gafrx0zn0r) {
utterance ("[g:MyNameIsAction] i am (max)[v:NameInput]")
plan (Y2BhUCzISaxML8ovzUvRy8ovy48vSS0u0fMCsoJSiwvy84pTGZSxKvGt9EvMTfUsdkwuyczPI8YcOaxKwKbkFZSWMDAzMDIwAUkGIA2CEMAEZAHFAA==)
last-modified (1580658422548)
}
@@ -0,0 +1,5 @@
train (t-ha0pegtyusxtz6tk9scseeca4) {
utterance ("[g:MyNameIsAction] my name is (tom)[v:NameInput]")
plan (Y2BhUCzISaxML8ovzUvRy8ovy48vSS0u0fMCsoJSiwvy84pTGZSxKvGt9EvMTfUsdkwuyczPI8YcOaxKwKbkFZSWMDAzMDIwAUkGIA2CEMAEZAHFAA==)
last-modified (1580658421346)
}
@@ -0,0 +1,5 @@
train (t-irdukn06pb503lwdbs3vt8wl6) {
utterance ([g:LaunchAction] open jovo test capsule)
plan (Y2BiUCzISaxML8ovzUvRy8ovy48vSS0u0fMCsoJSiwvy84pTcSjxSSzNS85wTC7JzM9jYARCBigGkgA=)
last-modified (1580658764910)
}
@@ -0,0 +1,5 @@
train (t-jf9mgbvjzsu1thmwrgql6akwj) {
utterance ([g:LaunchAction] open jovo test capsule)
plan (Y2BiUCzISaxML8ovzUvRy8ovy48vSS0u0fMCsoJSiwvy84pTcSjxSSzNS85wTC7JzM9jYARCBigGkgA=)
last-modified (1580653703413)
}
@@ -0,0 +1,5 @@
train (t-ujd5gt050is8xbsiyh1fqsi0k) {
utterance ("[g:MyNameIsAction] i am (paul)[v:NameInput]")
plan (Y2BhUCzISaxML8ovzUvRy8ovy48vSS0u0fMCsoJSiwvy84pTGZSxKvGt9EvMTfUsdkwuyczPI8YcOaxKwKbkFZSWMDAzMDIwAUkGIA2CEMAEZAHFAA==)
last-modified (1580654105294)
}
@@ -0,0 +1,5 @@
train (t-znvq2370wdynlubi4y97trf09) {
utterance ("[g:MyNameIsAction] my name is (max)[v:NameInput]")
plan (Y2BhUCzISaxML8ovzUvRy8ovy48vSS0u0fMCsoJSiwvy84pTGZSxKvGt9EvMTfUsdkwuyczPI8YcOaxKwKbkFZSWMDAzMDIwAUkGIA2CEMAEZAHFAA==)
last-modified (1580654133228)
}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,18 @@
capsule {
id (playground.jovo_test)
version (0.1.0)
format (3)
targets {
target (bixby-mobile-en-US)
}
runtime-version (3)
permissions {
bixby-user-id-access
}
store-countries {
all
}
store-sections {
section (Utilities)
}
}
@@ -0,0 +1,3 @@
text (JovoSessionId) {
description (Defines a unique session id.)
}
@@ -0,0 +1,3 @@
text (JovoSpeech) {
description (The returned Jovo output.)
}
@@ -0,0 +1,3 @@
text (JovoState) {
description (The current state of the Jovo handler.)
}
@@ -0,0 +1,3 @@
text (JovoText) {
description (The returned Jovo output as plain text without SSML.)
}
@@ -0,0 +1,6 @@
structure (JovoLayout) {
description (Layout structure. Add your fields for usage.)

// Paste your own layout properties here.

}
@@ -0,0 +1,27 @@
structure (JovoResponse) {
description (Response from Jovo Framework)

property (_JOVO_SESSION_DATA_) {
type (JovoSessionData)
min (Optional)
max (One)
}

property(_JOVO_SPEECH_) {
type(JovoSpeech)
min (Optional)
max (One)
}

property (_JOVO_TEXT_) {
type(JovoText)
min (Optional)
max (One)
}

property (_JOVO_LAYOUT_) {
type(JovoLayout)
min (Optional)
max (One)
}
}
@@ -0,0 +1,22 @@
structure (JovoSessionData) {
description (Session Data)

property(_JOVO_SESSION_ID_) {
type(JovoSessionId)
max (One)
min (Required)
}

property(_JOVO_STATE_) {
type(JovoState)
max (One)
min (Optional)
}

// Paste your own session properties here.
property(name) {
type (NameInput)
max (One)
min (Optional)
}
}
@@ -0,0 +1,5 @@
action (LaunchAction) {
description (Opens the voice application for the first time.)
type (Search)
output (JovoResponse)
}
@@ -0,0 +1,20 @@
action (MyNameIsAction) {
description (Collects a name from the user and returns a welcome message.)
type (Search)

collect {
input (_JOVO_INPUT_name) {
type (NameInput)
min (Required)
max (One)
}

input (_JOVO_PREV_RESPONSE_) {
type(JovoResponse)
min (Required)
max (One)
}
}
output (JovoResponse)
}

@@ -0,0 +1,3 @@
text (NameInput) {
description (A name to display in a welcome message.)
}
@@ -0,0 +1 @@
config.default.remote.url=YOUR_WEBHOOK_URL_HERE
@@ -0,0 +1,15 @@
endpoints {
action-endpoints {
action-endpoint (LaunchAction) {
remote-endpoint ("{remote.url}") {
method (POST)
}
}

action-endpoint (MyNameIsAction) {
remote-endpoint ("{remote.url}?intent=MyNameIsIntent") {
method (POST)
}
}
}
}

0 comments on commit 951e20e

Please sign in to comment.