Skip to content

Conditional text #17

@marcusx

Description

@marcusx

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions