# How to Route Contacts by Team Functions

{% hint style="success" %}
In this use case article, you’ll discover how to automatically route Contacts to the right team based on their needs or contact data.
{% endhint %}

It is important to set up a good automated routing system to help streamline your customer service process and ensure your Contacts are being attended to by the correct team in a timely manner.

#### Benefits of Routing Contacts by Team Functions <a href="#benefits_of_routing_contacts_by_team_functions" id="benefits_of_routing_contacts_by_team_functions"></a>

Route Contacts by team functions to:

* improve customer experience when Contacts are routed to agents who have the expertise to address their specific concerns effectively.
* improve resolution time by connecting Contacts to the right team, reducing transfer and escalation time.

#### Methods for Routing Contacts by Team Functions <a href="#methods_for_routing_contacts_by_team_functions" id="methods_for_routing_contacts_by_team_functions"></a>

1. Route based on Contact’s answer.
2. Route based on Contact data.

**Route based on Contact’s answer**

{% hint style="success" %}
**Use this method** to route Contacts based on the team they want to speak to.
{% endhint %}

* Ask Contacts the team they want to speak to.
* Route Contacts to the right team for assistance.

**Ask Contacts the team they want to speak to**

In the **Workflows** module, click **+ Add Workflow** > Click **Multi-Team Routing: Multiple Choice by Contact** > Click **Use Template**.

<figure><img src="https://files.helpdocs.io/9e3syfbzn8/articles/kz2dtjlsmg/1687403597017/route-customers-by-team-2.png" alt="Multi-Team Routing: Multiple Choice Workflow Template"><figcaption></figcaption></figure>

**1.** [**Trigger**](/ismessenger/modules/workflow.md): The Workflow starts when a conversation is opened by a Contact.

**2. Ask for Team**: This is the [Ask a Question](/ismessenger/modules/workflow.md) step to ask Contact the team the Contact wants to speak to and save the answer as Variables. The [Variable](/ismessenger/contact-and-messages/untitled.md) will be used in this Workflow’s Branch step for routing purposes.

The Ask a Question Step can be set up with multiple choice answers. In this Workflow Template example, we have prepared answer options as follows:

* Sales
* Support

**Route Contacts to the right team for assistance**

<figure><img src="https://files.helpdocs.io/9e3syfbzn8/articles/kz2dtjlsmg/1687403666170/route-customers-by-team-3.png" alt="Multi-Team Routing: Multiple Choice Workflow Template"><figcaption></figcaption></figure>

**3. Sales or Support Branch**: This is a [Branch](/ismessenger/modules/workflow.md) step to route Contact to the right team based on the answer the Contact has selected in the previous Ask a Question step. If the Contact selects the answer option *Sales* or *Support*, the Contact will be routed to Branch 1 or Branch 2 respectively.

**4. Assign to Sales Team / Assign to Support Team**: Configure this [Assign To](/ismessenger/modules/workflow.md) step with a team based on your business needs.

**5. Assignment Message**: Sends a message to inform Contact about their assignment status.

{% hint style="success" %}
Once you have completed the setup, click **Save** and **Publish** to activate the Workflow.
{% endhint %}

**Route based on Contact data**

{% hint style="success" %}
**Use this method** to route Contacts to the right team based on existing Contact information.
{% endhint %}

Contact information such as language or country can be derived automatically from the [Channel the Contacts used to message your business or from the Contact's phone number](/ismessenger/modules/contacts.md).

{% hint style="success" %}
Consider doing [customer data enrichment](/ismessenger/support-use-cases.md) earlier in this Workflow so that the data collected can be used to make automated decisions on the next Workflow steps for your Contacts.
{% endhint %}

<figure><img src="https://files.helpdocs.io/9e3syfbzn8/articles/kz2dtjlsmg/1687403827556/route-customers-by-team-4.png" alt="Branch step"><figcaption></figcaption></figure>

Use a [Branch](/ismessenger/modules/workflow.md) step to route Contacts based on existing Contact information. We’ll use *Language* as the Contact Field in this example.

In the Workflow, add a *Branch* step and configure the step:

* Category: *Contact Field*
* Field: *Language*
* Operator: *is equal to*
* Select: Select your desired language.

{% hint style="success" %}
Consider [Auto-Assignment](/ismessenger/sales-use-cases/how-to-route-leads.md) as your next step to automatically assign Contacts to the right agent.
{% endhint %}

{% hint style="success" %}
Once you have completed the setup, click **Save** and **Publish** to activate the Workflow
{% endhint %}


---

# 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://docs.is-messenger.com/ismessenger/automate-conversations/how-to-route-contacts-by-team-functions.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.
