Discord Bot Setup
The ReportFlow Discord bot is the silent engine that monitors your clockout channel 24/7. It requires no interaction from chatters—they simply post messages in their natural style, and the bot handles data extraction, fraud validation, and commission calculation behind the scenes.
Step 1
Invite the bot using the one-click install link.
Step 2
Grant Read Messages and Add Reactions permissions.
Step 3
Select your clockout channel and verify the bot is active.
How the bot works
ReportFlow uses Discord's Gateway API with Message Content Intent enabled. When a message is posted in a monitored channel, the bot receives the full text—including lp/ls/lt markers, model names, and dollar amounts. It immediately pushes the raw message onto a BullMQ job queue running in the background. A separate worker process picks up the job, parses the data using AI extraction, validates sales totals match declared amounts, checks for duplicate shift markers, calculates commissions based on your configured rules, and updates the dashboard—all within seconds.
Chatters do not need to learn any commands or interact with the bot directly. They clock out exactly as they did before; the only visible sign of processing is a small reaction emoji (✅ for success, ⚠️ for warnings) added by the bot after the message is processed.
Inviting the bot to your server
In your ReportFlow dashboard, navigate to Settings → Discord and click the Add to Discord button. This opens Discord's OAuth authorize screen with the minimum required permissions pre-selected: Read Messages, Send Messages (for reaction confirmations), and Add Reactions.
If you prefer more granular control, you can generate a custom invite URL from the Discord Developer Portal using your own application. Set the bot scope along with guilds and messages.read. Make sure to also enable the Message Content Intent under Bot → Privileged Gateway Intents—without this the bot cannot read message text.
Required permissions checklist
- Read Message History — Needed to access clockout messages in the channel.
- View Channels — The bot must be able to see the clockout channel.
- Add Reactions — Used for silent confirmation of processed messages.
- Send Messages (optional) — Only required if you enable bot alerts for fraud warnings.
You can restrict the bot to a single channel via role permissions in Discord; it will only process messages where it has access. This is recommended if you have multiple channels and only want clockouts captured in a specific one.
Verifying the bot is active
After inviting the bot, return to ReportFlow and select the server from the dropdown. If the connection is healthy you will see a green "Connected" badge next to the server name. Post a test clockout message in your configured channel—the bot should add a ✅ reaction within a few seconds.
If the bot does not respond, check the following: (1) Message Content Intent is enabled in the Developer Portal, (2) the bot role has permission to view the channel, and (3) ReportFlow is linked to the correct server (you can verify this in the Discord Servers list in the dashboard).
Next steps
- Understand the exact message format in Clockout Message Format.
- Configure which channel the bot monitors in Channel Configuration.
- Securely link user accounts using Discord OAuth Linking.