# Rules, team and hours (https://docs.usefitplus.com/docs/admin/inbox-rules)



Rules run before agents. They send chats to the right person or agent, add tags, hide spam and start a DM when someone comments. Open the **Rules** tab, then **Automations** or **Team and hours**.

## How rules work [#how-rules-work]

* Rules run from top to bottom. For assigning, the first rule that matches wins.
* Drag a rule by its handle to change the order.
* Use the switch on a rule to turn it on or off.
* Each rule shows its channels and how many times it ran in the last 7 days.

You start with rules such as **Comment asks to buy, send a DM**, **Big gyms go to** a teammate, **Members go to Support**, **Spam and abuse** and **Slow reply alert**.

## Create or edit a rule [#create-or-edit-a-rule]

<Steps>
  <Step>
    Select **New rule**, or select a rule to open it.
  </Step>

  <Step>
    Under **When**, choose what starts it, for example **Someone comments on a post or reel**, and the channels.
  </Step>

  <Step>
    Under **If**, add the words to look for. They work in all 7 languages. You can also let Fit+ AI match people who want to buy even without these words. Complaints never match.
  </Step>

  <Step>
    Under **Then**, add what happens, for example send a private reply by DM from the Sales agent, reply in public only if the DM was sent, or create a lead in Growth.
  </Step>

  <Step>
    Under **Limits**, keep it polite: **Once per person per post**, **Skip people who already have an open chat** and **Only comments from the last 7 days**.
  </Step>

  <Step>
    Check the **Preview**, and select **Send me a test DM** to see the message yourself.
  </Step>

  <Step>
    Make sure **Rule on** is switched on, then select **Save rule**.
  </Step>
</Steps>

Instagram allows one private reply per comment, within 7 days of the comment, so comment rules never go further back.

## Add the people who answer [#add-the-people-who-answer]

Open **Team and hours**. **Who answers** lists each person, what they handle, their languages, the most open chats they take and whether they are available now.

<Steps>
  <Step>
    Select **Add a person**.
  </Step>

  <Step>
    Choose the admin, what they handle, their languages and the most open chats they can have.
  </Step>

  <Step>
    Save.
  </Step>
</Steps>

To change or remove someone, select the three dots on their row.

## Set team hours [#set-team-hours]

Under **Team hours**, choose the time zone, then turn each day on or off and set its hours. On a day that's off, only Fit+ AI answers. Agents set to **Only outside team hours** use these hours.

## Reply targets [#reply-targets]

**Reply targets** sets how fast a person should reply in team hours, when to send an alert if a chat waits, how new chats are shared out (the free person with the fewest chats, or in turn) and what happens to someone's chats when they're away.

## Who can see the inbox [#who-can-see-the-inbox]

The Inbox is its own area in **Access & roles**:

* **Platform admin** sees and changes everything.
* **Inbox admin** sees all chats and can change agents, knowledge, rules and channels. A platform admin gives it to a Support person as temporary access. See [Give temporary access](https://docs.usefitplus.com/docs/admin/access-grants).
* **Support** sees support chats and comments only.
* **Finance** has no access.

## Common questions [#common-questions]

<Accordions>
  <Accordion title="Two rules match the same chat. Which one wins?">
    For assigning, the higher rule wins. Other actions, such as tags, all run.
  </Accordion>

  <Accordion title="Does a rule send messages to people who never wrote to us?">
    No. Rules only answer people who wrote first or commented, and only once per comment.
  </Accordion>
</Accordions>

{/* Screenshots: the Automations list, a rule with its preview, and Team and hours. */}
