Send DM
send_dmSends a text message in an existing DM conversation, as the brand, to the conversation's contact. Meta only delivers it within 24 hours of the contact's last message; outside that window the platform refuses and the error says why. Replies after 24 hours (up to 7 days) can only be sent by a person from the replient.ai inbox. The text can be written freely or come from an AI suggestion (get_conversation with include=suggestions), as is or edited. Messages sent through the API or MCP never become training data for the brand voice; only messages a person approves inside replient.ai do. Logged in the conversation's activity protocol with this app as its origin; the conversation is marked done if the brand does that after replies. Sending the same text to the same conversation again within 10 minutes is refused. Text only. May first return a confirmation summary and token instead of acting.
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": {
"brand": "<brand>",
"conversationId": "<conversationId>",
"text": "<text>"
},
"name": "send_dm"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The message. Plain text; platform limits apply. | |
| brand | Yes | ||
| conversationId | Yes | Conversation id, a numeric string as returned by the list operations. | |
| confirmationToken | No | ||
| basedOnSuggestionIndex | No | Index of the AI suggestion this message is based on (get_conversation with include=suggestions), for the activity protocol. |