# Setting up bot for group chat control, viewer v1

*(These instructions relate to SL v1 viewer, and all third-party viewers based on v1, e.g. Phoenix. For v2 viewer instructions, [see here](/doc/d461c621-3b44-4a74-a5fb-f5b0f0f4f3b3))*

To fully control the chat of your groupyou have to give the specific abilities to the bot. It's easy if you're experienced, otherwise you can follow our instructions below.

We will perform the following actions:


1. Create the "SmartBots" role in your group, with the necessary abilities.
2. Assign your bot to this role.

(We assume that bot is already in your group. If not yet, [click here](/doc/9e56a911-3f7b-47c7-80b9-eb7ff14b3b59))

## 1. Create a new "SmartBots" role

 ![](https://nyc3.digitaloceanspaces.com/smartbots-docs/uploads/20adbcf8-a916-46eb-b77b-ad6944665550/8c004e12-8682-49b8-8d95-2f14f00a3a1b/Assign_chat_permissions_to_bot.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=DO801JV4MUMY3YAEJCWC%2F20261113%2Fnyc3%2Fs3%2Faws4_request&X-Amz-Date=20261113T140000Z&X-Amz-Expires=86400&X-Amz-Signature=94da74b90cd86807fb1bb26cf222589d7449eae01221cbbe0b0977f865bbe7bb&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject " =472x603")

To 100% control the group chat and protect it from spammers, the abilities must be set:


1. Open group profile, **Members & Roles** => **Roles** tab.
2. Click on **Create New Role**
3. Set role name: **SmartBots**
4. Set role title: **SmartBots**
5. Scroll down "Allowed abilities" and check:  
   \+ **Eject Members from this Group**  
   \+ **Join Group Chat**  
   \+ **Moderate Group Chat**
6. Click **Apply** button.

## 2. Add bot to the "SmartBots" role

 ![](https://nyc3.digitaloceanspaces.com/smartbots-docs/uploads/20adbcf8-a916-46eb-b77b-ad6944665550/7d4bc919-4672-4065-a777-cc6fb96dc399/Assign_chat_role_to_bot.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=DO801JV4MUMY3YAEJCWC%2F20261113%2Fnyc3%2Fs3%2Faws4_request&X-Amz-Date=20261113T140000Z&X-Amz-Expires=86400&X-Amz-Signature=9343e4492236efe5b2beaa050ff8101112ff48b9d7d1822aff384ee57910c1eb&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject " =470x577")

Now let's add bot to the new **SmartBots** role.


1. Switch to **Members** tab
2. Locate the bot in members list.
3. Check the **"SmartBots"** role checkbox under **Assigned Roles**.
4. Click on **Apply**.

## Need more help?

If you experience any troubles, [contact our manager](http://www.smartbots2life.com/en/contacts.html) in-world. He will guide you through setup process.