Evo Voice

<back to all web services

LiveAnswerCallback

The following routes are available for this service:
All Verbs/nodes/live-answer/callback
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
import com.google.gson.annotations.*
import com.google.gson.reflect.*


open class LiveAnswerCallback
{
    open var sessionId:String? = null
    open var flowId:String? = null
    open var nodeId:String? = null
    open var clientId:String? = null
    open var conversationId:String? = null
    open var aiMinutes:Int? = null
    open var from:String? = null
    open var to:String? = null
    open var transcript:ArrayList<LiveAnswerCallbackTranscriptMessage>? = null
    open var startDate:Date? = null
    open var endDate:Date? = null
    open var attachments:ArrayList<LiveAnswerCallbackAttachment>? = null
}

open class LiveAnswerCallbackTranscriptMessage
{
    open var date:Date? = null
    open var role:String? = null
    open var senderName:String? = null
    open var targetName:String? = null
    open var functionName:String? = null
    open var functionArgs:String? = null
    open var content:String? = null
}

open class LiveAnswerCallbackAttachment
{
    open var fileName:String? = null
    open var contentType:String? = null
    open var uri:String? = null
    @SerializedName("data") open var Data:String? = null
}

Kotlin LiveAnswerCallback DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + 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
		}
	]
}