# Setup Multiple Teams or Messaging Services

> \[!NOTE]
>
> Ability to setup multiple teams is available version **4.129 onwards**

Now Twilio for Salesforce allows you to run SMS operations for multiple teams like Support, Sales, Marketing from within Salesforce while maintaining a separate pool of phone numbers for each team.

This is achieved by connecting each team created by you in Twilio for Salesforce app to a dedicated messaging service in your Twilio account. Also, you can mix and match this functionality with other functionalities like [Personal Numbers](/docs/salesforce/personal-phone-numbers) and [Default Messaging Service](/docs/salesforce/install#6-select-your-messaging-service-in-salesforce), to mimic multiple SMS operational team structures into you Salesforce Org

## Setup a Team in Twilio for Salesforce

* For each team which is going to need its own pool of numbers, we will need to setup a messaging service
* We will do a sample setup for a Support Team

Step 1: Create a Messaging service in your [Twilio Account](https://www.twilio.com/login)

In your Twilio Account go to Messaging -> Services -> Click *Create Messaging Service* Button

![Twilio console showing Messaging Services with a button to create a new messaging service.](https://docs-resources.prod.twilio.com/4fd0b435a7da409cbcaf055ad3a455c104d9caa7f1a0a9ef89ffda45e1839a28.png)

Provide a name for the messaging service. In this case we will name it *Support Team Messaging Service* and Click *Create Messaging Service*

![Step 2 of Messaging Service Setup: Add senders to service from the sender pool.](https://docs-resources.prod.twilio.com/b25b31981f6838902c0a549e0ffcd65dd6f97bfe94dec8d85e6c3698bc5e3457.png)

Add the phone numbers that Support team will use to send SMS by clicking *Add Senders*

![Add Senders.](https://docs-resources.prod.twilio.com/01735c080d580eb6944215af5e78d99497b08ad155ccb8bbdeac5d06eb27229f.png)

In **Setup Integration** step, please use the same [Dummy Webhook](/docs/salesforce/install#5-create-a-webhook-for-your-messaging-service), that is setup for the default messaging service

Step 2: Create a team in Twilio for Salesforce and map it to the messaging service we just created in the previous step

Open "Twilio Configuration" tab inside Salesforce. After opening the page, the system will fetch the messaging service from the Twilio account and create it as a Team inside salesforce automatically.

![Twilio configuration page with account SID, auth token, and message service options.](https://docs-resources.prod.twilio.com/50546b226b154f0c614835528c518d7b2758dea37b66942016b4d52dcbae2c1e.png)

In the above image, the messaging service which is selected under "Connect" section of "Twilio Configuration" tab will be consider as default messaging service and it can't be used as team.

![Twilio interface showing Teams dropdown and list of messaging services.](https://docs-resources.prod.twilio.com/3c1fb55401424860490dcac9b4c1ba727fb192c7b233778f782fc8062940c3f8.png)

Open the team record and update the Team Name(This name will be used throughout Twilio for Salesforce as the Team name) & Active check box(Only Active teams can be used in salesforce).

![Twilio Support team details with active status checked.](https://docs-resources.prod.twilio.com/90b878e48a18c33c615b31b8f4ace305bcd9f474f782e520198f391825608b9b.png)

**Note**: 1 messaging service can be used only for 1 team. You will need to create a messaging service for each team.

![Twilio Teams page showing options for Support, Sales, and Marketing with a New button highlighted.](https://docs-resources.prod.twilio.com/0ed8b987af0cfd7a1ee39ef51ed3fdf4c72f4f50ce3daf9d346d0635bae2d8c4.png)

Step 3: Add members to the team created in the previous step

* Open the Team Record
* Open *Related* Tab
* Click *New*

![Open Related tab and click New to add a team member in Twilio Support.](https://docs-resources.prod.twilio.com/61318b9483f7fa466efdd49213fe6ed7239b5bbbca48d40bbf4aede1e082b90e.png)

* Search and select the user to be added as team member
* Click *Save* to add them as team member

![Form to add a new Twilio team member with a search for 'Lewis' in the Team Member field.](https://docs-resources.prod.twilio.com/fd4b18e8d8557742d78ba49119721cd3b7e1be1fbceb9a4eefd6f8a0f0eef2ad.png)

Repeat the above to add more Team and Team Members

Step 4: Make Active Team available for messaging component & configure the order

> \[!WARNING]
>
> This step must be completed before the **Team Name** can be changed.

* Open the "Twilio Configuration" tab
* Navigate to the "Message Sender Selection Order" section
* Move the team from the available section to the selected section & rearrange the order of the team. Click on the Save button. When the user will open 1:1 component then the team selection order will be displayed to the user as per the order configured here.

![Twilio interface showing team selection from available to selected with save button.](https://docs-resources.prod.twilio.com/5d55b3cf2dc2f1482863ff28d4e726fbdd9ce78dbd4d78045c4a51851f5b4c2f.png)

## Send Messages from a Team's messaging service

* Go to Twilio for Salesforce 1:1 Messaging component
* Type in your message
* Click on the *Send From* Dropdown
* Select the *Support* team from the dropdown and Click Send
* Messages will be sent from one of the numbers in the Support team's messaging service

![Twilio chat interface with message dropdown for number selection.](https://docs-resources.prod.twilio.com/cbe65a6b633f1c53ff54287a307360d4cb1e33dc5533b8f07e6d79fadd9082fb.png)

## View Customer Responses

When customers respond, your incoming messages will be visible in [1:1 Messaging component](/docs/salesforce/one-one-sms-messaging-contacts) and [Inbox component](/docs/salesforce/sms-inbox)

> \[!NOTE]
>
> Twilio for Salesforce does not restrict the visibility of messages. Anyone
> with access to the Twilio Message object, can view all messages

> \[!WARNING]
>
> While replying to customer messages please make sure the right team is
> selected in the *Send From* section before hitting the *Send* button

* In 1:1 messaging component select either the *Team* filter or *All* filter to view the incoming messages to the team's phone number
* Team Filters are visible to members of the team only. Other people can view the messages using the *All* message filter

![Dropdown menu with team filter options selected on Support.](https://docs-resources.prod.twilio.com/9d58a7bfda7883c584ef6b0fef7b1dac96c9b3bef801da829ac6af214fe219dd.png)

* You can select the team's view and incoming messages sent to team's phone number will be listed in Inbox
* Team's view is shown to the members of the team only and is a common view shared across the team

![Dropdown menu in Twilio Inbox with 'Support' selected.](https://docs-resources.prod.twilio.com/8f6239a8ba14868e02455db874a25cbcdf7f24e0ee3c72af31301a88c5d80265.png)
