Actions9
- Message Actions
- Comment Actions
- Profile Actions
Message → Send Attachment
AI-generatedSummary
Send an image, video, audio clip, or file to an Instagram user as a DM through the dibales.ai public API. The media is fetched from a public URL. The recipient is either a user (IGSID) or a comment author (private reply).
Inputs
- recipientMode (required) — "User ID (Direct Message)" sends a regular DM, sent as
to.platform_id. "Comment ID (Private Reply)" sends a private DM to a comment's author, sent asto.comment_id. Use Comment ID only for the first message in a comment-triggered flow. - recipient (required) — The recipient's IGSID, shown in User ID mode. The default expression auto-extracts it from the upstream event. If the field is empty, the node tries the same auto-detection from the incoming item and errors if it finds nothing.
- recipientCommentId (required) — The comment ID, shown in Comment ID mode. The default expression auto-extracts it from the upstream comment event, with the same fallback and error behavior as the recipient field.
- attachmentType (required) — Image, Video, Audio, or File. This selects the endpoint: /instagram/messages/image, /video, /audio, or /file.
- mediaUrl (required) — Public HTTPS URL of the media, reachable by Instagram's servers without authentication. The node errors if it is empty or doesn't start with http:// or https://.
Output shape
A single Main output with one item per input item. Each item holds the API response fields plus a _sent object containing to, type, and mediaUrl. pairedItem links each output to its input item.
The node throws an error on any HTTP status of 400 or above. The error carries the backend's message, code, and request_id. If the API returns an empty body, only
_sentis present. Items are processed one at a time, so a failure stops the run unless Continue On Fail is enabled. The source doesn't show whether the node handles that setting.
Examples
Example 1: Send a PDF brochure to a user who messaged the account.
Recipient Mode: User ID (leave the default expression). Type: File. Media URL: https://cdn.example.com/brochure.pdf.
Example 2: Send a promo image as a private reply when someone comments a keyword.
Recipient Mode: Comment ID (leave the default expression). Type: Image. Media URL: https://cdn.example.com/promo.jpg.