Imagine a software engineer creating marketing strategies or a program manager designing tech apps—sounds unconventional, right? This is the new reality of the modern workspace, where multitasking is revolutionized with AI agents! Powered by advanced large language models (LLMs), AI agents are evolving from simple assistants to autonomous contributors. They are managing projects, making decisions, and enhancing productivity. Now, with the rise of no-code agent development platforms, these agents are accessible to everyone—content creators, marketers, developers, data scientists or students – irrespective of their technical knowledge. These platforms enable everyone to build and deploy agents through simple prompts. In this blog, we’ll show you how to build a Daily Email Newsletter Agent to automate your daily dose of news using Relevance.ai. Let’s dive in!
As per Relevance.ai, agents are AI team members that can work alone, or as part of a team of other agents and real people. They have defined roles and responsibilities and can choose how best to get their work done. These agents work based on the domain-specific knowledge provided, using the prompts and tools you equip them with.
Here are some of the features that make building agents with Relevance.ai super easy:
Along with these, each registered user gets 100 credits every day to build, iterate, and use AI Agents on the Relevance.ai platform.
Let’s get started with the Relevance.ai platform:
Once done, you will reach the homepage of Relevance.ai.
Now let’s try building an agent! On the homepage of Relevance.ai, you will find many pre-built agent templates that we can clone or used directly.
If you scroll down further, you will find many pre-existing tools that can be used directly by our agents, as well.
Lets try using a pre existing agent template – City Event Guide.
Here’s the layout of the Relevance.ai homepage.
In the left side panel, under the Workforce section:
Then you have the Monitor section. Here you have the Activity Center and Analytics that provide you with the details on the performance of your agent. Both these features are available only with the Business plan.
After this, under the Account section, you have various integrations where you can connect various accounts like Gmail, LinkedIn, Hubspot, etc. to use within your agent. In fact you will need to use one such integration for the Daily Newsletter Agent that we are going to build in this blog.
Problem Statement:
All of us get several daily or weekly newsletters based on our interests in our inboxes. But it can be pretty time consuming to go through each one of them to find the information that is the most relevant for you.
For example, I love to read about latest happenings in the field of Generative AI and about all the latest developments from Analytics Vidhya’s blogs.
It would be great if I could get a daily update on the latest blogs published by Analytics Vidhya and a rundown of latest happenings in the field of Generative AI right within by mail box everyday.
Solution:
An agent which sends a daily email newsletter summarizing the latest Blogs from AV’s website and GenAI news from the web.
Implementation:
You need three things to build this newsletter
Let’s start with the first one: Integrating Email!
Your Gmail account is now integrated into your Relevance.ai account!
Now let’s head to the second task: Creating the Tool.
Once this much is set, you can create this tool in another 4 steps. First of all you need to add inputs, which are like variables. Then you will add the pre-built tools that will work with those variables. After this, you will add an LLM to work with the output generated from those tools. Finally, you will need to set up an email chain using which you can share the newsletter.
Let’s continue building out Newsletter Agent.
Under the Inputs section, you will create the three inputs that our agent would need, which are:
To add the first input:
To add the second input:
And to add the last input:
Now, head to the Steps section. This is where you define the logic of our tools by chaining together LLMs, APIs, or other tools that you may need.
Now let’s set up the email chain.
Congratulations, you have done most of the heavy lifting. Hit on Run tool and within a few minutes you will receive an email in your inbox.
While the task we wanted to achieve has been completed. We can add other functionalities like scheduling and chatting with this tool. Lets do that in the final step!
Now, follow these steps to build this agent:
This is where you add details like the agent’s name and description. It’s for your reference and would not go to the agent’s design.
For the Newsletter Agent
In the left side panel, you will find the Connected Resources section. Under this, you have 3 options: abilities, tools, and sub-agents.
Adding Tools for the Newsletter Agent:
For this tool:
Depending upon the use of the agent you are designing, you can modify these settings.
In the left side panel, you will find the Agent instructions section. Under this section, you have two options: Core Instructions and Flow Builder.
While the flow builder isn’t required, it can help your agent assign priorities more efficiently in case it’s performing a complex task involving multiple steps.
For the Newsletter Agent, under Core Instructions, you will add a detail outlining the introduction and the tasks for the agent. Type the following prompt in the box:
”You are an AV’s Daily Newsletter agent. Use Newsletter Tool** to create it.
Then type forward slash (/) and in the pop-up that appears, click on Newsletter Tool.
Once done, at the bottom left side corner, click on confirm and continue.
Your agent is now ready!
Once your agent is created, you will be directed to the agent’s home page.
In the center, at the bottom of the screen, add the task for the agent. Let’s add, Send a newsletter to <<add an email address to which you wish to send the newsletter>>, then click on the button at the corner of this box.
Now, wait for a couple of seconds! Your agent is working and soon you will receive your daily newsletter in the mentioned email address.
Now that your task is done, you can chat further with the agent to get customised information. Feel free to type prompts like “Give 500 word summary of the first blog” or “Give names of 10 latest blogs”.
Here is a quick review of what you did. you created a tool to help us extract content from the website, get the latest news from Google, used LLM to create an email, and then set up a tool to send that email. Finally, you designed an agent to provide an infrastructure where you can truly interact with the tools and links that you are using.
Click on the Share button at the top right corner of your screen to get the shareable link, embedding the link for your agent. Use it and share it with your colleagues.
You can try the agent we built: here
Relevance.ai provides a powerful, no-code platform for building AI agents, making it accessible to anyone without technical expertise. The platform’s intuitive interface comes with features like pre-built templates, and multi-agent support, and facilitates easy integration of external tools. This enables fast prototyping, and scalability, ensuring that users can quickly build, iterate, and deploy agents.
You can learn all about AI agents and how to build them in our Agentic AI Pioneer Program that is tailored for learners of all levels, irrespective of their technical or or coding knowledge.
A. Relevance.ai is a no code based ai agent development platform. It provides several pre built tools, templates that allow individuals and businesses to design complex AI agents for their use.
A. No Code AI agent development is a process involving no coding-based tools and platforms for designing and developing AI Agents for individual and business use.
A. The no-code AI agent development platforms are easy and intuitive platforms for designing AI agents. They allow us to make complex agents using simple prompts, pre-built tools, and templates.
A. Some of the popular no-code agent development platforms are Wordware, CrewAI Studio, Vertex AI Studio, etc.
A. An AI agent is an artificial intelligence system that utilizes a large language model (LLM) as its core computational engine to exhibit capabilities beyond text generation, including conducting conversations, completing tasks, reasoning, and demonstrating some degree of autonomous behavior.
A. Yes, we can integrate WhatsApp into our agents and use it to trigger our agents using Relevance.ai. Besides this Relevance.ai also provides integrations like Gmail, Outlook, HubSpot, etc – helping users to build agents for actual use cases.
A. Yes, we can monitor our agents using Relevance.ai. From the home page, we can head to the “Analytics” and “Activity Center” to check more details regarding our agent’s use. Although these are paid features and hence can’t be accessed in the free version.