Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 2025 Direct Cursus Technology L.L.C.
Yandex SpeechSense
  • Getting started
    • Authentication with the API
      • Overview
        • Overview
        • UploadAsStream
        • Upload
        • UploadText
        • Search
        • Get
  • Audit Trails events
  • Access management
  • Pricing policy
  • Release notes
  • FAQ

In this article:

  • gRPC request
  • UploadTextRequest
  • TalkMetadata
  • UserMetadata
  • TextContent
  • Message
  • TextPayload
  • UploadTextResponse
  1. API reference
  2. gRPC
  3. Talk
  4. UploadText

Talk Analytics API, gRPC: TalkService.UploadText

Written by
Yandex Cloud
Updated at December 17, 2024
  • gRPC request
  • UploadTextRequest
  • TalkMetadata
  • UserMetadata
  • TextContent
  • Message
  • TextPayload
  • UploadTextResponse

rpc for uploading text talk document

gRPC requestgRPC request

rpc UploadText (UploadTextRequest) returns (UploadTextResponse)

UploadTextRequestUploadTextRequest

{
  "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

TalkMetadata

text_content

TextContent

TalkMetadataTalkMetadata

Field

Description

connection_id

string

id of connection this talk belongs too

fields

object (map<string, string>)

channel defined fields

users[]

UserMetadata

per user specific metadata

UserMetadataUserMetadata

Field

Description

id

string

role

enum UserRole

  • USER_ROLE_UNSPECIFIED
  • USER_ROLE_OPERATOR
  • USER_ROLE_CLIENT
  • USER_ROLE_BOT

fields

object (map<string, string>)

TextContentTextContent

Field

Description

messages[]

Message

MessageMessage

Field

Description

user_id

string

timestamp

google.protobuf.Timestamp

text

TextPayload

Includes only one of the fields text.

TextPayloadTextPayload

Field

Description

text

string

UploadTextResponseUploadTextResponse

{
  "talk_id": "string"
}

Field

Description

talk_id

string

id of created talk document

Was the article helpful?

Previous
Upload
Next
Search
© 2025 Direct Cursus Technology L.L.C.