DEV Community

Cover image for Get News Updates automatically posted to your Discord using Supercog
Emmanuel Onwuegbusi
Emmanuel Onwuegbusi

Posted on

Get News Updates automatically posted to your Discord using Supercog

In this article, we will learn to get News updates on any topic automatically posted to your Discord channel using Supercog.

Supercog is an advanced AI platform that transforms productivity by connecting directly to your business systems and automating tasks. It enables real-time data analysis, generates insights, and empowers teams to create customizable AI solutions tailored to their needs.

Outline

  • Get your Discord Channel Webhook URL
  • Sign up on Supercog
  • Create an agent
  • Add Tools
  • Customize the Agent Instructions
  • Enter Query
  • Conclusion

You can watch the video tutorial:

Get your Discord Channel Webhook URL

First, you'll need to create a webhook for the specific channel you want to post to.

In Discord:

  • Go to the channel settings (Edit Channel) :

discord channel settings

  • Click on "Integrations"

  • Create "New Webhook" or use the existing webhook

  • Copy the webhook URL

discord webhook

Sign up on Supercog

Go to Supercog https://app.supercog.ai/register/ and register:

supercog sign up page

Create an agent

Agents are systems that use LLMs as reasoning engines to determine which actions to take and the inputs to pass them.

Click the Morning News Report agent tab to start chatting quickly or Create a New Agent for the task you want to accomplish. Click on the Morning News Report agent for this article.

supercog Morning News Report agent

Add Tools

Tools extend the agent's capabilities by allowing it to perform specific actions, like accessing an external database, etc

We already have most of the tools we need to get News updates in the Morning News Report agent. We are using Tavily Web Search and Web Browsing (Scale SERP) to perform searches and get the News. Text to Speech tool to transform text into high-quality, real-time speech with minimal latency.

We are going to add Discord Tool to be able to send the News to your Discord channel.
Add Discord Tool

  • Click on the Add Tool button

supercog add tool

  • Click the Connectors dropdown

  • Scroll down to the Discord tool

supercog agent tools

  • Click on the "+" button to add the Discord tool. You will see the New Connection: Discord modal. Enter the Discord Webhook URL you created earlier then click Save:

discord new connection modal

Customize the Agent Instructions

If you want, you can customize the agent instructions to fit your needs. In my case, I will leave it as is since I want to get news about AI.

Enter Query

You can now enter your query to get the News update on any topic and post to your Discord channel. Go to the chat input box and enter your query.

For me, I entered the following text:

supercog chatbox

and I got the following output:

supercog news update

I can then enter the following text in the chatbox to send the News update to my discord channel:

supercog post to discord

And I get the following output in my discord channel:

supercog message to discord

Awesome🎉

Conclusion

You can easily do the following and more using Supercog:

Integrate seamlessly with various business systems and popular SaaS applications
help to automate repetitive tasks
Do advanced data analysis
report generation
file data processing etc

Top comments (0)