send_message
Deliver a message to a registered agent or person by name, or broadcast to all, with optional reply linking. Returns delivery count, recipients, and stored message IDs.
Instructions
Send a message to one registered agent or person by name, or to every other registered agent and person with to: 'all'. A broadcast only reaches agents registered, and people added, when it is sent. With in_reply_to, each copy stored records the id of the message it answers, which read_inbox, read_conversation and search return as inReplyTo. Returns delivered (how many copies were stored), recipients (their names) and messages: the id and recipient (to) of each copy stored, one per recipient of a broadcast, which message_status takes. Requires register first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | An agent name, or 'all'. | |
| body | Yes | The message, at most 4000 characters. | |
| in_reply_to | No | The id of a direct message sent to you, as read_inbox, read_conversation or search returns it, that this one answers. Any other id fails, and nothing is sent. |