Wait for visitor messages
chat_waitListen 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. Free.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | next_after from the last call. | |
| timeout_seconds | No |