# Setting up bot for group chat control, SL viewer v2

To fully control the group chat (allow bot to listen, talk and eject spammers) you have to setup your group first. It's very easy if you're experienced, otherwise read our instructions below.

We will perform the following actions:


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

(We assume that bot is already in your group. If not yet, [click here](/doc/a8114518-9067-446a-b425-3420d457137c))

## 1. Create new role

 ![](https://nyc3.digitaloceanspaces.com/smartbots-docs/uploads/20adbcf8-a916-46eb-b77b-ad6944665550/b9ea6294-68a9-4c7e-8300-887bcf0ba229/V2-creating-notices-role.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=DO801JV4MUMY3YAEJCWC%2F20261113%2Fnyc3%2Fs3%2Faws4_request&X-Amz-Date=20261113T141500Z&X-Amz-Expires=86400&X-Amz-Signature=aca1a4afe7da9432ff63b71a7dd21bf1a26ac4cd66fc746e8ebb3e47ff42d90d&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject " =200x408")

We recommend creating a separate role named **SmartBots**.

Open your group details and proceed with the following steps:


1. Open **Roles** section, then **Roles** tab.
2. Click the **New Role** button.
3. Enter the Role Name "SmartBots"
4. Enter the Role Title "SmartBots Bot"
5. Check the following abilities:  
   \+ **Eject Members from this Group**  
   \+ **Join Group Chat**  
   \+ **Moderate Group Chat**
6. Click the **Save** button.

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

 ![](https://nyc3.digitaloceanspaces.com/smartbots-docs/uploads/20adbcf8-a916-46eb-b77b-ad6944665550/b32f8a08-90b1-4a84-86b0-29c3bfacfc18/V2-assigning-role.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=DO801JV4MUMY3YAEJCWC%2F20261113%2Fnyc3%2Fs3%2Faws4_request&X-Amz-Date=20261113T141500Z&X-Amz-Expires=86400&X-Amz-Signature=42fee906c6a7b8b206eaef57ccbfb943a1039f7bc752cd4094a5c4563500656c&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject " =200x397")

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


1. Switch to **Members** tab.
2. Type the bot's name to locate it.
3. Check the **"SmartBots"** role under **Assigned Roles**.
4. Click on **Save**.

Setup is complete, and your bot is able to control the group chat.

## 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.