Send message to visitor
chaport_send_operator_messageSENDS A REAL MESSAGE to a website visitor in their Chaport chat as the given operator (it appears in the visitor's chat widget and may reach them on a connected channel). A new chat is started if the visitor has no recent one. Not undoable from here. Confirm the text and recipient with the user first, then pass confirm: true. Pass external_id to make a retry safe: the same external_id for the same visitor's latest chat is treated as a duplicate. POST /messages.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Message text. | |
| confirm | Yes | Must be true: the user approved sending this exact text to this visitor. | |
| visitor_id | Yes | Chaport visitor id (from chaport_list_visitors). | |
| external_id | No | Your own unique id for this message (idempotency key). | |
| operator_id | Yes | Operator id the message is sent as (from chaport_list_operators). |