Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ActionsSdkApp<TConvData, TUserStorage, TConversation>

Type parameters

Hierarchy

Properties

Optional auth

handler

Optional init

init: undefined | function

Optional verification

verification: ActionsSdkVerification | string

Methods

catch

fallback

intent

  • Sets the IntentHandler to be executed when the fulfillment is called with a given Actions SDK intent.

    Type parameters

    Parameters

    • intent: Intent | Intent[]

      The Actions SDK intent to match. When given an array, sets the IntentHandler for any intent in the array.

    • handler: ActionsSdkIntentHandler<TConvData, TUserStorage, TConversation, TArgument> | Intent

      The IntentHandler to be executed when the intent is matched. When given a string instead of a function, the intent fulfillment will be redirected to the IntentHandler of the redirected intent.

    Returns this

  • Sets the IntentHandler to be executed when the fulfillment is called with a given Actions SDK intent.

    Type parameters

    Parameters

    • intent: string | string[]

      The Actions SDK intent to match. When given an array, sets the IntentHandler for any intent in the array.

    • handler: ActionsSdkIntentHandler<TConvData, TUserStorage, TConversation, TArgument> | string

      The IntentHandler to be executed when the intent is matched. When given a string instead of a function, the intent fulfillment will be redirected to the IntentHandler of the redirected intent.

    Returns this

middleware

Generated using TypeDoc