Listen and Handle GenerativeAgent Events
Setup the UniMRCP ASAPP Plugin
Manage the Transcripts and send them to GenerativeAgent
Field | Description | Default | Supported Values | |
---|---|---|---|---|
sender | role (required) | A participant role, usually the customer or an agent for human participants. | n/a | ”agent”, “customer” |
externalId (required) | Participant ID from the external system, it should be the same for all interactions of the same individual | n/a | ”BL2341334” | |
language | IETF language tag | en-US | ”en-US” | |
smartFormatting | Request for post processing: Inverse Text Normalization (convert spoken form to written form), e.g., ‘twenty two —> 22’. Auto punctuation and capitalization | true | true, false Recomended: true Interpreting transcripts will be more natural and predictable | |
detailedToken | Has no impact on UniMRCP | false | true, false Recommended: false IVR application does not utilize the word level details | |
audioRecordingAllowed | false: ASAPP will not record the audio true: ASAPP may record and store the audio for this conversation | false | true, false Recommended: true Allowing audio recording improves transcript accuracy over time | |
redactionOutput | If detailedToken is true along with value ‘redacted’ or ‘redacted_and_unredacted’, request will be rejected. If no redaction rules configured by the client for ‘redacted’ or ‘redacted_and_unredacted’, the request will be rejected. If smartFormatting is False, requests with value ‘redacted’ or ‘redacted_and_unredacted’ will be rejected. | redacted Recommended: unredacted | ”redacted”, “unredacted”,“redacted_and_unredacted” Recommended: unredacted IVR application works better with full information available |
Field | Description | Format | Example Syntax | |
---|---|---|---|---|
utterance | text | The written text of the utterance. While an utterance can have multiple alternatives (e.g., ‘me two’ vs. ‘me too’) ASAPP provides only the most probable alternative only, based on model prediction confidence. | array | ”Hi, my ID is 123.” |
detailedToken
in startStream
request is set to true, additional fields are provided within the utterance
array for each token
:
Field | Subfield | Description | Format | Example Syntax |
---|---|---|---|---|
token | content | Text or punctuation | string | ”is”, ”?“ |
start | Start time (millisecond) of the token relative to the start of the audio input | integer | 170 | |
end | End time (millisecond) audio boundary of the token relative to the start of the audio input, there may be silence after that, so it does not necessarily match with the startMs of the next token. | integer | 200 | |
punctuationAfter | Optional, punctuation attached after the content | string | ’.‘ | |
punctuationBefore | Optional, punctuation attached in front of the content | string | ’“‘ |
conversation
represents a thread of messages between an end user and one or more agents. GenerativeAgent evaluates and responds in a given conversation.
Create a conversation
providing your Ids for the conversation and customer:
taskName
and inputVariables
attributes.
You can also simulate Input Variables in the Previewer
/analyze
: