# Auto-assign by keyword

**Auto-assign by keyword** is a **Missive rules template** designed for sales teams that have asscociates with different domain expertise. With this rule, you can automatically triage and assign incoming sales emails to the relevant in-house expert.

#### When enabled:

* The rule will automatically assign an email to a user based on specific keywords found in the email body.

#### Here’s how it works:

* You need to determine what the target keyword is
* You need to choose who should be assigned

***

### Incoming email rule: Auto-assign by keyword

This rule is meant to help you triage your team inbox faster by getting the right person automatically assigned to the incoming prospect email.

<a href="https://mail.missiveapp.com/?importRule=auto-assign-by-keyword_incoming-message" class="button primary" data-icon="plus">Add to Missive</a>

#### There is one condition and one action to make this rule work.

{% stepper %}
{% step %}
If an incoming email contains a **specific** **keyword**
{% endstep %}

{% step %}
It will automatically **assign** the user you determined to be best suited for that email
{% endstep %}
{% endstepper %}

{% hint style="info" %}
You can add multiple keywords to make it more specific and/or you can use [AI prompts](/docs/ai/using-ai/prompts.md) to determine the context of an incoming email.
{% endhint %}

<div data-with-frame="true"><figure><img src="/files/6EGlakBOECZzCayQos5a" alt=""><figcaption></figcaption></figure></div>

<table><thead><tr><th width="220.484375">Component</th><th>Value</th></tr></thead><tbody><tr><td>Condition</td><td><strong>Message content</strong> contains "keyword"</td></tr><tr><td>Action</td><td><p><strong>Assign user(s)</strong> → Select users</p><p><br></p><p><br></p></td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://missiveapp.com/docs/advanced-features/rules/templates/auto-assign-by-keyword.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
