Skip to content

response.completed

An event that is emitted when a response is completed



type string

The type of the event. Always response.completed


id string

The id of the response


response InconvoResponse

The completed response object


type InconvoResponse = {
id: string;
conversationId: string;
message: string;
type: "text" | "chart" | "table";
chart?: {
type: "line" | "bar";
data: {
label: string;
value: number;
}[];
title: string;
xLabel: string;
yLabel: string;
};
table?: {
head: string[];
body: string[][];
};
};
OBJECT response.completed
{
"type": "response.completed",
"id": "7555d396-8e82-42d3-8338-560439670ab9",
"response": {
"id": "7555d396-8e82-42d3-8338-560439670ab9",
"conversationId": "convo_abc123",
"type": "text",
"message": "Your most popular product is the iPhone 15, with a total of 24,840 orders."
}
}