Conversation Thread
End to End Intelligent Conversation
Last updated
End to End Intelligent Conversation
Last updated
Note: chats saving needs save to be set to true, it is false by default.
Name | Value |
---|---|
Name | Type | Description |
---|---|---|
Fetch the list of all your saved conversations.
GET
/conversations
Headers
GET /conversations
This fetches a conversation using the specified ID number
GET
/conversation/{id}
Headers
description
POST
/conversation/{id}
Headers
Body
Message data sample
Message
DELETE
/conversation/{id}
Headers
Name | Value |
---|---|
Name | Value |
---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Value |
---|---|
Content-Type
application/json
apiKey
string
secret
string
title
string
title or topic for the chat.
inlanguage
string
The language to begin with, can be switched updated mid conversation
outputLanguage
string
The language to get response in
responsetype
string
Can be voice, image, video or text. If you need voice and text use voice,text.
agentId
string
If you are referring to a specific agent. Its ID
stream
boolean
save
number
Chats are not saved by default.
message
string
The message to begin w
messagetype
string
The message type
Content-Type
application/json
apiKey
string
secret
string
Content-Type
application/json
apiKey
string
secret
string
Content-Type
application/json
apiKey
string
secret
string
id
string
inlanguage
The language for the newest message to be updated mid conversation
outlanguage
string
The language to get response in
responsetype
string
what you need as response. Can be voice, image, video or text.
agentId
number
If you are referring to a specific agent. Its ID
stream
boolean
messages
Array[messages]
Array of messages, the one on top is the latest one
message
string
The message can be text or url of voice or video
messagetype
string
The message type, if voice specify and supply in message.
owner
string
user or machine.
topic
string
optional. instruction(to tell the machine who it is), change topic, refresh memory.
Content-Type
application/json
apiKey
string
secret
string