Apply an action to DM conversations
apply_conversation_actionsApplies one action to up to 100 DM conversations: mark done or open, mark read or unread, add or remove tags, set the sentiment, assign to a team member or remove the assignee (up to 50; the assignee is notified in replient.ai and by email unless they are the caller), add a team note (one conversation; mentioned team members are notified), or stop the running DM automation. Marking done or read also marks the conversation as seen on Instagram and Facebook where the platform allows it, so the contact may see "Seen". Returns one result per id (ok, skipped when nothing changed, failed with the reason). Every change is logged in the conversation's activity protocol with this app as its origin. Each id counts against the rate limit.
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>",
"ids": "<ids>",
"action": "<action>"
},
"name": "apply_conversation_actions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | Conversation ids (1-100); one conversation is ids: [id]. | |
| brand | Yes | ||
| action | Yes | mark_done, mark_open: status. mark_read, mark_unread: read state. add_tags, remove_tags: team tags (params.tags; remove also removes AI tags). set_sentiment: params.sentiment. assign: to "me" or a team member who can open DMs (params.userId, up to 50 ids; the assignee is notified in replient.ai and by email unless they are the caller). unassign: removes the assignee. add_note: a team note visible to the whole team (params.text, optional params.mentionUserIds; one id; mentioned people are notified). stop_automation: stops the running DM automation for this contact; the automation stays on for everyone else and a stopped run cannot be resumed. | |
| params | No |