Get Bot Information

Get Bot basic information.

Request Method

GET

Request URL

https://api.gptbots.ai/v1/bot/detail

Request Authentication

See Overview for authentication details.

Request

Request Example

curl -X GET 'https://api.gptbots.ai/v1/bot/detail' \
  -H 'Authorization: Bearer your_apikey' \
  -H 'Content-Type: application/json'

Request Headers

FieldTypeDescription

Authorization

Bearer ${token}

Use Authorization: Bearer ${token} for authentication. Get the key from the API Keys page as token.

Content-Type

application/json

Data type, set to application/json.

Request Body

None.

Response

Response Example

{
  "bot_id": "645dd86606931c4a9e0ffb1e",
  "name": "Conversational App",
  "logo": "https://res.theengagelab.com/ailab/images/default_avatar.png",
  "bot_type": "IntelligentAssistant",
  "welcome_message": "Welcome message when user first uses the bot",
  "introduction": "Introduction of the bot",
  "tags": "Tags of the bot",
  "identity_prompt": "Identity prompt of the bot",
  "ai_model": "ChatGPT",
  "aiModel_version": "3.5", 
  "creativity_level": 0.3,
  "doc_correlation": 0.2,
  "irrelevant_questions": true,
  "question_limit": 100,
  "long_term_memory": true
}

Success Response

FieldTypeDescription

bot_id

string

Bot ID.

name

string

Bot name.

logo

string

Bot avatar.

bot_type

string

Bot type, value: IntelligentAssistant, QuestionAnswer.

welcome_message

string

Welcome message when user first uses the bot.

introduction

string

Introduction of the bot.

tags

string

Tags of the bot.

identity_prompt

string

Identity prompt of the bot.

ai_model

string

AI model, value: ChatGPT.

aiModel_version

string

AI model version.

creativity_level

int

Creativity level, value: 0-1.

doc_correlation

int

Document correlation, value: 0-1.

irrelevant_questions

boolean

Whether to answer questions irrelevant to dataset. Value: true, false.

question_limit

int

Limit on length of user questions.

long_term_memory

boolean

Whether long term memory is enabled.

Failure Response

FieldTypeDescription

code

int

Error code.

message

string

Error details.

Error Codes

CodeMessage

40127

Developer authentication failed

Last updated