Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Intent

Hierarchy

  • Intent

Properties

Properties

name

name: string

Gets the name of the last matched intent.

example

// Using conv.input.raw
app.intent('function name', conv => {
 conv.close(`Last match intent: ${conv.intent.name}`)
})

params

params: Record<string, IntentParameterValue>

Gets the parameters associated with the last matched intent.

example

// Using conv.input.raw
app.intent('function name', conv => {
 conv.close(`Last match intent: ${conv.intent.params.paramName.orginal}`)
 conv.close(`Last match intent: ${conv.intent.params.paramName.orginal}`)
})

query

query: string

Generated using TypeDoc