All Verbs | /nodes/live-answer/callback |
---|
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Voice.Api.Nodes.AI
Namespace Global
Namespace Voice.Api.Nodes.AI
Public Partial Class LiveAnswerCallback
Public Overridable Property SessionId As String
Public Overridable Property FlowId As String
Public Overridable Property NodeId As String
Public Overridable Property ClientId As String
Public Overridable Property ConversationId As String
Public Overridable Property AIMinutes As Integer
Public Overridable Property From As String
Public Overridable Property [To] As String
Public Overridable Property Transcript As List(Of LiveAnswerCallbackTranscriptMessage)
Public Overridable Property StartDate As Date
Public Overridable Property EndDate As Date
Public Overridable Property Attachments As List(Of LiveAnswerCallbackAttachment)
End Class
Public Partial Class LiveAnswerCallbackAttachment
Public Overridable Property FileName As String
Public Overridable Property ContentType As String
Public Overridable Property Uri As String
Public Overridable Property Data As String
End Class
Public Partial Class LiveAnswerCallbackTranscriptMessage
Public Overridable Property [Date] As Date
Public Overridable Property Role As String
Public Overridable Property SenderName As String
Public Overridable Property TargetName As String
Public Overridable Property FunctionName As String
Public Overridable Property FunctionArgs As String
Public Overridable Property Content As String
End Class
End Namespace
End Namespace
VB.NET LiveAnswerCallback DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /nodes/live-answer/callback HTTP/1.1
Host: team.evovoice.io
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
sessionId: String,
flowId: String,
nodeId: String,
clientId: String,
conversationId: String,
aiMinutes: 0,
from: String,
to: String,
transcript:
[
{
date: 0001-01-01,
role: String,
senderName: String,
targetName: String,
functionName: String,
functionArgs: String,
content: String
}
],
startDate: 0001-01-01,
endDate: 0001-01-01,
attachments:
[
{
fileName: String,
contentType: String,
uri: String,
data: String
}
]
}