Method: projects.locations.datasets.conversations.ingest

Imports conversations and processes them according to the user's configuration.

HTTP request

POST https://{endpoint}/v1/{parent=projects/*/locations/*/datasets/*}/conversations:ingest

Where {endpoint} is one of the supported service endpoints.

The URLs use gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The parent resource for new conversations.

Request body

The request body contains data with the following structure:

JSON representation
{
  "conversationConfig": {
    object (ConversationConfig)
  },
  "redactionConfig": {
    object (RedactionConfig)
  },
  "speechConfig": {
    object (SpeechConfig)
  },

  // The following is a list of mutually exclusive fields. At most one of the
  // fields will be set in a response:
  "gcsSource": {
    object (GcsSource)
  }
  // End of mutually exclusive fields.

  // The following is a list of mutually exclusive fields. At most one of the
  // fields will be set in a response:
  "transcriptObjectConfig": {
    object (TranscriptObjectConfig)
  }
  // End of mutually exclusive fields.
  "sampleSize": integer
}
Fields
conversationConfig

object (ConversationConfig)

Configuration that applies to all conversations.

redactionConfig

object (RedactionConfig)

Optional. DLP settings for transcript redaction. Optional, will default to the config specified in Settings.

speechConfig

object (SpeechConfig)

Optional. Default Speech-to-Text configuration. Optional, will default to the config specified in Settings.

Configuration for an external data store containing objects that will be converted to conversations. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response:
gcsSource

object (GcsSource)

A cloud storage bucket source. Note that any previously ingested objects from the source will be skipped to avoid duplication.

End of mutually exclusive fields.
Configuration for converting individual source objects to conversations. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response:
transcriptObjectConfig

object (TranscriptObjectConfig)

Configuration for when source contains conversation transcripts.

End of mutually exclusive fields.
sampleSize

integer

Optional. If set, this fields indicates the number of objects to ingest from the Cloud Storage bucket. If empty, the entire bucket will be ingested. Unless they are first deleted, conversations produced through sampling won't be ingested by subsequent ingest requests.

Response body

If successful, the response body contains an instance of Operation.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.

IAM Permissions

Requires the following IAM permissions on the parent resource:

  • contactcenterinsights.datasetConversations.create
  • contactcenterinsights.conversations.create

For more information, see the IAM documentation.