Send a direct message
send_dmSend a direct message as a connected profile on Instagram, Bluesky, Telegram or WhatsApp, with a preview step so nothing goes out before the user approves.
Instructions
Send a DM as a connected Upload-Post profile, on Instagram or Bluesky. Instagram: recipient_id (from Instagram comments or the DM conversation tools) and message, optionally up to 3 link buttons. Bluesky: recipient_id is the person's handle (e.g. 'alice.bsky.social'), DID or profile link, or pass conversation_id (also for group chats) instead. The text may carry links, @mentions (up to 10) and #hashtags, which become clickable; at most 1000 characters. Optional reply_to (a message id) and one shared Bluesky post in attachments; Bluesky chat takes no images, files or buttons. With sender_action (Bluesky only) nothing is written: mark_seen/mark_read, react/unreact (message_id + one emoji in reaction), delete (message_id; removes it only for this account), accept (a message request), mute, unmute, leave. Sender actions do not count toward the daily DM allowance. Bluesky DMs need the account connected with an app password created with 'Allow access to your direct messages'; otherwise the call returns 403 bluesky_dm_scope_missing and the user has to create such an app password and reconnect Bluesky. Other Bluesky errors: 403 bluesky_recipient_unavailable (the person does not accept DMs from this account, with reason), 404 bluesky_recipient_not_found, 400 bluesky_message_too_long, 504 bluesky_send_unconfirmed (the DM may have gone out: list the conversation before retrying). Telegram (the profile's own bot): recipient_id is the person's numeric chat id (sender.id of a dm_received event); only private chats (groups and channels: 403 telegram_private_chats_only, publish there with the upload tools); text up to 4096 characters. 403 telegram_recipient_not_started (the person never started the bot) or telegram_recipient_blocked; 504 telegram_send_unconfirmed means it may have been sent: list the conversation before retrying. WhatsApp (platform: "whatsapp", available to every account): the profile's own WhatsApp Business number, connected from the connection page (get_connect_link with platforms ['whatsapp']); WhatsApp is a messaging channel only, posts are never published to it. recipient_id is the phone number in international format. Free text, media, buttons, lists, location and contacts only reach someone within 24 h of their last message to the number (the customer-service window); outside it send an approved template (other sends fail with meta_error_code 131047). Meta bills template conversations to the customer's own WhatsApp Business account. Other errors: 401 whatsapp_reauth_required (reconnect WhatsApp), meta_error_code 131026 (the number is not on WhatsApp or cannot receive it). Incoming messages (with a media_id for files) show up in list_dm_conversations and in the dm_received webhook. Needs the user's approval: call it first without confirmed to get a preview (nothing is sent), show the user exactly what will go out, and repeat the call with confirmed: true only after they approve.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"user": "<user>",
"platform": "<platform>"
},
"name": "send_dm"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| list | No | WhatsApp only: an interactive list { button (label, max 20 characters), sections: [{ title?, rows: [{ id?, title (max 24), description? (max 72) }] }] } with at most 10 rows in all; `message` is the body. | |
| user | Yes | Upload-Post profile name that owns the connected account. | |
| footer | No | WhatsApp only: footer of a buttons / list / cta_url message (max 60 characters). | |
| header | No | WhatsApp only: text header of a buttons / list / cta_url message (max 60 characters). | |
| typing | No | WhatsApp only: with sender_action mark_read, also show the typing indicator. | |
| buttons | No | Instagram only: up to 3 web_url buttons rendered in the DM. Each item is { title, url }. | |
| contact | No | Telegram: { phone_number, first_name, last_name?, vcard? }. | |
| cta_url | No | WhatsApp only: one link button { display_text (max 20 characters), url }; `message` is the body. | |
| message | No | DM text. Required on Instagram. On Bluesky optional when sharing a post in `attachments` or using `sender_action`. | |
| contacts | No | WhatsApp only: 1-10 contact cards, Meta's contact objects; at least { name: { formatted_name } or a string, phones: [{ phone }] or a string }. | |
| location | No | Telegram: { latitude, longitude } or a venue with title and address. | |
| platform | Yes | DM platform: 'instagram' or 'bluesky'. | |
| reaction | No | Bluesky only: a single emoji for sender_action react/unreact. | |
| reply_to | No | Bluesky only: id of the message this DM replies to. | |
| template | No | WhatsApp only: an approved message template { name, language (e.g. 'en_US'), components? (Meta's format, with the values of its {{1}} variables) }. The ONLY way to write to someone more than 24 h after their last message (Meta answers meta_error_code 131047 otherwise); list or create them with manage_whatsapp_templates. | |
| checklist | No | Telegram Business: an InputChecklist { title, tasks: [{ id, text }] } (1-30 tasks); needs business_connection_id. | |
| confirmed | No | Set to true only after the user has seen the preview this tool returns without it and approved it. Without it nothing is sent. | |
| message_id | No | Bluesky only: message the sender_action applies to (react, unreact, delete, and optionally mark_seen). | |
| parse_mode | No | Telegram: text formatting. | |
| attachments | No | Bluesky only: one Bluesky post to share in the DM, { type: 'post', url }. | |
| message_ids | No | Telegram: sender_action delete for up to 100 messages. | |
| recipient_id | No | Who receives the DM. Instagram (required): the recipient/commenter ID. Bluesky: handle, @handle, DID or bsky.app profile link; optional when `conversation_id` is given. | |
| sender_action | No | Bluesky only: act on the conversation instead of sending text. react/unreact and delete need `message_id`; mark_read is the same as mark_seen. | |
| conversation_id | No | Bluesky only: send to (or act on) this conversation, from list_dm_conversations. Works for group chats. | |
| business_connection_id | No | Telegram: send as the connected Telegram Business account (manage_telegram_business connections). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | No |