跳到主要内容

Initialize chatbot

GET 

/bv/aisk/v1/prompts:init

This API is used to get initialize information for the chatbot. The authorization header should be prompt token.

Request

Header Parameters

    authorization string

    This API should be invoked with the prompt token.

Responses

A successful response.

Schema
    name string
    appearance object
    enabled boolean

    Optional. Indicates to enable the customization appearance setting.

    setting object

    Optional. Required if enabled the customization appearance setting.

    profile objectrequired

    Required.

    image objectrequired

    Required.

    id stringrequired

    Required. The uuid of the file image.

    url string

    Output only. The image URL to be rendered.

    name string

    Output only. The name of the image.

    display_name stringrequired

    Required.

    message objectrequired

    Required.

    welcome stringrequired

    Required.

    placeholder stringrequired

    Required.

    theme string

    Possible values: [CHATBOT_THEME_DARK, CHATBOT_THEME_LIGHT]

    Optional.

    color objectrequired

    Required.

    user_message stringrequired

    Required.

    widget stringrequired

    Required.

    reference object
    kb_selection boolean

    Optional. Indicates the user is able to select which knowledge bases should be used in the chat.

    display_citation boolean

    Optional. Indicates the user can see the citation of the answer that is from which source.

    player object

    Optional. The player setting of the playable citation.

    domain string

    Optional. The BYO domain of the player.

    response_length object
    enabled boolean

    Optional. Indicates to enable the custom limit response length.

    input int32

    Optional. Required if enabled the custom limit.

    output int32

    Optional. Required if enabled the custom limit.

    knowledge_base_infos object[]
  • Array [
  • id string
    name string
  • ]
Loading...