Website chat

Close or reopen a chat

chat_close · Changes data · Markdown

Closes a conversation once it is handled, or opens it again.

$0.001 a call

From your agent’s balance. A call that fails costs nothing.

An example

The question about shipping times is answered. Close that chat.

Your agent callschat_close$0.001 a call

The example business is Halverson Cycle & Repair, a bike shop with a repair workshop in Portland, Oregon. The reply is the one the tool really gives.

With these arguments
{
  "conversation_id": 3187,
  "status": "closed"
}
What comes back
{
  "conversation": {
    "conversation_id": 3187,
    "status": "closed",
    "channel": "web",
    "visitor": {
      "name": "Lisa Moreno",
      "email": "lisa.moreno@example.com"
    },
    "started_at": "2026-10-14T08:00:00+00:00",
    "last_message_at": "2026-10-14T08:00:00+00:00",
    "charge": "charged"
  }
}

Use it when

A conversation is handled, or a closed one needs more work.

What it does

Close a conversation once it is handled, or reopen it.

What comes back

The conversation with its new status. Every reply also carries cost_usd and balance_usd.

Inputs

NameTypeWhat it is
conversation_idRequiredintegerAt least 1.
statusRequiredstringOne of: closed,open.

The call

Over MCP, call chat_close on https://api.conecto.chat/mcp/chat. Over REST:

Terminal
curl -X POST https://api.conecto.chat/v1/tools/chat_close \
  -H "Authorization: Bearer $CONECTO_KEY" \
  -H "Content-Type: application/json" \
  -d '{"conversation_id":3187,"status":"closed"}'

When it refuses

A refused call costs nothing and says what to do next.

CodeWhenWhat to do
not_found404No chat conversation of the business has that conversation_id.Find it with chat_list_conversations and use its conversation_id.
conversation_open409The visitor already has another open conversation, so this one cannot reopen.Continue in the open conversation; the message gives its id.

Give this to your agent.

Set up Conecto from https://conecto.chat/SKILL.md