Talk Analytics API, gRPC: TalkService.UploadText
Written by
Updated at December 17, 2024
rpc for uploading text talk document
gRPC request
rpc UploadText (UploadTextRequest) returns (UploadTextResponse)
UploadTextRequest
{
"talk_id": "string",
"metadata": {
"connection_id": "string",
"fields": "map<string, string>",
"users": [
{
"id": "string",
"role": "UserRole",
"fields": "map<string, string>"
}
]
},
"text_content": {
"messages": [
{
"user_id": "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 |
talk_id |
string talk_id, blank if initial upload request and present on metadata update |
metadata |
|
text_content |
TalkMetadata
Field |
Description |
connection_id |
string id of connection this talk belongs too |
fields |
object (map<string, string>) channel defined fields |
users[] |
per user specific metadata |
UserMetadata
Field |
Description |
id |
string |
role |
enum UserRole
|
fields |
object (map<string, string>) |
TextContent
Field |
Description |
messages[] |
Message
Field |
Description |
user_id |
string |
timestamp |
|
text |
Includes only one of the fields |
TextPayload
Field |
Description |
text |
string |
UploadTextResponse
{
"talk_id": "string"
}
Field |
Description |
talk_id |
string id of created talk document |