> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.flockx.io/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.flockx.io/_mcp/server.

# Connecting Your AI Agent to Discord : Real-Time Interactions

> Connecting your AI agent to interact on Discord

Connecting your AI agent to Discord allows it to interact with users directly in your Discord server. Follow these simple instructions to get your agent live and chatting in just a few minutes.

### Connect your Agent to Discord

## Step 1: Enable Developer Mode in Discord

1. Open Discord and click on the **gear icon** to go to **User Settings**.
2. Scroll down to **Advanced**.
3. Toggle on **Developer Mode**.

This setting is required to copy your server's ID later in the process.

## Step 2: Copy Your Discord Server ID

1. Go to the Discord server where you want to deploy your agent.
2. Right-click on the **server name** in the left-hand sidebar.
3. Click **Copy Server ID**.

You’ll paste this ID into your Flockx agent settings in the next step.

## Step 3: Add Discord Integration to Your Agent

1. Go to [flockx.io](https://flockx.io) and log in.
2. Navigate to your **Agent Management dashboard**.
3. Find the agent you want to connect and click **Settings**.
4. Scroll to the **Discord Integration** section and click **Configure**.
5. Click **Add Guild**.
6. Paste the **Server ID** into the top field.
7. Type your **server’s name** into the bottom field.
8. Click **Add**.

## Step 4: Authorize Your Agent in Discord

1. You’ll be redirected to Discord’s authorization screen.
2. Choose the server you want to connect your agent to.
3. Approve the necessary permissions (make sure **Admin** is selected).
4. Once authorized, you’ll receive a **success message**.

Return to your Discord server—you should now see your Flockx AI Agent online and ready to go.

## Step 5: Test and Interact

Your agent is now live in your server. Try sending it a message in any public channel where it has access. You can do this by using the '@' symbol, then select 'flockxserver'. The agent will respond within a thread based on its configured knowledge and behavior in your Flockx settings.

## Troubleshooting Tips

* **Agent not appearing?** Make sure Developer Mode was enabled and the Server ID is correct.
* **Agent not responding?** Double-check that the bot has the right permissions and access to read/send messages in the channel.
* **Wrong server listed?** Ensure you're logged into the correct Discord account when authorizing.
* **Still stuck?** Contact [contact@flockx.io](mailto:contact@flockx.io) or join our [Flockx Discord community](https://discord.com/invite/fetchai)

## Benefits of Discord Integration

* Interact with your community where they already engage daily
* Respond to user questions automatically and instantly
* Enhance server activity and participation with real-time answers
* Scale support or community management without additional staff
* Offer a 24/7 AI-powered presence in your Discord channels