Talk Analytics API, gRPC: TalkService.UploadText
Статья создана
Обновлена 17 октября 2024 г.
rpc for uploading text talk document
gRPC request
rpc UploadText (UploadTextRequest) returns (UploadTextResponse)
UploadTextRequest
{
"metadata": {
"connectionId": "string",
"fields": "string",
"users": [
{
"id": "string",
"role": "UserRole",
"fields": "string"
}
]
},
"textContent": {
"messages": [
{
"userId": "string",
"timestamp": "google.protobuf.Timestamp",
// Includes only one of the fields `text`
"text": {
"text": "string"
}
// end of the list of possible fields
}
]
}
}
request to create text based dialog
Field |
Description |
metadata |
|
textContent |
TalkMetadata
Field |
Description |
connectionId |
string id of connection this talk belongs too |
fields |
string channel defined fields |
users[] |
per user specific metadata |
UserMetadata
Field |
Description |
id |
string |
role |
enum UserRole
|
fields |
string |
TextContent
Field |
Description |
messages[] |
Message
Field |
Description |
userId |
string |
timestamp |
|
text |
Includes only one of the fields |
TextPayload
Field |
Description |
text |
string |
UploadTextResponse
{
"talkId": "string"
}
Field |
Description |
talkId |
string id of created talk document |