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.*;

public class dtos
{

    public static class LiveAnswerCallback
    {
        public String sessionId = null;
        public String flowId = null;
        public String nodeId = null;
        public String clientId = null;
        public String conversationId = null;
        public Integer aiMinutes = null;
        public String from = null;
        public String to = null;
        public ArrayList<LiveAnswerCallbackTranscriptMessage> transcript = null;
        public Date startDate = null;
        public Date endDate = null;
        public ArrayList<LiveAnswerCallbackAttachment> attachments = null;
        
        public String getSessionId() { return sessionId; }
        public LiveAnswerCallback setSessionId(String value) { this.sessionId = value; return this; }
        public String getFlowId() { return flowId; }
        public LiveAnswerCallback setFlowId(String value) { this.flowId = value; return this; }
        public String getNodeId() { return nodeId; }
        public LiveAnswerCallback setNodeId(String value) { this.nodeId = value; return this; }
        public String getClientId() { return clientId; }
        public LiveAnswerCallback setClientId(String value) { this.clientId = value; return this; }
        public String getConversationId() { return conversationId; }
        public LiveAnswerCallback setConversationId(String value) { this.conversationId = value; return this; }
        public Integer getAiMinutes() { return aiMinutes; }
        public LiveAnswerCallback setAiMinutes(Integer value) { this.aiMinutes = value; return this; }
        public String getFrom() { return from; }
        public LiveAnswerCallback setFrom(String value) { this.from = value; return this; }
        public String getTo() { return to; }
        public LiveAnswerCallback setTo(String value) { this.to = value; return this; }
        public ArrayList<LiveAnswerCallbackTranscriptMessage> getTranscript() { return transcript; }
        public LiveAnswerCallback setTranscript(ArrayList<LiveAnswerCallbackTranscriptMessage> value) { this.transcript = value; return this; }
        public Date getStartDate() { return startDate; }
        public LiveAnswerCallback setStartDate(Date value) { this.startDate = value; return this; }
        public Date getEndDate() { return endDate; }
        public LiveAnswerCallback setEndDate(Date value) { this.endDate = value; return this; }
        public ArrayList<LiveAnswerCallbackAttachment> getAttachments() { return attachments; }
        public LiveAnswerCallback setAttachments(ArrayList<LiveAnswerCallbackAttachment> value) { this.attachments = value; return this; }
    }

    public static class LiveAnswerCallbackTranscriptMessage
    {
        public Date date = null;
        public String role = null;
        public String senderName = null;
        public String targetName = null;
        public String functionName = null;
        public String functionArgs = null;
        public String content = null;
        
        public Date getDate() { return date; }
        public LiveAnswerCallbackTranscriptMessage setDate(Date value) { this.date = value; return this; }
        public String getRole() { return role; }
        public LiveAnswerCallbackTranscriptMessage setRole(String value) { this.role = value; return this; }
        public String getSenderName() { return senderName; }
        public LiveAnswerCallbackTranscriptMessage setSenderName(String value) { this.senderName = value; return this; }
        public String getTargetName() { return targetName; }
        public LiveAnswerCallbackTranscriptMessage setTargetName(String value) { this.targetName = value; return this; }
        public String getFunctionName() { return functionName; }
        public LiveAnswerCallbackTranscriptMessage setFunctionName(String value) { this.functionName = value; return this; }
        public String getFunctionArgs() { return functionArgs; }
        public LiveAnswerCallbackTranscriptMessage setFunctionArgs(String value) { this.functionArgs = value; return this; }
        public String getContent() { return content; }
        public LiveAnswerCallbackTranscriptMessage setContent(String value) { this.content = value; return this; }
    }

    public static class LiveAnswerCallbackAttachment
    {
        public String fileName = null;
        public String contentType = null;
        public String uri = null;
        public String data = null;
        
        public String getFileName() { return fileName; }
        public LiveAnswerCallbackAttachment setFileName(String value) { this.fileName = value; return this; }
        public String getContentType() { return contentType; }
        public LiveAnswerCallbackAttachment setContentType(String value) { this.contentType = value; return this; }
        public String getUri() { return uri; }
        public LiveAnswerCallbackAttachment setUri(String value) { this.uri = value; return this; }
        public String getData() { return data; }
        public LiveAnswerCallbackAttachment setData(String value) { this.data = value; return this; }
    }

}

Java LiveAnswerCallback DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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: application/json
Content-Type: application/json
Content-Length: length

{"sessionId":"String","flowId":"String","nodeId":"String","clientId":"String","conversationId":"String","aiMinutes":0,"from":"String","to":"String","transcript":[{"date":"\/Date(-62135596800000-0000)\/","role":"String","senderName":"String","targetName":"String","functionName":"String","functionArgs":"String","content":"String"}],"startDate":"\/Date(-62135596800000-0000)\/","endDate":"\/Date(-62135596800000-0000)\/","attachments":[{"fileName":"String","contentType":"String","uri":"String","data":"String"}]}