> For the complete documentation index, see [llms.txt](https://mava.gitbook.io/mava-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mava.gitbook.io/mava-docs/getting-started/integration-setup/discord-setup/discord-public-channel-ai-setup.md).

# Discord Public Channel AI Setup

INclude trouble shooting guides

### Step 1: Connect your Discord & upload AI content

Before you can activate the public channel AI bot in Discord, complete these actions:

1. [Create a Mava account](/mava-docs/getting-started/create-a-free-account.md) and [integrate Discord with Mava](/mava-docs/getting-started/integration-setup/discord-setup/discord-ticket-setup.md)&#x20;
2. Add at least one source to your [AI knowledge base](/mava-docs/ai-support/ai-training.md).
3. Fill out your company name and description in your AI Settings&#x20;

### Step 2: Decide which public channel(s) Mava AI should respond in and set the correct Discord channel permissions

Mava's public Discord channel AI can operate in one more multiple Discord channels at once. When you've decided which channel(s) you want Mava AI to respond in, you will need to update the channel permissions in Discord for each channel you want it to operate in.&#x20;

Mava AI will need the following permissions:

* [ ] View Channel
* [ ] Send Messages
* [ ] Embed Links
* [ ] Manage Messages
* [ ] Read Message History
* [ ] Add Reactions

(Please note: Mava's public Discord channel AI requires different permissions compared with [Mava's Discord ticketing](/mava-docs/getting-started/integration-setup/discord-setup/discord-ticket-setup.md) bot).

To configure the channel permissions:

1. Right click on the channel(s) you want the Mava public channel AI to respond in and select 'Edit channel'

<figure><img src="/files/q0GWiXiNu1AGQZHrYNVB" alt="" width="375"><figcaption></figcaption></figure>

2. Select the ‘Permissions’ option from the top left menu.

<figure><img src="/files/YoxwfCBkJhlbO8sGcuXs" alt=""><figcaption></figcaption></figure>

3. Find the Mava Bot Member (with the coloured Mava logo) from in the ‘Roles/Members’ section and click on it.

<figure><img src="/files/Fytlk8HwTNdtJADy6fPK" alt=""><figcaption></figcaption></figure>

Once you have clicked on the ‘Mava’ role, you will be able to update the Permissions, under the ‘General Channel Permissions’ header. Double check it has all the correct permissions enabled:

* [ ] View Channels&#x20;
* [ ] Send Messages
* [ ] Embed Links
* [ ] Manage Messages
* [ ] Read Message History

<figure><img src="/files/R5bpKtn4j5mqOGvLW9Ri" alt=""><figcaption></figcaption></figure>

Save your changes after you've granted it those 5 permissions. If you want Mava public channel AI to operate in multiple public channels in your Discord, you can grant these permissions in more than one channel.&#x20;

### Step 3:  turn on Mava's public channel Discord AI

Go to the [AI settings page](https://dashboard.mava.app/dashboard/admin/ai/settings) within Mava and turn on the 'Public channel AI assistant option.

<figure><img src="/files/UoOqe7v1CoMoH7yjCQ7J" alt=""><figcaption></figcaption></figure>

### Step 4: Test the bot

You're now ready to check the bot is set up correctly. <br>

Within the Discord channel(s) you want the bot to respond in tag the bot with an @ and ask it a question related to something you've uploaded within your AI knowledge base.&#x20;

<figure><img src="/files/WZJeemQwD8NpW3Pla8Bf" alt=""><figcaption></figcaption></figure>

You won't have to @ mention the Mava bot each time, but the bot will always respond if it's mentioned so you can test if it's working.

If you're not getting a response and you've followed the steps above please reach out to Mava support.&#x20;

&#x20;


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://mava.gitbook.io/mava-docs/getting-started/integration-setup/discord-setup/discord-public-channel-ai-setup.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
