Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Input

Hierarchy

  • Input

Properties

Properties

raw

raw: string

Gets the user's raw input query.

Will also be sent via intent handler 2nd argument which is the encouraged method to retrieve.

example

// Encouraged method through intent handler
app.intent('actions.intent.TEXT', (conv, input) => {
 conv.close(`You said ${input}`)
})

// Using conv.input.raw
app.intent('actions.intent.TEXT', conv => {
 conv.close(`You said ${conv.input.raw}`)
})

Will also be sent via intent handler 2nd argument which is the encouraged method to retrieve.

example

// Encouraged method through intent handler
app.intent('actions.intent.TEXT', (conv, input) => {
 conv.close(`You said ${input}`)
})

// Using conv.input.raw
app.intent('actions.intent.TEXT', conv => {
 conv.close(`You said ${conv.input.raw}`)
})
example

// Encouraged method through intent handler
app.intent('actions.intent.TEXT', (conv, input) => {
 conv.close(`You said ${input}`)
})

// Using conv.input.raw
app.intent('actions.intent.TEXT', conv => {
 conv.close(`You said ${conv.input.raw}`)
})

type

type: Api.GoogleActionsV2RawInputInputType

Gets type of input used for this request.

Generated using TypeDoc