Parses the JSON response from the Parse Conversation Inquiries prompt template
from a contact center conversation transcript into a conversation summary, a resolution
status, extracted inquiries, and an inquiry count.
This action is available in API version 68.0 and later.
Supported REST HTTP Methods
- URI
- /services/data/vXX.X/actions/standard/parseConversationResponse
- Formats
- JSON, XML
- HTTP Methods
- POST
- Authentication
- Authorization: Bearer token
Inputs
| Input | Details |
|---|---|
| promptResponse |
|
Outputs
| Output | Details |
|---|---|
| conversationSummary |
|
| inquiryCount |
|
| isConversationResolved |
|
| parsedInquiries |
|
Example
Sample Request
{
"inputs": [
{
"promptResponse": "{"conversationSummary": "Customer called about a billing question and a schedule change request.", "resolved": false, "inquiries": [{"subject": "Billing Question", "description": "Customer disputed a charge on their last invoice.", "resolved": true}, {"subject": "Schedule Change", "description": "Customer requested to reschedule an upcoming appointment.", "resolved": false}]}"
}
]
}
Sample Response
[
{
"conversationSummary": "Customer called about a billing question and a schedule change request.",
"isConversationResolved": false,
"parsedInquiries": [
{
"subject": "Billing Question",
"description": "Customer disputed a charge on their last invoice.",
"resolved": true
},
{
"subject": "Schedule Change",
"description": "Customer requested to reschedule an upcoming appointment.",
"resolved": false
}
],
"inquiryCount": 2
}
]