Provides a list of analysis segments for a real-time chat analysis session. This API supports CHAT channels only.
InvalidRequestException
occurs.See also: AWS API Documentation
list-realtime-contact-analysis-segments-v2
--instance-id <value>
--contact-id <value>
[--max-results <value>]
[--next-token <value>]
--output-type <value>
--segment-types <value>
[--cli-input-json | --cli-input-yaml]
[--generate-cli-skeleton <value>]
[--debug]
[--endpoint-url <value>]
[--no-verify-ssl]
[--no-paginate]
[--output <value>]
[--query <value>]
[--profile <value>]
[--region <value>]
[--version <value>]
[--color <value>]
[--no-sign-request]
[--ca-bundle <value>]
[--cli-read-timeout <value>]
[--cli-connect-timeout <value>]
[--cli-binary-format <value>]
[--no-cli-pager]
[--cli-auto-prompt]
[--no-cli-auto-prompt]
--instance-id
(string) [required]
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
Constraints:
- min:
1
- max:
100
--contact-id
(string) [required]
The identifier of the contact in this instance of Amazon Connect.
Constraints:
- min:
1
- max:
256
--max-results
(integer)
The maximum number of results to return per page.
Constraints:
- min:
1
- max:
100
--next-token
(string)
The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
Constraints:
- min:
1
- max:
100000
--output-type
(string) [required]
The Contact Lens output type to be returned.
Possible values:
Raw
Redacted
--segment-types
(list) [required]
Enum with segment types . Each value corresponds to a segment type returned in the segments list of the API. Each segment type has its own structure. Different channels may have different sets of supported segment types.
Constraints:
- max:
6
(string)
Possible values:
Transcript
Categories
Issues
Event
Attachments
PostContactSummary
Syntax:
"string" "string" ...
--cli-input-json
| --cli-input-yaml
(string)
Reads arguments from the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton
. If other arguments are provided on the command line, those values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally. This may not be specified along with --cli-input-yaml
.
--generate-cli-skeleton
(string)
Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value input
, prints a sample input JSON that can be used as an argument for --cli-input-json
. Similarly, if provided yaml-input
it will print a sample input YAML that can be used with --cli-input-yaml
. If provided with the value output
, it validates the command inputs and returns a sample output JSON for that command. The generated JSON skeleton is not stable between versions of the AWS CLI and there are no backwards compatibility guarantees in the JSON skeleton generated.
--debug
(boolean)
Turn on debug logging.
--endpoint-url
(string)
Override command’s default URL with the given URL.
--no-verify-ssl
(boolean)
By default, the AWS CLI uses SSL when communicating with AWS services. For each SSL connection, the AWS CLI will verify SSL certificates. This option overrides the default behavior of verifying SSL certificates.
--no-paginate
(boolean)
Disable automatic pagination. If automatic pagination is disabled, the AWS CLI will only make one call, for the first page of results.
--output
(string)
The formatting style for command output.
--query
(string)
A JMESPath query to use in filtering the response data.
--profile
(string)
Use a specific profile from your credential file.
--region
(string)
The region to use. Overrides config/env settings.
--version
(string)
Display the version of this tool.
--color
(string)
Turn on/off color output.
--no-sign-request
(boolean)
Do not sign requests. Credentials will not be loaded if this argument is provided.
--ca-bundle
(string)
The CA certificate bundle to use when verifying SSL certificates. Overrides config/env settings.
--cli-read-timeout
(int)
The maximum socket read time in seconds. If the value is set to 0, the socket read will be blocking and not timeout. The default value is 60 seconds.
--cli-connect-timeout
(int)
The maximum socket connect time in seconds. If the value is set to 0, the socket connect will be blocking and not timeout. The default value is 60 seconds.
--cli-binary-format
(string)
The formatting style to be used for binary blobs. The default format is base64. The base64 format expects binary blobs to be provided as a base64 encoded string. The raw-in-base64-out format preserves compatibility with AWS CLI V1 behavior and binary values must be passed literally. When providing contents from a file that map to a binary blob fileb://
will always be treated as binary and use the file contents directly regardless of the cli-binary-format
setting. When using file://
the file contents will need to properly formatted for the configured cli-binary-format
.
--no-cli-pager
(boolean)
Disable cli pager for output.
--cli-auto-prompt
(boolean)
Automatically prompt for CLI input parameters.
--no-cli-auto-prompt
(boolean)
Disable automatically prompt for CLI input parameters.
Channel -> (string)
The channel of the contact.
Warning
OnlyCHAT
is supported. This API does not supportVOICE
. If you attempt to use it for the VOICE channel, anInvalidRequestException
error occurs.Possible values:
VOICE
CHAT
Status -> (string)
Status of real-time contact analysis.
Possible values:
IN_PROGRESS
FAILED
COMPLETED
Segments -> (list)
An analyzed transcript or category.
(tagged union structure)
An analyzed segment for a real-time analysis session.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:Transcript
,Categories
,Issues
,Event
,Attachments
,PostContactSummary
.Transcript -> (structure)
The analyzed transcript segment.
Id -> (string) [required]
The identifier of the transcript.
Constraints:
- min:
1
- max:
256
ParticipantId -> (string) [required]
The identifier of the participant.
Constraints:
- min:
1
- max:
256
ParticipantRole -> (string) [required]
The role of the participant. For example, is it a customer, agent, or system.
Possible values:
AGENT
CUSTOMER
SYSTEM
CUSTOM_BOT
SUPERVISOR
DisplayName -> (string)
The display name of the participant.
Constraints:
- min:
1
- max:
256
Content -> (string) [required]
The content of the transcript. Can be redacted.
Constraints:
- min:
1
- max:
16384
ContentType -> (string)
The type of content of the item. For example,
text/plain
.Constraints:
- min:
1
- max:
256
Time -> (tagged union structure) [required]
Field describing the time of the event. It can have different representations of time.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:AbsoluteTime
.AbsoluteTime -> (timestamp)
Time represented in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.Redaction -> (structure)
Object describing redaction that was applied to the transcript. If transcript has the field it means part of the transcript was redacted.
CharacterOffsets -> (list)
List of character intervals each describing a part of the text that was redacted. For
OutputType.Raw
, part of the original text that contains data that can be redacted. ForOutputType.Redacted
, part of the string with redaction tag.(structure)
Begin and end offsets for a part of text.
BeginOffsetChar -> (integer) [required]
The beginning of the character interval.
Constraints:
- min:
0
EndOffsetChar -> (integer) [required]
The end of the character interval.
Constraints:
- min:
0
Sentiment -> (string)
The sentiment detected for this piece of transcript.
Possible values:
POSITIVE
NEGATIVE
NEUTRAL
Categories -> (structure)
The matched category rules.
MatchedDetails -> (map) [required]
Map between the name of the matched rule and RealTimeContactAnalysisCategoryDetails.
Constraints:
- min:
0
- max:
150
key -> (string)
Constraints:
- min:
1
- max:
256
value -> (structure)
Provides information about the category rule that was matched.
PointsOfInterest -> (list) [required]
List of PointOfInterest - objects describing a single match of a rule.
Constraints:
- min:
0
- max:
5
(structure)
The section of the contact transcript segment that category rule was detected.
TranscriptItems -> (list)
List of the transcript items (segments) that are associated with a given point of interest.
Constraints:
- min:
0
- max:
10
(structure)
Transcript representation containing Id and list of character intervals that are associated with analysis data. For example, this object within a
RealTimeContactAnalysisPointOfInterest
inCategory.MatchedDetails
would have character interval describing part of the text that matched category.Id -> (string) [required]
Transcript identifier. Matches the identifier from one of the TranscriptSegments.
Constraints:
- min:
1
- max:
256
CharacterOffsets -> (structure)
List of character intervals within transcript content/text.
BeginOffsetChar -> (integer) [required]
The beginning of the character interval.
Constraints:
- min:
0
EndOffsetChar -> (integer) [required]
The end of the character interval.
Constraints:
- min:
0
Issues -> (structure)
Segment type containing a list of detected issues.
IssuesDetected -> (list) [required]
List of the issues detected.
(structure)
Potential issues that are detected based on an artificial intelligence analysis of each turn in the conversation.
TranscriptItems -> (list) [required]
List of the transcript items (segments) that are associated with a given issue.
(structure)
Transcript representation containing Id, Content and list of character intervals that are associated with analysis data. For example, this object within an issue detected would describe both content that contains identified issue and intervals where that content is taken from.
Content -> (string)
Part of the transcript content that contains identified issue. Can be redacted
Constraints:
- min:
1
- max:
16384
Id -> (string) [required]
Transcript identifier. Matches the identifier from one of the TranscriptSegments.
Constraints:
- min:
1
- max:
256
CharacterOffsets -> (structure)
Begin and end offsets for a part of text.
BeginOffsetChar -> (integer) [required]
The beginning of the character interval.
Constraints:
- min:
0
EndOffsetChar -> (integer) [required]
The end of the character interval.
Constraints:
- min:
0
Event -> (structure)
Segment type describing a contact event.
Id -> (string) [required]
The identifier of the contact event.
Constraints:
- min:
1
- max:
256
ParticipantId -> (string)
The identifier of the participant.
Constraints:
- min:
1
- max:
256
ParticipantRole -> (string)
The role of the participant. For example, is it a customer, agent, or system.
Possible values:
AGENT
CUSTOMER
SYSTEM
CUSTOM_BOT
SUPERVISOR
DisplayName -> (string)
The display name of the participant. Can be redacted.
Constraints:
- min:
1
- max:
256
EventType -> (string) [required]
Type of the event. For example,
application/vnd.amazonaws.connect.event.participant.left
.Constraints:
- min:
1
- max:
128
Time -> (tagged union structure) [required]
Field describing the time of the event. It can have different representations of time.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:AbsoluteTime
.AbsoluteTime -> (timestamp)
Time represented in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.Attachments -> (structure)
The analyzed attachments.
Id -> (string) [required]
The identifier of the segment.
Constraints:
- min:
1
- max:
256
ParticipantId -> (string) [required]
The identifier of the participant.
Constraints:
- min:
1
- max:
256
ParticipantRole -> (string) [required]
The role of the participant. For example, is it a customer, agent, or system.
Possible values:
AGENT
CUSTOMER
SYSTEM
CUSTOM_BOT
SUPERVISOR
DisplayName -> (string)
The display name of the participant. Can be redacted.
Constraints:
- min:
1
- max:
256
Attachments -> (list) [required]
List of objects describing an individual attachment.
Constraints:
- max:
10
(structure)
Object that describes attached file.
AttachmentName -> (string) [required]
A case-sensitive name of the attachment being uploaded. Can be redacted.
Constraints:
- min:
1
- max:
256
ContentType -> (string)
Describes the MIME file type of the attachment. For a list of supported file types, see Feature specifications in the Amazon Connect Administrator Guide .
Constraints:
- min:
1
- max:
255
AttachmentId -> (string) [required]
A unique identifier for the attachment.
Constraints:
- min:
1
- max:
256
Status -> (string)
Status of the attachment.
Possible values:
APPROVED
REJECTED
IN_PROGRESS
Time -> (tagged union structure) [required]
Field describing the time of the event. It can have different representations of time.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:AbsoluteTime
.AbsoluteTime -> (timestamp)
Time represented in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.PostContactSummary -> (structure)
Information about the post-contact summary.
Content -> (string)
The content of the summary.
Constraints:
- min:
1
- max:
1270
Status -> (string) [required]
Whether the summary was successfully COMPLETED or FAILED to be generated.
Possible values:
FAILED
COMPLETED
FailureCode -> (string)
If the summary failed to be generated, one of the following failure codes occurs:
QUOTA_EXCEEDED
: The number of concurrent analytics jobs reached your service quota.INSUFFICIENT_CONVERSATION_CONTENT
: The conversation needs to have at least one turn from both the participants in order to generate the summary.FAILED_SAFETY_GUIDELINES
: The generated summary cannot be provided because it failed to meet system safety guidelines.INVALID_ANALYSIS_CONFIGURATION
: This code occurs when, for example, you’re using a language that isn’t supported by generative AI-powered post-contact summaries.INTERNAL_ERROR
: Internal system error.Possible values:
QUOTA_EXCEEDED
INSUFFICIENT_CONVERSATION_CONTENT
FAILED_SAFETY_GUIDELINES
INVALID_ANALYSIS_CONFIGURATION
INTERNAL_ERROR
NextToken -> (string)
If there are additional results, this is the token for the next set of results.
Constraints:
- min:
1
- max:
100000