create_social_engagement_rule
Create a ONE-SHOT rule for one original post: after minLikes is reached, perform the specified native reshare/comment/reply once. Metric checks are spaced at least 15 minutes; unavailable metrics never count as zero or trigger execution. Uses the same durable ledger and expiry as actions. Only status confirmed proves this action completed. pending is scheduled/waiting for metrics; unknown requires get_social_action readback, never blind retry. Provider permissions are enforced at execution. Check get_social_engagement_capabilities for the exact connected account; Postiz-only accounts currently require a provider API extension for standalone engagement.
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": {
"accountId": "<accountId>",
"targetId": "<targetId>",
"requestId": "<requestId>",
"operation": "<operation>",
"minLikes": "<minLikes>",
"proAccessToken": "<proAccessToken>"
},
"name": "create_social_engagement_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | No | Exact comment/reply text. | |
| minLikes | Yes | ||
| targetId | Yes | Original platform post identifier, currently a LinkedIn share or ugcPost URN (use the provider post ID; do not substitute an activity URL). It may come from another Relay participant; only the ACTING account must be connected to you. | |
| accountId | Yes | Exact accountId from list_connected_channels. A connected account needs no additional account-access approval. | |
| commentId | No | ||
| expiresAt | No | Deadline within 30 days, after scheduledAt. Defaults to seven days from creation. | |
| operation | Yes | ||
| requestId | Yes | Stable idempotency key for this exact action. Reuse after a timeout; never replace the key to retry an unknown outcome. | |
| scheduledAt | No | Optional future time; due actions run on the five-minute worker. Omit to attempt now. | |
| proAccessToken | Yes | The proAccessToken printed by confirm_pro_signup or renew_pro_access. It names the pro's storefront for this call and is valid for 24 hours. |