# POST /social/comment-reply-rules

**Resource:** [SOCIAL](./social.md)  
**MCP tool:** `create_social_comment_reply_rule`  
**Scopes:** `social:write`  
**Write operation:** yes

Retired: comment replies are now Conversation Flows. Use create_conversation_flow with a start of type "comment" (Instagram and Messenger, buttons, questions, any later step). This tool always answers with that explanation. What it used to do: when someone comments a keyword, they get a private message from the account, and optionally a public reply under their comment. Works on Instagram accounts connected on their own whose can_reply_by_message is true in list_social_accounts. One message per comment (Instagram's rule) and one per person per rule per post. A rule for one post wins over a rule for the whole account; keyword rules win over catch-all rules. The reply includes listening, and listening_problem in plain words when Instagram is not yet sending the account's comments. With the approval tier it waits in Approvals.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `integration_id` | body | string | yes | The Instagram account (integration_id from list_social_accounts). |
| `name` | body | string | no | A short name for the rule, e.g. "Free guide" (up to 100 characters). |
| `keywords` | body | array | no | Words or phrases that trigger the rule, matched as whole words in any case ("guide" matches "GUIDE please" but not "guided"). Up to 25. Send an empty list to answer every comment. |
| `message` | body | string | yes | The private message sent to the person who commented (up to 1,000 characters). Instagram allows one per comment, within 7 days of it. |
| `public_reply` | body | string | no | Optional reply posted under the comment for everyone to see, e.g. "Sent you a message!" (up to 2,200 characters). Send an empty string for none. |
| `post_id` | body | string | no | Only answer comments on this post (a social post id from list_social_posts that went to this Instagram account). Leave out, or send an empty string, to answer comments on every post on the account. |
| `enabled` | body | boolean | no | Whether the rule answers comments. Default true. |
| `require_approval` | body | boolean | no | Optional. Set true to route this write into the approval queue for human review instead of executing it immediately (returns 202 + an approval_id). Works even when your key/token has permission to execute directly. |

## Request example

```bash
curl -X POST   "https://api.trustpager.com/functions/v1/api/v1/social/comment-reply-rules"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"integration_id":"...","name":"...","keywords":"..."}'
```

---
Base URL: `https://api.trustpager.com/functions/v1/api/v1` — Auth: `Authorization: Bearer YOUR_API_KEY`