AACFlow

Discord Connector

Sync channel messages from Discord into your knowledge base

The Discord connector synchronizes messages from a Discord channel into your knowledge base. Each channel is stored as a single document with messages formatted chronologically.

Authentication

API Key — Bot token. Requires a Discord bot with:

  • Read Messages permission
  • Read Message History permission

Configuration

FieldTypeRequiredDescription
Channel IDInputYesThe Discord channel ID
Max MessagesInputNoMaximum messages to sync (default: 1000)

How It Works

  1. Channel Resolution — Validates the channel ID via Discord REST API v10
  2. Message Fetching — Fetches messages newest-first using before-based pagination (100 per batch)
  3. Reversal — Messages are reversed to chronological order
  4. Formatting — System messages are filtered out; user messages formatted as [timestamp] username: content

Document Format

[2024-01-15T10:30:00.000Z] username: message text
[2024-01-15T10:31:00.000Z] otheruser: reply text
...

Metadata Tags

TagTypeDescription
Channel NameTextThe Discord channel name
Message CountNumberNumber of synced messages
Last ActivityDateTimestamp of the most recent message

Limitations

  • One document per channel (all messages in one document)
  • Bot must be a member of the server and channel
  • Message type 0 (DEFAULT) and 19 (REPLY) only

On this page

Start building today
Trusted by over 100,000 builders.
The SaaS platform to build AI agents and run your agentic workforce.
Get started