> ## Documentation Index
> Fetch the complete documentation index at: https://docs.snagsolutions.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Comment on an X Post with Text

> X comment text loyalty rule. Reward users for commenting with specific text on posts.

<head>
  <script type="application/ld+json">
    {JSON.stringify({
            "@context": "https://schema.org",
            "@type": "TechArticle",
            "headline": "Comment on an X Post with Text",
            "description": "X comment text loyalty rule. Reward users for commenting with specific text on posts.",
            "author": {"@type": "Organization", "name": "Snag Solutions", "url": "https://www.snagsolutions.io/"},
            "publisher": {"@type": "Organization", "name": "Snag Solutions", "url": "https://www.snagsolutions.io/", "logo": {"@type": "ImageObject", "url": "https://assets.snagsolutions.io/public/docs/snag-logo-dark-no-bg.svg"}},
            "mainEntityOfPage": "https://docs.snagsolutions.io/loyalty/rules/x-text-in-comment"
          })}
  </script>
</head>

## Overview

This loyalty rule allows admins to reward users for posting a specific text in their X comment. This rule is useful for getting more engagement on their X account.

<Frame>
  ![Snag admin comment on X post with text rule configuration form](https://assets.snagsolutions.io/public/docs/rules/x-text-in-comment.png)
</Frame>

## Prerequisites

* The user must have connected their X account to Snag.
* The user must have a specific text in their X comment and submit the claim.

## Rule Configuration Fields

### **Reward**

* **Type of Reward**: Choose between "Points" or "Multiplier".

* **Points**: Users will get the defined no of points.

* **Multiplier**: Users will get the multiplier of the defined amount.

### Basic Settings

* **Update Cadence**: Points for this rule will be rewarded immediately on user claim after they follow the defined X account.
* **User Reward Frequency**: This defines how often the user will be rewarded. You can choose between one time, daily, weekly, or monthly.

### **Custom Settings**

* **Text to check in X Comment**: This lets you define the text that the user must have in their X comment.
* Skip the multiplier for this rule

<Note>
  Text matching is case-insensitive and handles line breaks automatically. Both the expected text and the user's comment are normalized to handle different line break formats (e.g., `\n`, `\r\n`), ensuring consistent matching regardless of how the text is formatted.
</Note>

### **Quality Post Filtering**

* **Only reward quality posts**: When enabled, only posts that meet quality standards will be rewarded. Posts are analyzed using AI to calculate a sentiment score from 1-100.

<Info>
  **How quality is determined:**

  * Posts receive an AI-calculated sentiment score (1-100) that evaluates both positivity and content quality
  * Only posts with a sentiment score of 75 or higher are considered quality posts
  * Low-quality content (AI spam, incentive farming, generic copy-paste content, irrelevant hashtags, engagement bait) receives scores of 1-40
  * Positive but low-effort content scores 40-60
  * Positive, substantive, high-quality content scores 75-100

  If a user's post doesn't meet the quality threshold, they will see an error message: "This post doesn't meet the quality requirement. Try creating a new post with better content and submit again."
</Info>

* **Minimum X followers (optional)**: When "Only reward quality posts" is enabled, you can optionally set a minimum follower count requirement for users to be eligible for rewards.

**Call to Action (Optional)**

This will show a call to action in our loyalty rule.

* **Link**: Provide a URL for users to take further action.
* **Button Text**: Define the button label.
