back to tutorials

Building an Agentic System with Reddit and Notion

Learn how to build a simple agentic system using Reddit and Notion. This tutorial guides you through setting up triggers, customizing abilities, and refining your bot's backstory to scout for intriguing ideas effectively.

In this tutorial we will construct a simple agentic system to scout for intriguing ideas from various data sources. We will use Reddit as our data source for this example, but you can add more sources as per your requirements.

Step 1: Understanding the Agentic System

At the top, we have the trigger. This is the event that prompts the agent. In this example it is set to trigger daily, but you can customize it to trigger based on specific schedules or events.

The agent has a backstory that describes its behavior. This includes instructions specifying what you want to achieve and how to create the specific output.

The agent's abilities are connected to a skillset. This is like a toolbox and can be shared between multiple agents.

In our skillset, the Reddit abilities allow us to fetch comments or content from a specific discussion. The Notion abilities allow us to search, create, update, and introspect the database. All these abilities are connected to the Notion API key.

Step 2: Creating a Blank Blueprint

We will start by creating a blank blueprint. The first step involves dragging all the needed abilities onto the canvas.

Step 2.1: Adding Reddit Abilities

  1. Get the feed for a subreddit.
  2. Get the contents for a specific article.

Step 2.2: Adding Notion Abilities

  1. Search Notion.
  2. Introspect the Notion database.
  3. List the database items.
  4. Fetch Notion database item.
  5. Add, delete, and update items.

Step 3: Customizing the Database ID

Customize the database ID as needed. Leave the property name blank; the agent will handle this by itself.

Step 4: Configuring the API Key

Get your API key from Notion by creating an app integration. Add this key to your agent setup.

Step 5: Building and Testing the Bot

After setting up the abilities and API key, it's time to build and test the bot.

Once built, you can test it by asking it to scan Reddit for articles related to a specific topic. For example, "Can you scan Reddit for articles related to AI agents and use-cases?"

Step 6: Customizing the Goal

Define a simple goal for your agent. For example, "Your goal is to build a list of real-world use cases for Agentic AI systems."

Step 7: Improving the Backstory

You can further improve the bot by refining its backstory. This will help it fetch more accurate information.

Step 8: Customizing the Trigger

The last step is to customize the trigger. Connect it to your bot and set it up to trigger as per your requirement (daily, weekly, etc.).

Once you have set up the trigger, you can invoke it, and the bot will start creating a list as per its abilities and backstory.

And there you have it! You have successfully built an agentic system to scout for intriguing ideas from Reddit. This system can be customized and extended to suit your specific requirements. Happy building!