DiscordAgent
, SlackAgent
, and TelegramAgent
, here so that you can use an agentic application to send and retrieve messages from messaging platforms.
Agent | Send Tool | Retrieve Tool |
---|---|---|
DiscordAgent | DiscordSendTool | DiscordRetrieveTool |
SlackAgent | SlackSendTool | SlackRetrieveTool |
TelegramAgent | TelegramSendTool | TelegramRetrieveTool |
Agent | System Message guidance |
---|---|
DiscordAgent | 2,000 character limit, Markdown, bold/italic/code, use emojis |
SlackAgent | 40,000 character limit, Markdown, bold/italic/code, emojis, notification formats |
TelegramAgent | 4,096 character limit, HTML, mentions and emojis |
has_writing_instructions
to False
when creating the agent.
Another important consideration is the execution of these tools. In AG2 the tool execution is typically handled by a separate agent that will follow the agent in the conversation (unless its an agent in a swarm whereby tools are executed automatically). So, you will need to register the tools with another agent for execution. See the demo below for how to do this.
commsagent-discord
extra:
DiscordAgent
using the tools so you now how to construct your own communication agent. For Slack and Telegram, we’ll use SlackAgent
and TelegramAgent
.
DiscordAgent
using tools.
experimental
namespace, indicating that we have tested the functionality but their interface may change.
We’d love for you to try them but please use them with that in mind. Let us know how you go with them!