I’ve built a discord component for the dash framework that has had a few recent updates as to keep it up to date with the dash 4 releases. I’ve expanded the component out to support webhooks and discord api endpoints for bots which could be configured in your discord server to act as agents.
WidgetBot
dash-widgetbot integrates Discord chat into your Dash applications using a pure Python hook-based architecture — no React build required.
- DiscordCrate
— Floating chat button (the one in the bottom-right corner of this page)
- DiscordWidget
— Inline iframe embed for placing chat anywhere in your layout
- Slash Commands
— AI-powered /ai, /ask, /gen, /status commands
- Webhook API
— Send messages to Discord from Python
examples:
and:
You can extend the functionality and features further with a heafty 150/month subscription, which gives you a dedicated shard to host your discord and upload images, documents and other enterprise features from the widgetbot. Their is also a free hosting option without image uploads just a slimmer more simple discord chat.
https://pip-install-python.com/pip/dash_widgetbot/llms.txt
I’ve also created my own chat components from scratch in dash directly using: https://www.dash-extensions.com/components/SSE
and socketio New websocket component: DashSocketIO in previous dash 3 builds.



