POST
/
v1
/
chatbot

Authorizations

x-api-key
string
headerrequired

Body

application/json
name
string
required

The chatbot's name.

resourceIds
string[]
required

An array of resource ids that the chatbot can use.

model
string
required

The model the chatbot uses. Values can be 'gpt-4-turbo-preview' | 'gpt-4' | 'gpt-4o-mini'.

accessLevel
string
required

The access level of the chatbot. Values can be 'PUBLIC' | 'PRIVATE' | 'PROTECTED'.

welcomeMessage
string

The chatbot's welcome message. Displayed when the chatbot is first opened.

chatbotMessageColor
string

The HEX background color of the chatbot's messages. Will default to #E0E5EF.

userMessageColor
string

The HEX background color of the user's messages. Will default to #000000.

accentColor
string

The HEX color of the chatbot's accent color. Will default to #000000.

conversationBackgroundColor
string

The HEX color of the chatbot's background color behind the messages of the selected conversation. Will default to #FFFFFF.

sideBarBackgroundColor
string

The HEX color of the chatbot's background color behind the conversation menu. Will default to #F2F2F2.

enabledEmoji
boolean

Whether or not the chatbot should use emojis. Defaults to false.

personalityType
string

The personnality type of the chatbot. Values can be 'ASSISTANT' | 'COACH' | 'ADVISOR' | 'EXPERT' | 'CUSTOM'.

toneType
string

The tone the chatbot uses. Values can be 'HUMOROUS' | 'FRIENDLY' | 'FORMAL' | 'CUSTOM'.

customSystemPrompt
string

The custom system prompt the chatbot uses. Defined only if personalityType and toneType are set to 'CUSTOM'.

restrictAnswersToResourcesContentResponse
string

Answer the chatbot must return if information is not found in the resources. If not set, the chatbot will not be restricted to the knowledge from the resources.

password
string

If the chatbot is private, the password to access it. Must be at least 8 characters long and contain at least one uppercase letter, one lowercase letter, one number and one special character.

websiteIntegration
object

The website integration configuration of the chatbot. Defined if the chatbot is set to be integrated on one or more websites.

Response

201 - application/json
id
string
required

The chatbot's id.

name
string
required

The chatbot's name.

welcomeMessage
string
required

The chatbot's welcome message. Displayed when the chatbot is first opened.

createdAt
number
required

The created date of the chatbot. Unix timestamp in milliseconds.

creator
string
required

The user id of the creator.

organisation
string
required

The organisation id of the chatbot.

resources
string[]
required

An array of resource ids that the chatbot can use.

chatbotMessageColor
string
required

The HEX background color of the chatbot's messages.

userMessageColor
string
required

The HEX background color of the user's messages.

accentColor
string
required

The HEX color of the chatbot's accent color.

conversationBackgroundColor
string
required

The HEX color of the chatbot's background color behind the messages of the selected conversation.

sideBarBackgroundColor
string
required

The HEX color of the chatbot's background color behind the conversation menu.

enabledEmoji
boolean
required

Whether or not the chatbot should use emojis.

model
string
required

The model the chatbot uses. Values can be 'gpt-4o-mini' | 'gpt-4-turbo-preview' | 'gpt-4' | 'gpt-4o-mini'.

accessLevel
string
required

The access level of the chatbot. Values can be 'PUBLIC' | 'PRIVATE' | 'PROTECTED'.

customSystemPrompt
string

The custom system prompt the chatbot uses. This defines the behavior of the chatbot.

restrictAnswersToResourcesContentResponse
string

Answer the chatbot must return if information is not found in the resources. If not set, the chatbot will not be restricted to the knowledge from the resources.

websiteIntegration
object

The website integration configuration of the chatbot. Defined if the chatbot is set to be integrated on one or more websites.