Konvo AI

Konvo API reference

Every tool is POST https://api.k2.konvoai.com/v1/<tool> with its arguments as a JSON object and Authorization: Bearer konvo_sk_…. The answer is the tool's result as JSON. See Getting started for keys, errors and limits. Machine-readable: GET /v1/openapi.json.

ToolAccess
add_internal_noteWrite
answer_agent_questionWrite
assign_conversationWrite
create_ai_agentWrite
create_conversationWrite
delete_ai_agentWrite
find_conversationRead
get_agent_replyRead
get_ai_agentRead
get_conversationRead
list_ai_agentsRead
list_analytics_conversationsRead
list_analytics_metricsRead
list_channelsRead
list_conversationsRead
list_csat_responsesRead
list_membersRead
list_organizationsRead
message_ai_agentWrite
pin_conversationWrite
publish_ai_agentWrite
query_analyticsRead
rename_ai_agentWrite
respond_to_conversationWrite
set_agent_channelsWrite
set_conversation_propertyWrite
set_conversation_statusWrite
snooze_conversationWrite
tag_conversationWrite
unpublish_ai_agentWrite

add_internal_note

Add internal note · write: needs a read-and-write key

Leave an internal note on a conversation: seen by the team, never sent to the customer. Pass an idempotencyKey so a retry after a timeout cannot leave it twice.

ArgumentTypeRequiredDescription
streamIdstringyesConversation id (stream id) from list_conversations or get_conversation
bodystringyesThe note's text
idempotencyKeystringnoOptional retry key: any unique string for this call (a UUID works). When a call times out or its response is lost, repeat it with the same idempotencyKey and identical arguments: the write happens once and the retry returns the same result.

answer_agent_question

Answer AI agent question · write: needs a read-and-write key

Answer the questions the AI agent's configurator left on its latest reply (reply.pendingQuestions from get_agent_reply). One answer per question, keyed by the question's header: selectedLabels for a select question, text for an open one, or later: true (with empty selectedLabels and text) to leave that question for later. The configurator never waits on its questions: its turn is over and each question is already open on the agent's Brain. Answering starts its next turn, which reads the answers; poll get_agent_reply for that reply (a reply with more questions than one card holds shows the next card's pendingQuestions first, and the turn starts once the last is answered). Omit answers to put the questions away: no turn starts (one running in this session is stopped), the questions stay open on the Brain, and this session does not ask them again.

ArgumentTypeRequiredDescription
sessionIdstringyesChat session id returned by message_ai_agent
messageIdstringyesAssistant message id carrying the pending questions (reply.messageId from get_agent_reply)
answersobjectnoAnswers keyed by question header. Omit entirely to put the questions away without starting a turn.

assign_conversation

Assign conversation · write: needs a read-and-write key

Assign a conversation to a teammate, or clear the assignment with null for both assigneeKind and assigneeId. Use list_members to find user ids. Conversations cannot be assigned to an AI agent by hand: AI agents pick them up only through the organization's routing rules.

ArgumentTypeRequiredDescription
streamIdstringyesConversation id (stream id) from list_conversations or get_conversation
assigneeKinduser | nullyes
assigneeIdstring | nullyes

create_ai_agent

Create AI agent · write: needs a read-and-write key

Create a new AI agent in the organization. It starts unpublished with no channels — configure it via message_ai_agent, assign channels with set_agent_channels, then publish_ai_agent to go live. Plan limits on agent count apply. Pass an idempotencyKey so a retry after a timeout cannot create a second agent.

ArgumentTypeRequiredDescription
namestringyesAgent display name
idempotencyKeystringnoOptional retry key: any unique string for this call (a UUID works). When a call times out or its response is lost, repeat it with the same idempotencyKey and identical arguments: the write happens once and the retry returns the same result.

create_conversation

Create conversation · write: needs a read-and-write key

Create a conversation as an email from a customer to one of the organization's mailboxes (the default one unless channelId names another email channel). It enters the inbox like any email, so the organization's rules run on it. externalId is your own id for it (an order number, a ticket id): unique in the organization, it finds the conversation later (get_conversation) and makes a retry safe — a call with an externalId already used creates nothing and answers with that conversation (created: false). The answer waits a few seconds for the email to be in; streamId is null while it isn't yet, so ask find_conversation with the externalId a moment later. Then tag it (tag_conversation), set its properties (set_conversation_property) or leave a note (add_internal_note).

ArgumentTypeRequiredDescription
externalIdstringyesYour own id for the conversation, unique in the organization
customerobjectyesWho the email is from
customer.emailstringyesThe customer the email is from
customer.namestringno
subjectstringyes
bodystringyesThe email as plain text; with html, the version for clients that don't show HTML
htmlstringno
channelIdstringnoThe email channel it arrives on; the organization's default mailbox when left out

delete_ai_agent

Delete AI agent · write: needs a read-and-write key

Permanently delete an AI agent, its configuration, and its assignment rules. Conversations it was handling are unassigned. This cannot be undone.

ArgumentTypeRequiredDescription
agentIdstringyesAI agent id from list_ai_agents or get_ai_agent

find_conversation

Find conversation by external id · read

Find the conversation a create_conversation call made, by the externalId it was given. Returns { externalId, streamId, pending }: pending is true while the email is still on its way into the inbox (streamId null). Then use the streamId with get_conversation and the write tools.

ArgumentTypeRequiredDescription
externalIdstringyesThe externalId create_conversation was called with

get_agent_reply

Get AI agent reply · read

Poll an AI agent chat session for the latest reply. status is in_progress while the agent is thinking or using tools (reply.content shows the partial text so far) and idle once the reply is terminal (reply.status complete or error). When reply.pendingQuestions is set, the reply ended with questions for the merchant: answer them with answer_agent_question. When reply.content asks whether to publish or to send a reply to a customer, answer yes with message_ai_agent in the same session.

ArgumentTypeRequiredDescription
sessionIdstringyesChat session id returned by message_ai_agent

get_ai_agent

Get AI agent · read

Fetch one AI agent's details: name, model overrides, live status, assigned channels and schedule, and any staged (unpublished) channel/schedule edit.

ArgumentTypeRequiredDescription
agentIdstringyesAI agent id from list_ai_agents or get_ai_agent

get_conversation

Get conversation · read

Fetch one conversation's metadata and full message timeline by stream id. Use this before replying so you have context. csat is the customer satisfaction survey: null when none was sent, otherwise answered with the rating (1-5) and comment, or answered false while it waits for an answer. contact is the customer as the inbox knows them: their name and the emails, phones and Instagram handles on file (verified ones marked), for finding them in another system. A customer's message names them in source.email when their address is known, and each stored file in payload.attachments has a url that works for an hour. No organization id is required.

ArgumentTypeRequiredDescription
streamIdstringyesConversation id (stream id) from list_conversations or get_conversation

list_ai_agents

List AI agents · read

List the organization's AI agents: id, name, whether setup is complete, whether the agent is live (answering on at least one channel), the channels it covers, its schedule, and whether a channel/schedule edit is staged but not yet published.

No arguments.

list_analytics_conversations

List the conversations behind an analytics figure · read

The conversations that make up a figure in the automatically scoped organization (for members who can see Analytics: owners, admins and managers), as clicking it in Analytics lists them: pass the same range and filters as query_analytics, plus metricId (a drillable metric — its conversations add up to its value), and/or segment (one row of a breakdown, e.g. {dimension: "topic", key: "returns"} or {dimension: "csat_rating", key: "1"}), outcome (a disposition) or funnelNode (a funnel step). Returns { conversations, nextCursor }: stream id, channel, created and closed dates, outcome, topics, response and resolution times, and the customer. Open one with get_conversation. Paginated — follow nextCursor until it is null.

ArgumentTypeRequiredDescription
fromstringyesStart: a day (2026-10-01, midnight in the organization's timezone) or an ISO 8601 instant with offset
tostringyesEnd: a day, included in full (2026-10-31 covers all of October 31), or an exact instant, excluded
filtersobjectnoThe Analytics screen's filters, values from list_analytics_metrics. Several values in one filter match any of them; several filters must all match. agent takes user ids plus ai (any AI agent) and human (any person)
filters.channelTypestring[]no
filters.topicstring[]no
filters.tagstring[]no
filters.agentstring[]no
filters.aiAgentstring[]no
filters.sentiment(positive | neutral | negative)[]no
filters.priority(low | normal | high | urgent)[]no
filters.languagestring[]no
metricIdstringnoA metric with drillable: true in list_analytics_metrics
segmentobjectnoOnly the conversations behind one row or segment of a breakdown
segment.dimensiontopic | tag | channel | agent | sentiment | priority | language | contact_form | resolution_kind | article | category | help_center | csat_rating | csat_closer | attribution_level | helped_by | origin | storeyes
segment.keystring | nullyesA key from a grouped result; null for its unclassified row. csat_rating keys are 1-5, csat_closer keys ai_agent or user
outcomeresolved | escalated | constrained | still_automated | human_handlednoOnly conversations with this outcome
funnelNodenew_conversations | ai_replied | ai_no_reply | straight_to_human | closed_by_ai | escalated | constrained | pending | closed_by_humannoOnly conversations counted in this funnel step
limitintegernoPage size, 1-100 (default 50)
cursorstringnoOpaque nextCursor from the previous page — omit for the first page

list_analytics_metrics

List analytics metrics · read

What can be asked of Konvo's Analytics for the automatically scoped organization (for members who can see Analytics: owners, admins and managers): every metric with its name, definition (as the Analytics screen explains it), unit, the shapes it can be read in (scalar, series, grouped, series_grouped, funnel) with the dimensions each breakdown accepts, which filters it applies, and whether its conversations can be listed (drillable). Also returns this organization's own filter values — channels, topics, tags, team members, AI agents — and its timezone. Call this before query_analytics so you ask with real metric ids and filter values instead of guessing.

No arguments.

list_channels

List channels · read

List the organization's channels (email inboxes, WhatsApp numbers, live chat widgets, …) with id, name and type. Use the ids with set_agent_channels to choose where an AI agent answers.

No arguments.

list_conversations

List conversations · read

List the conversations (support tickets) you can see in the automatically scoped organization — the same ones the web app shows you — newest first. Returns { conversations, nextCursor }: stream ids, subjects, status, assignee, and channel type per row. Paginated — when nextCursor is non-null, pass it as cursor to fetch the next page until it is null. Pass participant to find every conversation involving an email domain or address, or orderNumber to find the ones where the customer mentioned an order number, or createdFrom/createdTo for the ones created in a date range, instead of paging through all of them. Typical flow: list open conversations, then get_conversation for details.

ArgumentTypeRequiredDescription
statusopen | pending | on_hold | closed | resolvednoOptional filter — omit to list all statuses. pending = waiting for the customer, on_hold = waiting on someone else
participantstringnoOnly conversations where any message has this email domain (example.com) or full address (jane@example.com) in From, To or Cc. Case-insensitive; a domain matches exactly, not its subdomains.
orderNumberstringnoOnly conversations where the customer mentioned this order number in a message (#1234, 1234 and PW-1234 forms). Case-insensitive; a leading # is ignored. Matches the number as the customer wrote it, not the store's order name.
createdFromstringnoOnly conversations created on or after this day (2026-10-01, midnight in the organization's timezone) or instant (ISO 8601 with offset)
createdTostringnoOnly conversations created up to and including this day, or before this instant. With createdFrom, "this month's conversations" is one filtered list
limitintegernoPage size, 1-250 (default 100)
cursorstringnoOpaque nextCursor from the previous page — omit for the first page

list_csat_responses

List CSAT responses · read

The satisfaction survey answers received in a date range in the automatically scoped organization (for members who can see Analytics: owners, admins and managers), newest first — the individual responses behind the CSAT figures. Each one: rating (1-5, null when the customer only left a comment), comment, closedBy (whether the AI or a person closed the conversation, with their name), channel, sentAt, respondedAt, and the conversation's streamId (null if the conversation was deleted) to open with get_conversation. Narrow with minRating/maxRating (e.g. maxRating 2 for the negative ones; a bound leaves out comment-only answers) and closedBy. Returns { responses, nextCursor } — follow nextCursor until it is null.

ArgumentTypeRequiredDescription
fromstringyesStart: a day (2026-10-01, midnight in the organization's timezone) or an ISO 8601 instant with offset
tostringyesEnd: a day, included in full (2026-10-31 covers all of October 31), or an exact instant, excluded
minRatingintegernoLowest rating to include, 1-5
maxRatingintegernoHighest rating to include, 1-5
closedByai | humannoOnly surveys on conversations the AI (ai) or a person (human) closed
limitintegernoPage size, 1-250 (default 100)
cursorstringnoOpaque nextCursor from the previous page — omit for the first page

list_members

List organization members · read

List members of the automatically scoped organization. Useful when assigning a conversation to a teammate (assign_conversation).

No arguments.

list_organizations

List organizations · read

List the organization(s) available for this MCP session. The active organization is chosen automatically during authorization — you never need to ask the user for an organization id.

No arguments.

message_ai_agent

Message AI agent · write: needs a read-and-write key

Send a message to an AI agent's configurator chat — the same chat admins use in the web app to talk to the agent, teach it knowledge, and change its behavior (edits land on the agent's draft config; publish_ai_agent makes them live). It can also answer questions about the organization, its team and the app, read a web page, work out dates, times and figures, find, read and update the team's tickets as you see them, draft a reply to a customer, and create and run simulations of the draft (their transcripts are on the agent's Simulation page, not in the reply). Publishing and sending a reply to a customer are only ever previewed: the reply asks for confirmation, and only your next message in the same session, a plain yes and nothing else, carries it out. The reply is produced asynchronously: this returns ids immediately, then poll get_agent_reply until its status is no longer in_progress. A session runs one turn at a time: a message sent while the previous reply is in_progress is refused. Omit sessionId to start a new session; pass it back to continue one. Pass an idempotencyKey so a retry after a timeout cannot send the message twice.

ArgumentTypeRequiredDescription
agentIdstringyesAI agent id from list_ai_agents or get_ai_agent
messagestringyesPlain-text message for the agent
sessionIdstringnoExisting chat session to continue — omit to start a new one
idempotencyKeystringnoOptional retry key: any unique string for this call (a UUID works). When a call times out or its response is lost, repeat it with the same idempotencyKey and identical arguments: the write happens once and the retry returns the same result.

pin_conversation

Pin conversation · write: needs a read-and-write key

Pin or unpin a conversation in the inbox for quick access.

ArgumentTypeRequiredDescription
streamIdstringyesConversation id (stream id) from list_conversations or get_conversation
pinnedbooleanyes

publish_ai_agent

Publish AI agent · write: needs a read-and-write key

Publish the agent's whole draft — what message_ai_agent changed (knowledge, processes, settings, tool decisions), tool permissions and integrations switched on or off, and any staged channel/schedule edit — making it what customers get, the same as the Publish button in the web app. With channels assigned this puts the agent on the air on them, including an agent that was unpublished. Refused while the agent is still answering a message_ai_agent turn: poll get_agent_reply until it is idle first. Returns storeChanges: the files of the agent's knowledge and behavior that changed for customers (null when there was nothing to publish there).

ArgumentTypeRequiredDescription
agentIdstringyesAI agent id from list_ai_agents or get_ai_agent

query_analytics

Query analytics · read

Read up to 20 metrics for a date range from the automatically scoped organization (for members who can see Analytics: owners, admins and managers), computed by the same engine as Konvo's Analytics screen, so they match it for the same range and filters. Each metric can be read as one number (scalar), over time (series, by day/week/month), broken down by a dimension (grouped, e.g. by channel or topic), or both (series_grouped). comparePrevious adds the same figure for the equal-length period right before (previous on scalar results; previousRange says which dates). Each metric comes back with its unit (percent is 0-100, seconds are a duration, currency is euro cents, rating is 1-5) and, when a filter doesn't apply to it, ignoredFilters. Grouped keys are raw values: agent keys are user ids (or ai), topic and tag keys are the values list_analytics_metrics labels. A metric that can't be read as asked returns an error without failing the others.

ArgumentTypeRequiredDescription
fromstringyesStart: a day (2026-10-01, midnight in the organization's timezone) or an ISO 8601 instant with offset
tostringyesEnd: a day, included in full (2026-10-31 covers all of October 31), or an exact instant, excluded
metricsobject[]yes
metrics[].metricIdstringyesA metric id from list_analytics_metrics
metrics[].shapescalar | series | series_grouped | grouped | funnelnoDefaults to scalar, or to the metric's first shape
metrics[].granularityday | week | monthnoFor series and series_grouped; defaults to day
metrics[].groupBytopic | tag | channel | agent | sentiment | priority | language | contact_form | resolution_kind | article | category | help_center | csat_rating | csat_closer | attribution_level | helped_by | origin | storenoFor grouped and series_grouped; defaults to the metric's defaultGroupBy
filtersobjectnoThe Analytics screen's filters, values from list_analytics_metrics. Several values in one filter match any of them; several filters must all match. agent takes user ids plus ai (any AI agent) and human (any person)
filters.channelTypestring[]no
filters.topicstring[]no
filters.tagstring[]no
filters.agentstring[]no
filters.aiAgentstring[]no
filters.sentiment(positive | neutral | negative)[]no
filters.priority(low | normal | high | urgent)[]no
filters.languagestring[]no
comparePreviousbooleannoAlso return each scalar for the previous period of the same length

rename_ai_agent

Rename AI agent · write: needs a read-and-write key

Rename an AI agent.

ArgumentTypeRequiredDescription
agentIdstringyesAI agent id from list_ai_agents or get_ai_agent
namestringyesNew display name

respond_to_conversation

Respond to conversation · write: needs a read-and-write key

Send a reply to the customer on an existing conversation. The stream id and plain-text body are enough: the server handles email from/subject, reply-all recipients and threading for email and Gmail tickets. Add html for formatting, with images in place by URL or by cid: pointing at an attachment's contentId; it shows on email, Gmail and ticketing page conversations, and other channels send the body. Pass to and cc to choose who an email reply goes to: each list given replaces that list whole, and one left out stays as reply-all has it. A ticketing page reply always goes to its customer and takes only cc, whose people get an email copy without the customer's sign-in link. Pass an idempotencyKey so a retry after a timeout cannot send the reply twice.

ArgumentTypeRequiredDescription
streamIdstringyesConversation id (stream id) from list_conversations or get_conversation
bodystringyesPlain-text reply to send to the customer; with html, the version for clients that don't show HTML
htmlstringnoThe reply as HTML. Images go in place: <img src="https://..."> or <img src="cid:<contentId>"> for an attachment
tostring[]noEmail replies: everyone in To, replacing reply-all's
ccstring[]noEmail replies: everyone in Cc, replacing reply-all's (empty for nobody). Ticketing page replies: who gets an email copy
attachmentsobject[]noFiles to send with the reply
attachments[].filenamestringyes
attachments[].contentTypestringyesThe file's type, e.g. image/png or application/pdf
attachments[].base64stringyesThe file's content, base64-encoded (10 MB at most)
attachments[].contentIdstringnoShows the file in place where the html has <img src="cid:<contentId>">
idempotencyKeystringnoOptional retry key: any unique string for this call (a UUID works). When a call times out or its response is lost, repeat it with the same idempotencyKey and identical arguments: the write happens once and the retry returns the same result.

set_agent_channels

Set AI agent channels · write: needs a read-and-write key

Stage which channels an AI agent answers on, and optionally when it answers. Omit schedule to keep the agent's current schedule; pass null for always-on. This only stages the edit on the agent's draft — nothing changes for customers until publish_ai_agent. Pass an empty channelIds array to stage taking the agent off all channels. Returns the staged channels and schedule.

ArgumentTypeRequiredDescription
agentIdstringyesAI agent id from list_ai_agents or get_ai_agent
channelIdsstring[]yesChannel ids from list_channels
scheduleobject | nullnoWhen the agent answers: business_hours follows the org schedule, outside_business_hours is whenever it is closed, custom carries inline hours, null is always-on — omit to keep the current schedule

set_conversation_property

Set conversation property · write: needs a read-and-write key

Set one of the organization's conversation properties, by its name, key or id. A select takes one of its options by label or value (a multi-select gains it), a number property a number, a yes/no property true or false, a text property any text; null clears it. The error lists the properties, or the property's options, when a name doesn't match.

ArgumentTypeRequiredDescription
streamIdstringyesConversation id (stream id) from list_conversations or get_conversation
propertystringyesThe property's name, key or id
valuestring | number | boolean | nullyesThe value to set, or null to clear it

set_conversation_status

Set conversation status · write: needs a read-and-write key

Update a conversation's inbox status: open (active), closed (done, can reopen), or resolved (completed).

ArgumentTypeRequiredDescription
streamIdstringyesConversation id (stream id) from list_conversations or get_conversation
statusopen | closed | resolvedyes

snooze_conversation

Snooze conversation · write: needs a read-and-write key

Snooze a conversation until a Unix timestamp in milliseconds, or pass null to clear snooze and return it to the inbox.

ArgumentTypeRequiredDescription
streamIdstringyesConversation id (stream id) from list_conversations or get_conversation
snoozedUntilinteger | nullyesUnix ms timestamp, or null to clear snooze

tag_conversation

Tag conversation · write: needs a read-and-write key

Add and remove tags on a conversation, by tag name (whatever the case) or id. A name the organization has no tag for yet becomes a new tag, which needs a member allowed to edit tags; removing a tag the conversation doesn't have changes nothing. Answers with the tags added and removed.

ArgumentTypeRequiredDescription
streamIdstringyesConversation id (stream id) from list_conversations or get_conversation
addstring[]noTags to add
removestring[]noTags to remove

unpublish_ai_agent

Unpublish AI agent · write: needs a read-and-write key

Take an AI agent off the air immediately: it stops answering on all its channels. The channel set, schedule, and draft config stay untouched — publish_ai_agent puts it back live.

ArgumentTypeRequiredDescription
agentIdstringyesAI agent id from list_ai_agents or get_ai_agent

Was this article helpful?