curl --request GET \
--url https://api.trata.ai/v1/prospects/{prospect_id}/conversations \
--header 'Authorization: Bearer <token>'[
{
"status": "<string>",
"id": "<string>",
"orgId": "<string>",
"prospectId": "<string>",
"source": "<string>",
"sourceType": "<string>",
"aiAgentId": "<string>",
"transcriptText": [
{
"speaker": "<string>",
"message": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"message_id": "<string>"
}
],
"transcriptSummary": "<string>",
"transcriptRecordingUrl": "<string>",
"timestampStart": "2023-11-07T05:31:56Z",
"timestampEnd": "2023-11-07T05:31:56Z",
"conversationAnalytics": {
"summary": "<string>",
"action_items": [
"<string>"
],
"is_audio_consent_given": true,
"email_address_of_caller": "<string>",
"name_of_caller": "<string>",
"phone_number_of_caller": "<string>",
"address_of_caller": "<string>",
"sentiment_of_caller": "positive",
"prospectStatus": "NEW"
},
"createdBy": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedBy": "<string>",
"updatedAt": "2023-11-07T05:31:56Z"
}
]List all conversations linked to a specific prospect
curl --request GET \
--url https://api.trata.ai/v1/prospects/{prospect_id}/conversations \
--header 'Authorization: Bearer <token>'[
{
"status": "<string>",
"id": "<string>",
"orgId": "<string>",
"prospectId": "<string>",
"source": "<string>",
"sourceType": "<string>",
"aiAgentId": "<string>",
"transcriptText": [
{
"speaker": "<string>",
"message": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"message_id": "<string>"
}
],
"transcriptSummary": "<string>",
"transcriptRecordingUrl": "<string>",
"timestampStart": "2023-11-07T05:31:56Z",
"timestampEnd": "2023-11-07T05:31:56Z",
"conversationAnalytics": {
"summary": "<string>",
"action_items": [
"<string>"
],
"is_audio_consent_given": true,
"email_address_of_caller": "<string>",
"name_of_caller": "<string>",
"phone_number_of_caller": "<string>",
"address_of_caller": "<string>",
"sentiment_of_caller": "positive",
"prospectStatus": "NEW"
},
"createdBy": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedBy": "<string>",
"updatedAt": "2023-11-07T05:31:56Z"
}
]Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
ID of the prospect
Successful Response
Analytics of the conversation
Show child attributes
Summary of the conversation happened with important details on the conversation. The summary should be concise and to the point. It should contain the important details of the conversation like name, phone number, email, address and any other details shared by the user.
List of action items and the next steps to be performed from the conversation details.
If the user has given consent to store the audio of the conversation. Unless the user explicitly says yes, this should be false.
Extracted email address of the caller from the conversation details. Email should be a valid email address format
Extracted name of the caller from the conversation details.
Extracted phone number of the caller from the conversation details.
Extracted address of the caller from the conversation details.
Sentiment of the caller based on the conversation details.
positive, negative, neutral Status of the prospect after this conversation.
NEW, GENERAL_ENQUIRY, SCHEDULED_CALLBACK_WITH_BOT, SCHEDULED_APPOINTMENT_WITH_PERSON, SCHEDULED_APPOINTMENT_FOR_SERVICE, NOT_INTERESTED, PRODUCT_ORDER_PLACED, SERVICE_ORDER_PLACED