Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface DialogflowApp<TConvData, TUserStorage, TContexts, TConversation>

Type parameters

Hierarchy

Properties

Optional auth

handler

Optional init

init: undefined | function

ordersv3

ordersv3: boolean

Optional verification

Methods

catch

fallback

intent

  • Sets the IntentHandler to be execute when the fulfillment is called with a given Dialogflow intent name.

    Type parameters

    Parameters

    • intent: DefaultDialogflowIntent | DefaultDialogflowIntent[]

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

    • handler: DialogflowIntentHandler<TConvData, TUserStorage, TContexts, TConversation, TParameters, Argument> | string

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

    Returns this

  • Sets the IntentHandler to be execute when the fulfillment is called with a given Dialogflow intent name.

    Type parameters

    Parameters

    • intent: DefaultDialogflowIntent | DefaultDialogflowIntent[]

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

    • handler: DialogflowIntentHandler<TConvData, TUserStorage, TContexts, TConversation, Parameters, TArgument> | string

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

    Returns this

  • Sets the IntentHandler to be execute when the fulfillment is called with a given Dialogflow intent name.

    Type parameters

    Parameters

    • intent: DefaultDialogflowIntent | DefaultDialogflowIntent[]

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

    • handler: DialogflowIntentHandler<TConvData, TUserStorage, TContexts, TConversation, TParameters, TArgument> | string

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

    Returns this

  • Sets the IntentHandler to be execute when the fulfillment is called with a given Dialogflow intent name.

    Type parameters

    Parameters

    • intent: string | string[]

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

    • handler: DialogflowIntentHandler<TConvData, TUserStorage, TContexts, TConversation, TParameters, Argument> | string

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

    Returns this

  • Sets the IntentHandler to be execute when the fulfillment is called with a given Dialogflow intent name.

    Type parameters

    Parameters

    • intent: string | string[]

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

    • handler: DialogflowIntentHandler<TConvData, TUserStorage, TContexts, TConversation, Parameters, TArgument> | string

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

    Returns this

  • Sets the IntentHandler to be execute when the fulfillment is called with a given Dialogflow intent name.

    Type parameters

    Parameters

    • intent: string | string[]

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

    • handler: DialogflowIntentHandler<TConvData, TUserStorage, TContexts, TConversation, TParameters, TArgument> | string

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

    Returns this

middleware

Generated using TypeDoc