# 1. Initial Setup

### 1) Add the Bot to Your Server

Invite the bot using the Discord OAuth2 link through the official website and grant all the necessary permissions,

When you add the bot, it automatically: Starts a 5-day free trial with AI features enabled, Sends you a welcome message

### 2) Confirm the bot is online

In your server, type: `/ping` If the bot replies, it’s running correctly.

### 3) Make sure you can use admin commands

Most setup commands are admin-only. You can use them if: You are a Server Administrator, or Your role was added as an admin role for the bot

If you’re an admin and still can’t use commands, ask a server admin to run: `/admin_role action:add role:@YourRole`

### 4) Decide how the bot should respond (Auto vs Select)

The bot has two modes:

* Auto mode\*(recommended): the bot automatically replies when it detects a question.
* Select mode: the bot only replies when you mention it with `@`.

Set mode: `/mode mode_type:auto` `/mode mode_type:select`

Check current mode: `/mode_status`

### 5) Restrict the bot to one channel

If you want the bot to answer only in a specific channel:

Set the channel: `/select_channel channel:#your-channel`

Remove restriction (bot can answer in all channels again): `/select_channel`

Check current setting: `/channel_status`

### 6) Add your first knowledge so the bot can answer correctly

The bot answers only from your server’s Knowledge Base. If you haven’t added anything yet, it will say it doesn’t have info.

Start training: Use `/kb_add` to upload a document (recommended), or Use `/kb_manual_add` to add a single entry manually


---

# 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://ansari-labs.gitbook.io/ansari-labs/products/ai-powered-assistant/setup-guide/1.-initial-setup.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.
