Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conditional text #17

Open
marcusx opened this issue May 4, 2018 · 1 comment
Open

Conditional text #17

marcusx opened this issue May 4, 2018 · 1 comment

Comments

@marcusx
Copy link

marcusx commented May 4, 2018

@mandnyc have you thought about adding a condition helper? So you could do something like:

const speech = new Speech();
speech.say('Hello')
      .pause('1s')
      .say('and thanks for your first visit. You can Do A B and C.', skillIsInvokedFirstTimeCondition)
      .say('What would you like to do?)

skillIsInvokedFirstTimeCondition would be a callback that returns true/false and would allow us to keep the decision when a text need to be added separate from the response building.

@itachiRedhair
Copy link

This is an useful feature. PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants