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

> ## Agent Instructions
> You are reading OnlyX Help: the OnlyX Help Center and the OnlyX developer documentation. OnlyX is an AI chatting and CRM platform for OnlyFans agencies. Its AI chatter is called Hugo in the app.
> Pages at the site root (for example /inbox/..., /hugo/..., /billing/...) are Help Center articles for agency owners, admins, chatters and creators who use the app at app.onlyx.ai. Words in bold are the exact button, menu and label names the app shows; keep them exactly as written. When these pages do not answer a question, the person can email support at support@onlyx.ai.
> Pages under /developers are the developer documentation. REST API base URL: https://api.onlyx.ai/v1 (authenticate with `Authorization: Bearer <API key>`; keys start with onx_sk_ and are created in app.onlyx.ai under Settings > API & MCP). MCP server: https://mcp.onlyx.ai/mcp (OAuth, or a Bearer API key). In the API the AI chatter is `ai` on the wire. Money is integer US cents in fields ending in Cents; timestamps are UTC ISO-8601.
> Rules for assistants acting on a user's behalf: discover ids with list calls and never invent them; before any call that reaches a real fan or the live OnlyFans account (sending a message, releasing a chat to the AI, turning AI on for a chat, resolving a hand-off, turning review mode off, changing the welcome message, creating a tracking link) show the user the exact content and get explicit confirmation; send every POST with an Idempotency-Key and reuse it on retry; never resend a message whose delivery status is unconfirmed; never ask a creator for her OnlyFans password or codes - she signs in herself through a connect link and the OnlyX Login app.

# AI Rules: automate what happens to a fan

> Make rules that act on a fan for you: turn Hugo off for one fan, follow new fans back, add fans to a list or send a webhook.

<Badge color="orange">Owners and admins</Badge>

An AI rule acts on a fan for you. When something happens, OnlyX checks what you asked about the fan, then does what the rule says.

## Before you start

* Rules belong to one creator. Each creator has her own **AI Rules** tab.
* Only owners and admins can create, change, switch off or delete rules.
* Chatters and content VAs can open the tab and read the rules and their activity.

## How a rule works

Every rule has three parts:

| Part | What you choose | Example |
| - | - | - |
| **When** | The moment that starts the rule | **A fan sends a message** |
| **If** (**optional**) | What must be true about the fan | **Total spent** **is greater than** \$1000 |
| **Then** | What OnlyX does | **Turn Hugo off for this fan** |

A rule can start at five moments: **A fan subscribes**, **A fan sends a message**, **A fan buys something**, **A fan tips** and **A fan unsubscribes**.

The **If** part can check these facts about the fan. Amounts are in dollars, and **Total spent** is what the fan paid before the OnlyFans fee.

| Group | Facts |
| - | - |
| Money | **Total spent**, **Total tips**, **Total PPV purchased**, **Subscription price**, **Fan quality** |
| Subscription | **Subscribed for**, **Is subscribed**, **Auto-renew is on**, **Subscription type** |
| Activity | **Last active**, **Messages from fan** |
| Who they are | **Is a creator**, **Is muted**, **Segment**, **Name**, **List membership** |

**Is muted** asks whether someone on your team used **Mute fan** on the fan's conversation in the inbox. That mark exists only in OnlyX: it mutes nothing on OnlyFans, but a rule can act on it.

The **Then** part can do seven things:

* **Turn Hugo off for this fan**: that one conversation shows **Hugo off**, and Hugo stops answering this fan. Other fans are not affected.
* **Turn Hugo on for this fan**: gives the conversation back to Hugo. It does nothing while a person on your team holds the conversation.
* **Follow the fan back**: the creator follows the fan on OnlyFans.
* **Add the fan to a list**: puts the fan on one of the creator's OnlyFans lists.
* **Mark the conversation read** and **Mark the conversation unread**: change the unread mark in OnlyX only. The fan gets no read receipt.
* **Send a webhook**: sends the fan's details to a web address your own tools use. See [Tell your own systems about a fan](#tell-your-own-systems-about-a-fan).

## The two rules every creator starts with

Every creator starts with two rules. They show a **Preset** mark:

* **Auto-follow fans back**: when a fan subscribes, the creator follows him back on OnlyFans.
* **Don't message other creators**: when a fan who runs his own OnlyFans page writes, Hugo is turned off for that fan. This way, Hugo does not try to sell to another creator.

Both are ordinary rules. You can rename them, change them, switch them off or delete them. If you delete one, it does not come back.

<Frame caption="**1** Rules, active rules and times acted · **2** A preset rule every creator starts with · **3** New rule">
  <img className="block dark:hidden" src="https://mintcdn.com/onlyx/mIACQV0LhpxrXe4v/images/help/hugo/ai-rules/rules-list-light.png?fit=max&auto=format&n=mIACQV0LhpxrXe4v&q=85&s=18189fc609b979c71329fca40f321219" alt="The AI Rules tab with the Rules, Active and Times acted counters, the preset rule Don't message other creators, and the New rule button" width="1600" height="802" data-path="images/help/hugo/ai-rules/rules-list-light.png" />

  <img className="hidden dark:block" src="https://mintcdn.com/onlyx/mIACQV0LhpxrXe4v/images/help/hugo/ai-rules/rules-list-dark.png?fit=max&auto=format&n=mIACQV0LhpxrXe4v&q=85&s=f0e973311111bbe484edac6d21c62720" alt="The AI Rules tab with the Rules, Active and Times acted counters, the preset rule Don't message other creators, and the New rule button" width="1600" height="818" data-path="images/help/hugo/ai-rules/rules-list-dark.png" />
</Frame>

Each rule shows the rule as a sentence and how often it acted, for example "Acted 12 of 30 times". The first number counts the times a fan matched and the rule acted. The second counts every time the rule checked a fan.

## Create a rule from a template

A template fills in the editor for you. Nothing is created until you click **Create rule**. The templates are:

* **Whales talk to a human**: when a fan who spent more than \$1000 writes, Hugo is turned off for that fan.
* **Muted fans go to a human**: when a fan you muted writes, Hugo is turned off for that fan.
* **Flag a big purchase for a human**: when a fan who spent more than \$500 buys, his conversation is marked unread.
* **Tell me about big spenders**: when a fan who spent more than \$200 buys, OnlyX tells your own systems.
* **Auto-follow fans back** and **Don't message other creators**: the two starting rules, if you deleted them.

<Steps>
  <Step title="Open AI Rules">
    In OnlyX, click **Creators**. Then click the creator and click **AI Rules**.

    The tab shows her rules and their activity.
  </Step>

  <Step title="Pick a template">
    Under **Add another**, click a template. If the creator has no rules yet, click one of the template cards instead.

    The **New rule** editor opens, filled in from the template.
  </Step>

  <Step title="Check the rule">
    Change the **Rule name**, **When**, **If** or **Then** parts if you need to. The **Tell me about big spenders** template needs your **URL** before you can create it.

    Under the three parts, the editor shows the rule as a sentence. It also counts how many of her fans match the rule right now.

    <Frame caption="**1** When: what starts the rule · **2** If: what must be true about the fan · **3** Then: what OnlyX does">
      <img className="block dark:hidden" src="https://mintcdn.com/onlyx/mIACQV0LhpxrXe4v/images/help/hugo/ai-rules/rule-editor-light.png?fit=max&auto=format&n=mIACQV0LhpxrXe4v&q=85&s=cb9b7c57e4633eed6f5ffdf19b02d20e" alt="The New rule editor filled from the Whales talk to a human template: A fan sends a message, Total spent over 1000, and Turn Hugo off for this fan" width="1600" height="1851" data-path="images/help/hugo/ai-rules/rule-editor-light.png" />

      <img className="hidden dark:block" src="https://mintcdn.com/onlyx/mIACQV0LhpxrXe4v/images/help/hugo/ai-rules/rule-editor-dark.png?fit=max&auto=format&n=mIACQV0LhpxrXe4v&q=85&s=22fe19022598e6b2e4dacde5b6167978" alt="The New rule editor filled from the Whales talk to a human template: A fan sends a message, Total spent over 1000, and Turn Hugo off for this fan" width="1600" height="1851" data-path="images/help/hugo/ai-rules/rule-editor-dark.png" />
    </Frame>
  </Step>

  <Step title="Create the rule">
    Click **Create rule**.

    "Rule created" shows, and the rule appears in the list as **Active**.
  </Step>
</Steps>

<Warning>
  A rule is live as soon as you create it. The next time its moment happens, it acts on real fans. A rule with no conditions acts on every fan at that moment. Read the sentence and the count before you click **Create rule**.
</Warning>

## Build a rule from the start

<Steps>
  <Step title="Open the editor">
    On the **AI Rules** tab, click **New rule**.

    The **New rule** editor opens.
  </Step>

  <Step title="Name the rule">
    In **Rule name**, enter a name that says what the rule does.
  </Step>

  <Step title="Choose when it starts">
    Under **When**, select the moment that starts the rule.

    A short text under the menu explains the moment you picked.
  </Step>

  <Step title="Optional: Add conditions">
    Under **If**, click **Add a condition**. Select a fact, a comparison and a value.

    To add another condition to the same group, click **Add condition**. To add a second group, click **Add group**. In each group, choose **ALL** or **ANY** next to **Match**.
  </Step>

  <Step title="Add an action">
    Under **Then**, click **Add action**. Then select an action.

    For **Add the fan to a list**, pick the list. For **Send a webhook**, enter the **URL**.
  </Step>

  <Step title="Create the rule">
    Read the sentence and the count. Then click **Create rule**.

    "Rule created" shows, and the rule appears in the list as **Active**.
  </Step>
</Steps>

Without conditions, the editor says "No conditions — this runs for every fan on that trigger." Each action can be in a rule only once.

## Switch off, change or delete a rule

* To switch a rule off or on, use the switch on the rule's row. The row shows **Active** or **Off**.
* To change a rule, click the three-dot button on the rule's row. Then click **Edit**, make your changes and click **Save rule**.
* To copy a rule, click the three-dot button. Then click **Duplicate**. The editor opens with a copy of the rule.
* To delete a rule, click the three-dot button. Then click **Delete**. In **Delete this rule?**, click **Delete**. The rule stops, and its history is removed.

## When rules run

* A rule runs at the moment its trigger happens, on live activity only. When you connect a creator, her existing fans do not start any rule.
* A rule on **A fan sends a message** runs before Hugo answers. If the rule turns Hugo off for the fan, Hugo does not send that reply.
* A rule acts at most 20 times per fan in 24 hours. A rule on **A fan subscribes** or **A fan unsubscribes** acts at most once per fan in 24 hours.
* **Follow the fan back** and **Add the fan to a list** happen on OnlyFans, so they can take a few minutes.
* Did someone on your team turn Hugo back on for a fan? Then the rule that turned Hugo off does not do it again for that fan.
* **Mark the conversation unread** cannot be used with **A fan sends a message**. A new message already makes the conversation unread.

On a Telegram creator, **Follow the fan back**, **Add the fan to a list** and the **List membership** condition are not offered.

## Check what a rule did

<Steps>
  <Step title="Scroll to Activity">
    On the **AI Rules** tab, scroll to **Activity**.

    By default, the list shows only the times a rule acted.
  </Step>

  <Step title="Show every check">
    Turn off **Only what acted**.

    The list now shows every time a rule looked at a fan. When a rule did nothing, the row says why.

    <Frame caption="**1** Turn this off to see every check · **2** Why a rule did nothing for this fan">
      <img className="block dark:hidden" src="https://mintcdn.com/onlyx/hKdJ8389VtiBWn-f/images/help/hugo/ai-rules/rules-activity-light.png?fit=max&auto=format&n=hKdJ8389VtiBWn-f&q=85&s=caedb61212efa7b93167bd8dc618cd64" alt="The Activity list with Only what acted switched off, where each rule check that did nothing says why, for example This fan did not match" width="1600" height="382" data-path="images/help/hugo/ai-rules/rules-activity-light.png" />

      <img className="hidden dark:block" src="https://mintcdn.com/onlyx/hKdJ8389VtiBWn-f/images/help/hugo/ai-rules/rules-activity-dark.png?fit=max&auto=format&n=hKdJ8389VtiBWn-f&q=85&s=66d3654184329a00cacf63e0699aa912" alt="The Activity list with Only what acted switched off, where each rule check that did nothing says why, for example This fan did not match" width="1600" height="382" data-path="images/help/hugo/ai-rules/rules-activity-dark.png" />
    </Frame>
  </Step>

  <Step title="Refresh the list">
    To see the newest checks, click the refresh button next to **Only what acted**.
  </Step>
</Steps>

Each row shows the rule, the fan and a status:

| Status | What it means |
| - | - |
| "Done" | Every action worked. |
| "Partly done" | At least one action failed. The failed action is in red, with the reason. |
| "Failed" | Every action failed. |
| "Nothing to do" | There was nothing to change. For example, Hugo was already off for this fan, or there is no conversation with this fan yet. |
| "This fan did not match" | The rule works. This fan does not meet its conditions. |
| "We have not learned that about this fan yet" | The rule asks something OnlyX has not seen yet about this fan, such as whether he is a creator. This is not a "no". The rule checks again the next time its moment happens. It can match once OnlyX has learned the answer, usually from a later OnlyFans sync. |
| "Already ran the daily maximum for this fan" | The rule already acted on this fan as many times as it may in 24 hours. |
| "The rule hit an error" | Something went wrong while the rule ran. |

## Tell your own systems about a fan

The **Send a webhook** action sends a <Tooltip tip="A message OnlyX sends to a web address you own when something happens. Another app can then react to it.">webhook</Tooltip>. Your own tools can then react to the fan, for example by alerting your team about a big spender.

* In **URL**, enter a public web address that starts with `http://` or `https://`. OnlyX does not call private addresses and does not follow redirects.
* **Signing secret** is optional. With a secret, each call carries an `X-OnlyX-Signature` header, so your system can check that the call came from OnlyX.
* OnlyX sends the fan's details, the creator and the rule. It tries once, waits only a few seconds for an answer and does not retry.
* The result of every call is in **Activity**.

## If something goes wrong

<AccordionGroup>
  <Accordion title="Create rule stays greyed out">
    Something is missing. The reason shows next to the button, for example "Add at least one action." or "Give the rule a name." Fix it, and the button turns on.
  </Accordion>

  <Accordion title="A message appears when I click Create rule">
    OnlyX refused the rule, and the message says why. For example, OnlyX does not call a private web address. Change what the message names, then click **Create rule** again.
  </Accordion>

  <Accordion title="Activity shows &#x22;This fan did not match&#x22;">
    The rule is working, but this fan does not meet its conditions. Open the rule with **Edit** and check the **If** part. The count in the editor shows how many fans match right now.
  </Accordion>

  <Accordion title="Activity shows &#x22;We have not learned that about this fan yet&#x22;">
    The condition asks about something OnlyX has not seen yet for this fan. For example, OnlyX may not know yet whether he runs his own page. This is not a "no".

    The rule checks again the next time its moment happens. It can match once OnlyX has learned the answer, usually from a later OnlyFans sync.
  </Accordion>

  <Accordion title="A rule did nothing for fans who were already subscribed">
    Rules run only when their trigger happens after the rule exists. Fans who subscribed earlier, or who came in when you connected the creator, do not start a rule.
  </Accordion>

  <Accordion title="I don't see New rule or the switches">
    Only owners and admins can create and change rules. Chatters and content VAs can only read the tab. Ask an owner or admin.
  </Accordion>
</AccordionGroup>

## What's next

<Columns cols={2}>
  <Card title="Keep Hugo out of one fan's conversation" icon="bot-off" href="/inbox/keep-hugo-out-of-a-chat" horizontal />

  <Card title="Read a fan's activity timeline" icon="history" href="/inbox/fan-activity" horizontal />

  <Card title="How Hugo works" icon="sparkles" href="/hugo/how-hugo-works" horizontal />
</Columns>
