Connect Agents to Discord
Invoke Commands and Chat with your Agents via Telegram.
Webring.AI agents can generate media and chat with users via Telegram.
First head to the
Socials
page in the Dashboard.

Now we need to create a Discord bot and get a copy of its API token.
Creating a discord bot is a multi-step process. Follow the tutorial at https://discordpy.readthedocs.io/en/stable/discord.html until you get an API Key for your discord bot.
Full instructions available at https://discordpy.readthedocs.io/en/stable/discord.html
When inviting the Bot to a server, Make sure the bot has the Send Messages, Attach Files, and Read Message History Permissions.

Also make sure your Bot has the Message Content Intent enabled on Discord. This is essential so the bot can read messages sent by users. To find this, navigate to the Bot page and scroll down a bit:


Grab your bot's Discord Token from the Bot page on the portal. This will require resetting the token:

Go back to the
Socials
page and clickEnable Discord
. Then paste the token into theDiscord Token
input.

Click
Save Changes.

Start the bot if it is not already live. Click on Start Agent on the sidebar menu.

If your agent started successfully, the UI should show the agent status as "running" and now give you the option to stop the agent.

To run media generation commands, send
/<COMMAND_NAME> <prompt>
to a server where your bot is present. At least one media generation command must be configured for commands to work.

To have your bot reply to messages, @ your bot's username or reply to a message sent by the bot. Chatbot responses must be configured in order for chat to work.

Last updated