Message: Send voice note
message_send_voice_noteSend an audio attachment as a native/playable voice note where the connected provider supports it (notably WhatsApp/Telegram). Resolve chat_id first. Provide base64 content + exact MIME type/filename. Do not send the same voice note repeatedly after an uncertain timeout; read chat state first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Optional caption/text only when supported/requested. | |
| chat_id | Yes | Exact chat.id resolved/listed for the destination conversation; never pass a person name/user_id here. | |
| filename | Yes | ||
| account_id | No | Optional Nilyo connection ID (unipile_account_id from list_connected_accounts). Omit when the user has one account for this provider. When several exist, Nilyo never guesses: list them (display name, identifier, provider user ID), choose the one the user named or ask, and pass its ID here. | |
| content_type | Yes | Audio MIME type. WhatsApp voice notes expect Opus in OGG: audio/ogg (codecs=opus); MP3 is sent as a regular audio file. | |
| content_base64 | Yes | Base64-encoded audio bytes, not a URL/path. | |
| duration_seconds | No | Duration of the audio in seconds when known (shown by the provider on the voice note). |