Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface DialogflowApp<TConvData, TUserStorage, TContexts, TConversation>

Type parameters

Hierarchy

Index

Properties

Optional auth

handler

Optional init

init: undefined | function

Optional verification

Methods

catch

  • Parameters

    Returns this

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