Create a new conversation by replying to a ticket thread. This actually sends out an email (for email tickets), triggers sending of a letter (for letter tickets) or a message (for chat tickets). Can also create drafts that require supervisor approval before sending.
curl --request POST \
--url https://demo.enneo.ai/api/mind/ticket/{ticketId}/conversation/reply \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"content": {
"message": "<string>"
},
"type": "text",
"direction": "out",
"private": true,
"isDraft": false,
"subject": "<string>",
"to": [
"<string>"
],
"cc": [
"<string>"
],
"bcc": [
"<string>"
],
"intentIds": [
123
],
"attachments": [
{}
],
"channelId": "<string>",
"subchannelId": 123
}
'{
"success": true,
"id": 123,
"conversation": {
"id": 123,
"ticketId": 123,
"type": "html",
"direction": "out",
"private": false,
"isDraft": false,
"fromEmail": "[email protected]",
"fromEmailName": "Enneo Admin",
"agentId": 1,
"sender": {
"id": 1,
"name": "Enneo Admin",
"email": "[email protected]"
},
"toEmail": [
"[email protected]"
],
"ccEmails": [
"[email protected]"
],
"body": "<div>Thank you for your message, we can inform you that...</div>",
"bodyPlain": "Thank you for your message, we can inform you that...",
"bodyClean": "Thank you for your message, we can inform you that...",
"content": {
"message": "Thank you for your message, we can inform you that..."
},
"intentIds": [
"ai_agent_meter_reading"
],
"cortexRequestId": 123,
"attachments": [
{
"id": "103013960646,",
"url": "https://storage.googleapis.com/enneo-attachments-public/a1/103013960646-4b1aa775/IMG_20230301_192712.jpg",
"name": "IMG_20230301_192712.jpg",
"size": 2292952,
"width": 3120,
"height": 4160,
"inline": false,
"fileEnding": "jpg",
"contentType": "image/jpeg",
"originalUrl": "https://storage.example.com/attachments/IMG_20230301_192712.jpg",
"extractedData": null,
"extractionStatus": "success",
"extractionData": {
"confidence": 0.815,
"meterValue": 87870.5
}
}
],
"crmNotificationId": 123,
"createdAt": 1657056276,
"modifiedAt": 1672756198,
"deletedAt": 1672756198
},
"surveyCode": "<string>",
"webhookResponse": "<string>"
}JWT-based authentication
The ID of the ticket to reply to
Whether to include the reply in time tracking, and thus worklog. Useful when a spam ticket should be closed, but it should not show up in the average handling time statistics, e.g. for spam emails
The type of content
text, html The direction of the conversation
in, out, internal Whether this is a private note
Whether this is a draft message that requires supervisor approval before sending
Optional subject for the reply
Recipients email addresses
CC email addresses
BCC email addresses
Array of intent IDs
File attachments
Channel ID for chat tickets
Subchannel ID
Successful operation
The ID of the created conversation
A conversation is an interaction to a ticket. Typically a reply or internal note to an email, or a chat message for a chat
Anzeigen untergeordnete attribute
ID of conversation
123
123
Type of message
"html"
"out"
If true, then this conversation is a private/internal note of an agent
false
If true, then this conversation is a draft that requires supervisor approval before sending
false
"Enneo Admin"
1
Sender of the message
Anzeigen untergeordnete attribute
1
"Enneo Admin"
Only for email channel
Only for email channel
Deprecated, use content.message instead
"<div>Thank you for your message, we can inform you that...</div>"
Deprecated, use content.message instead
"Thank you for your message, we can inform you that..."
Deprecated, use content.message instead
"Thank you for your message, we can inform you that..."
IDs of intents that were detected in the message
ID of the request to cortex
123
Anzeigen untergeordnete attribute
id of attachment
103013960646
"https://client.enneo.ai/attachments/reading_w23po_107647890574i49994_(1).pdf"
"reading_w23po_107647890574i49994_(1).pdf"
size of attachment in bytes.
721592
width of image attachment in pixels. Can be ommitted for non-image attachments.
3120
height of image attachment in pixels. Can be ommitted for non-image attachments.
4160
true if attachment is an inline image
false
file ending of attachment
"pdf"
content type of attachment
"application/pdf"
url of original attachment, most likely contains invalid temporary access token
"https://storage.example.com/attachments/reading_w23po_107647890574i49994_(1).pdf"
data extracted from the attachment, e.g. a PDF text or a meter reading
Status of the current extraction. Valid options: "notStarted", "inProgress", "success", "error"
"notStarted"
Data extracted from the attachment by meterReadingMicroservice
{ "confidence": 1, "meterValue": 1234 }ID of the notification in the CRM system
123
1657056276
1672756198
1672756198
Survey code if user survey is needed
Response from webhook execution
curl --request POST \
--url https://demo.enneo.ai/api/mind/ticket/{ticketId}/conversation/reply \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"content": {
"message": "<string>"
},
"type": "text",
"direction": "out",
"private": true,
"isDraft": false,
"subject": "<string>",
"to": [
"<string>"
],
"cc": [
"<string>"
],
"bcc": [
"<string>"
],
"intentIds": [
123
],
"attachments": [
{}
],
"channelId": "<string>",
"subchannelId": 123
}
'{
"success": true,
"id": 123,
"conversation": {
"id": 123,
"ticketId": 123,
"type": "html",
"direction": "out",
"private": false,
"isDraft": false,
"fromEmail": "[email protected]",
"fromEmailName": "Enneo Admin",
"agentId": 1,
"sender": {
"id": 1,
"name": "Enneo Admin",
"email": "[email protected]"
},
"toEmail": [
"[email protected]"
],
"ccEmails": [
"[email protected]"
],
"body": "<div>Thank you for your message, we can inform you that...</div>",
"bodyPlain": "Thank you for your message, we can inform you that...",
"bodyClean": "Thank you for your message, we can inform you that...",
"content": {
"message": "Thank you for your message, we can inform you that..."
},
"intentIds": [
"ai_agent_meter_reading"
],
"cortexRequestId": 123,
"attachments": [
{
"id": "103013960646,",
"url": "https://storage.googleapis.com/enneo-attachments-public/a1/103013960646-4b1aa775/IMG_20230301_192712.jpg",
"name": "IMG_20230301_192712.jpg",
"size": 2292952,
"width": 3120,
"height": 4160,
"inline": false,
"fileEnding": "jpg",
"contentType": "image/jpeg",
"originalUrl": "https://storage.example.com/attachments/IMG_20230301_192712.jpg",
"extractedData": null,
"extractionStatus": "success",
"extractionData": {
"confidence": 0.815,
"meterValue": 87870.5
}
}
],
"crmNotificationId": 123,
"createdAt": 1657056276,
"modifiedAt": 1672756198,
"deletedAt": 1672756198
},
"surveyCode": "<string>",
"webhookResponse": "<string>"
}