# Let your AI agent set labels and know when to stay silent

Have the AI tag conversations for you, keep it quiet on spam or during your team's hours, and tell it how to fill in fields.

Source: https://support.rework.com/article/prospect-ai-labels-and-reply-rules

Your AI agent can do more than reply. It can tag customers and conversations with the labels you allow, and it can stay quiet when it shouldn't answer: on spam, or during the hours your team takes the chats itself. Even then it can keep filling in the customer's details in the background.

## Let the AI set labels

Use this to sort conversations automatically, for example to tag hot leads, complaints, price questions or spam.

1. Go to **AI Agents**, open the agent and click **Tools** **(1)**.
   
2. Find **Set labels** **(2)** and click its **+** to turn it on.
   

![Tools section of an AI agent with the Tools menu item (1) and the Set labels tool (2) highlighted](https://storage.googleapis.com/reworkv3-public/success/261120/Sy7h2distTXmb3Y27MW5J36yUARdHPxoplJu2aBWegrOyLl7LtSvIDE0GADOZN9S/img.HOAntGxj6zpAY7seD6aKEbMUQUVZL8htxl2nZbCu2w2gMapj94EEymPkZDZCnCbl.png)

1. Under **Labels the AI may set** **(1)**, pick the labels the agent may add or remove. Prospect labels go on the customer; an inbox's labels go on that inbox's conversations.
   
2. Under **When the AI uses each label** **(2)**, write a short note for each label: when it should be added. For example: _The company has 200+ employees or asks about SSO_.
   
3. Click **Done** **(3)**, then **Save** the agent.
   

![Set labels dialog with Labels the AI may set (1), a note for each label under When the AI uses each label (2) and the Done button (3) highlighted](https://storage.googleapis.com/reworkv3-public/success/261120/2s4oTEzQx6gkOKzLxlaOWflrJRy5KOjQSDe8URXehB1YN3rrRtY2Wj9leL4SeaOH/img.5NsUQ8PoGVWXovfLBlNrEfDHworhhxub3N7pN5Tj0UCwNIIMOcLugbiwvSSddvuq.png)

The AI changes a label only when the conversation matches its note. A label without a note is used by its name alone, so a clear note gives better results.

## Decide when the AI doesn't reply

Reply rules belong to the inbox, so they apply to every AI agent that answers there.

1. Go to **Settings** › **Services**, open the inbox and click **AI Agent** **(1)**.
   
2. Scroll to **When the AI does not reply** and click **Add spam rule** or **Add rule** **(2)**.
   
3. Give the rule a name, then set when it applies:
   
   - **Conditions** **(3)**: for example, the customer has the **Spam** label. **Add spam rule** fills this in for you.
     
   - **Only at certain times** **(5)**: turn it on to limit the rule to (or outside) your business hours, then set the days and hours.
     
4. Under **Then the AI**, choose what happens: **Stay silent** **(4)**, or **Only update fields (no reply, flow or handoff)** **(6)**.
   
5. Click **Save Changes**.
   

![When the AI does not reply section of an inbox: the AI Agent menu item (1), the Add spam rule and Add rule buttons (2), a Spam label condition (3) with Stay silent (4), and a business hours rule (5) set to Only update fields (6)](https://storage.googleapis.com/reworkv3-public/success/261120/DXC7yUtPGsximrtPFvSb7zgFtxzSDzcbwnrw0fDuQxpfkWkQX3T1Oio8e37BQjhQ/img.6KhRuuwBEsdYmXjTpb5vAHv6vZZFbTpA244pIAdwTpQ1EJTHjUIR6yyp9LkSvW4g.png)

💡 Put the two together: the AI tags a customer who sends suspicious links as **Spam**, and the spam rule then keeps the AI from answering them again.

Your team still sees in the conversation why the AI didn't answer. If two rules match, **Stay silent** wins.

## Tell the AI how to fill in fields

When the AI only updates fields, whether through a rule or because the conversation is assigned to a person, it works from a short set of instructions: it does not read the agent's **Instructions** section. Put field rules on the tool itself.

1. Open the agent's **Tools** and open **Save customer details**.
   
2. Under **Fields the AI may update** **(1)**, pick the fields, or leave it empty to allow every field.
   
3. In **Anything the AI should know before updating?** **(2)**, say which details to save and where, for example _Save the team size in Company size, as a number_.
   
4. Click **Done**, then **Save** the agent.
   

![Save customer details dialog with Fields the AI may update (1) and the Anything the AI should know before updating? note (2) highlighted](https://storage.googleapis.com/reworkv3-public/success/261120/V5jXvArCdUyfh9JIwNZIWugsbYlbAS8HVmuIxzIti7aMy70YizwgiaC8bNBFWpxw/img.sWxDvEzoCuPjI28KBMN7I0xtbkqzNfVpa2u2TBePtDGl9ubddVLYmv4VjbaPhnEP.png)

**Move the stage** has the same note box: write your stage rules there too.

What the AI does once a person owns the conversation is set in the same inbox section, under **When assigned to a human agent**: **Keep replying**, **Stop the AI**, or **Only update fields (no reply, flow or handoff)**.

## Good to know

- The AI only ever adds or removes the labels you picked. An inbox label only applies to conversations in that inbox.
  
- Label notes hold up to 300 characters, and the note on a tool up to 500.
  
- An inbox can have up to 20 reply rules. A rule needs a condition, a time window, or both.
  
- In fields-only mode the AI reads the last few messages of the conversation, which keeps it fast and cheap.
  
- Only people who can manage the inbox can change its reply rules.
