Skip to content

Create a response

Creates a response in a conversation. Provide a message string, and Inconvo will return the response in text, chart, or table format.

POST https://app.inconvo.ai/api/v1/conversations/{conversation_id}/response


message string Required

The message to send to the conversation.


type InconvoResponse = {
id: string;
conversationId: string;
message: string;
type: "text" | "chart" | "table";
chart?: {
type: "line" | "bar";
data: {
label: string;
value: number;
}[];
};
table?: {
head: string[];
body: string[][];
};
};
Request
curl -X POST "https://app.inconvo.ai/api/v1/conversations/convo_abc123/response" \
-H "Authorization: Bearer $INCONVO_API_KEY" \
-H "Content-Type: application/json" \
-d $'{
"message": "What is our most popular product?",
}'
Response
{
"id": "57ad0f60-617d-4d4c-a2ed-63e3bf0413ff",
"conversationId": "convo_abc123",
"type": "text",
"message": "Your most popular product is the iPhone 15, with a total of 24,840 orders.",
}