Unblu Agent Embedded JS API
    Preparing search index...

    Class UnbluConversationTemplatesApi

    Provides read access to the account's conversation templates

    Index

    Constructors

    • Parameters

      • conversationTemplatesModule: ConversationTemplatesModule
      • apiStateProvider: ApiStateProvider

      Returns UnbluConversationTemplatesApi

    Methods

    • Returns the conversation template with the given ID.

      The name and description of the conversation template are returned in the agent's language if a translation for it exists.

      Parameters

      • conversationTemplateId: string

        The ID of the conversation template to return.

      Returns Promise<ConversationTemplate>

      The conversation template with the given ID.

      UnbluApiError with type UnbluErrorType.ILLEGAL_STATE when the API instance is deinitialized.

      UnbluApiError with type UnbluErrorType.INVALID_FUNCTION_ARGUMENTS if the conversation template doesn't exist or can't be accessed.

    • Returns a list of all conversation templates of the account.

      The name and description of each conversation template are returned in the agent's language if a translation for it exists.

      Returns Promise<ConversationTemplate[]>

      A list of all conversation templates of the account.

      UnbluApiError with type UnbluErrorType.ILLEGAL_STATE when the API instance is deinitialized.