ChatBotKit Node SDK
    Preparing search index...

    Conversation client.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    • Parameters

      • conversationId: null
      • request: {} & {} | Omit<{} & {}, "model"> & { model?: Model }

      Returns ResponsePromise<{}, {} | {} | {} | {} | {} | {} | {} | {} | {} | {}>

    • Parameters

      • conversationId: string
      • request: {}

      Returns ResponsePromise<{}, {} | {} | {} | {} | {} | {} | {} | {} | {} | {}>

    • Creates a new instance of the same client type with extended options.

      This is useful when you need to create a client with modified configuration (e.g., different endpoint, token, or headers) without affecting the original.

      Note: This method creates a completely new instance rather than cloning, which is necessary because private class fields cannot be copied.

      Parameters

      Returns ConversationClient

      A new instance of the same client class with extended options

    • Receives a message from the conversation.

      Parameters

      • conversationId: string
      • request: {}

      Returns ResponsePromise<{}, {} | {} | {} | {} | {} | {} | {} | {} | {} | {}>

    • Sends a message to the conversation.

      Parameters

      • conversationId: string
      • request: {}

      Returns ResponsePromise<{}, {} | {} | {} | {} | {} | {} | {} | {} | {} | {}>