Evo Voice

<back to all web services

LiveAnswerChatCallback

The following routes are available for this service:
All Verbs/nodes/live-answer/chat-callback


export class NodeParameterMap
{
    [key:string] : NodeParameter;

    public constructor(init?: Partial<NodeParameterMap>) { (Object as any).assign(this, init); }
}


export class LiveAnswerCallbackTranscriptMessage
{
    public date: string;
    public role: string;
    public senderName: string;
    public targetName: string;
    public functionName: string;
    public functionArgs: string;
    public content: string;

    public constructor(init?: Partial<LiveAnswerCallbackTranscriptMessage>) { (Object as any).assign(this, init); }
}

export class LiveAnswerCallbackAttachment
{
    public fileName: string;
    public contentType: string;
    public uri: string;
    public data: string;

    public constructor(init?: Partial<LiveAnswerCallbackAttachment>) { (Object as any).assign(this, init); }
}

export class LiveAnswerChatCallback
{
    public sessionId: string;
    public flowId: string;
    public nodeId: string;
    public clientId: string;
    public conversationId: string;
    public aiMinutes: number;
    public from: string;
    public to: string;
    public transcript: LiveAnswerCallbackTranscriptMessage[];
    public startDate: string;
    public endDate: string;
    public attachments: LiveAnswerCallbackAttachment[];

    public constructor(init?: Partial<LiveAnswerChatCallback>) { (Object as any).assign(this, init); }
}

TypeScript LiveAnswerChatCallback 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/chat-callback HTTP/1.1 
Host: 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
		}
	]
}