Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ConversationV3App<TConversation>

Represents the app instance which on new requests, creates a way to interact with the conversation API directly from Assistant, providing implementation for all the methods available in the API.

example

const app = conversation()

app.handler('handler name', conv => {
  conv.add('How are you?')
})

Type parameters

Hierarchy

  • ServiceBaseApp
    • ConversationV3App

Properties

handler

Optional verification

verification: string | ConversationVerification

Methods

catch

handle

  • Sets the Handler to be executed when the fulfillment is called with a given handler name.

    Parameters

    • name: string | string[]

      The handler name to match. When given an array, sets the Handler for any name in the array.

    • handler: ConversationV3Handler<TConversation>

      The Handler to be executed when the handler name is matched.

    Returns ConversationV3App<TConversation>

middleware

Generated using TypeDoc