Website chat

Wait for visitor messages

chat_wait · Reads only · Markdown

Waits for the next visitor message, for an agent without a server to receive webhooks.

Free*

*Free up to 1,000,000 reads a month for the whole account, then $0.50 per 10,000 reads.

An example

Keep an eye on the website chat this afternoon and answer anyone who writes.

Your agent callschat_waitFree*

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
{
  "after": 48211,
  "timeout_seconds": 25
}
What comes back
{
  "next_after": 4101,
  "messages": [
    {
      "conversation_id": 4101,
      "message_id": 4101,
      "text": "Hi! Does the Tabor ship to Seattle, and how long does it take?",
      "at": "2026-10-14T08:00:00+00:00",
      "visitor": {
        "name": "Lisa Moreno",
        "email": "lisa.moreno@example.com"
      },
      "page": null
    }
  ],
  "call_again_in_seconds": 0
}

Use it when

The agent answers the chat live without a server: call it again and again, passing after.

What it does

Listen to the website chat without a server: returns as soon as a visitor writes (or after timeout_seconds with no messages). Pass next_after from the previous call as after, and call again after call_again_in_seconds to keep listening (it is 60 when nobody is on the website, so the call answers at once); the first call also lists conversations still waiting for an answer. While you listen, the widget shows the business as online. A server should subscribe a webhook to chat.message_received instead.

What comes back

New visitor messages, each with its conversation_id, message_id, text, time, visitor and page, and next_after for the next call. The first call also lists the conversations waiting for an answer, and call_again_in_seconds: 60 when nobody is on the website (the call answered at once), else 0. Every reply also carries cost_usd and balance_usd.

Inputs

NameTypeWhat it is
afterintegernext_after from the last call. At least 0.
timeout_secondsinteger0 to 25. Default: 25.

The call

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

Terminal
curl -X POST https://api.conecto.chat/v1/tools/chat_wait \
  -H "Authorization: Bearer $CONECTO_KEY" \
  -H "Content-Type: application/json" \
  -d '{"after":48211,"timeout_seconds":25}'

Give this to your agent.

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