AWS Builder Center
Weekend Agent Challenge: Campus Opportunity Scout – An Autonomous AI Agent That Finds Opportunities While You Sleep

Weekend Agent Challenge: Campus Opportunity Scout – An Autonomous AI Agent That Finds Opportunities While You Sleep

Campus Opportunity Scout is an automated agent powered by AWS serverless technology. Every day at dawn, AWS Lambda is called by Amazon Event Bridge Scheduler to gather opportunities from RSS feeds, eliminate duplicate opportunities using DynamoDB, summarize the opportunities by leveraging Amazon Bedrock Nova Lite, and then send a customized report via Amazon SNS.

Turning Ideas into Life | AI & Cloud Builder | Data Science Student

Weekend Agent Challenge: Campus Opportunity Scout

Being a student interested in cloud computing and data engineering, I often find myself visiting numerous websites daily looking for internships, hackathons, scholarships, AWS events, open-source projects, and learning opportunities. The issues here are the fragmented nature of the opportunities and the repetitiveness of the process of manually checking each of those websites every morning.
And I wanted to automate this process somehow. To make an application that could perform this job automatically, even while I sleep.
And this is how I ended up building Campus Opportunity Scout, an AI-powered autonomous agent that every morning wakes up on its own, checks multiple RSS feeds for new opportunities, filters out duplicates, summarizes everything using Amazon Bedrock, and sends me a daily report in the form of an email.
In contrast to the traditional applications which require a user input, my agent is completely event-driven. And once deployed, this agent doesn't require any further interactions with it. This agent runs every morning independently using AWS serverless services and the daily report is ready in my email before I even get out of bed.

Vision and Actions Taken by the Agent

The primary vision of the Campus Opportunity Scout project is to assist college students in finding good opportunities without putting much effort into their search.
Campus Opportunity Scout runs on Amazon Event Bridge Scheduler and executes an AWS Lambda function every day at 6:00 AM UTC. In order to start its actions, the agent receives the latest opportunities from multiple RSS feeds on cloud computing, AI, software development, internships, hackathons, scholarships, Microsoft developer blogs, AWS blogs, GitHub updates, and other educational sources.
After the information gathering step, the agent performs the following autonomous actions:
Downloads the latest opportunities from several RSS feeds. Deletes duplicated opportunities using Amazon DynamoDB. Sends the latest opportunities to Amazon Bedrock. Summarizes and classifies the received data using the Amazon Nova Lite model. Prepares a daily report highlighting the key opportunities. Sends the report via Amazon SNS to my e-mail address. Saves links of processed opportunities in DynamoDB to avoid duplicates.
Therefore, because of automation, there is no need for me to visit particular web pages regularly. Everything is being done in the background, and my personalized opportunity report is generated automatically.

How I Built It

The solution was expected to be serverless, inexpensive, and easily maintainable. AWS Free Tier services met all these requirements since I did not need to provision servers while building an autonomous workflow.
The application is coded in Python and deployed as an AWS Lambda function.
Since the agent should work independently, not relying on any manual triggers such as button clicks, I scheduled automatic invocation of the Lambda function using Amazon Event Bridge Scheduler.
The application fetches RSS feeds from multiple trusted sources and uses Python libraries to parse them. Every opportunity found is checked against the Amazon DynamoDB table called Opportunity Cache which acts like a cache storing links processed previously to make sure no duplicate opportunities are found.
Since the database should stay clean, I enabled Time To Live in the DynamoDB and configured it so that the records automatically expire within thirty days without any cleanup scripts.
Having gathered the unique opportunities, the Lambda function transfers them to Amazon Bedrock where the Amazon Nova Lite foundation model analyzes and summarizes them. The agent does not send dozens of raw links anymore but creates a readable report.
Finally, the created report is transferred via Amazon SNS, which sends the report directly to my email inbox.
I faced a number of difficulties throughout the whole development process.
The first difficulty concerned IAM permissions in AWS. My Lambda function could not invoke Amazon Bedrock since the execution role did not have the necessary permission – bedrock : Invoke Model. After analyzing CloudWatch logs, I changed the IAM policies to provide the proper permissions.
The second difficulty took place during Lambda’s attempt to send the report through Amazon SNS. This operation failed because of the lack of creation of the topic in Amazon SNS and my subscription confirmation to it.
Finally, the third difficulty was related to DynamoDB service. Since at the very beginning there was no necessary table in DynamoDB, my Lambda function could not work properly. However, after creating the Opportunity Cache table and enabling TTL, the duplicate detection algorithm started working successfully.

All these debugging activities helped me to get more insight into IAM permissions, serverless applications, AWS networking, and interactions between different AWS services. Solution Architecture Overview

The architecture utilizes the below AWS services:
AWS Service Function
Amazon Event Bridge Scheduler Executes the Lambda function on a daily basis, at 6:00 AM UTC each day.
AWS Lambda Runs the entire autonomous workflow.
Amazon Bedrock (Nova Lite) Creates AI-based summaries of the newly identified opportunities.
Amazon DynamoDB Stores the previous opportunities to avoid any duplicates.
Amazon SNS Emails the AI report to the specified address.
Amazon CloudWatch Stores the log information of the executions.
AWS IAM Manages permissions of AWS services.

flowchart TD

A[Amazon EventBridge Scheduler<br/>Runs Daily at 6:00 AM UTC]
A --> B[AWS Lambda<br/>Campus Opportunity Scout]
B --> C[Fetch RSS Feeds<br/>AWS Blog<br/>GitHub<br/>Microsoft Dev Blogs<br/>Hackathons<br/>Scholarships]
C --> D{New Opportunity?}
D -->|Already Processed| E[Skip]
D -->|New Opportunity| F[Amazon DynamoDB<br/>Store Link & Cache]
F --> G[Amazon Bedrock<br/>Nova Lite]
G --> H[Generate AI Summary<br/>Categorize & Prioritize]
H --> I[Amazon SNS]
I --> J[Email Daily Report]
J --> K[Student Inbox]

What I Have Learned

This particular challenge gave me practical experience in developing an AI application autonomously using AWS services.
The following are some of the things that I have learned from this:
Designing event-driven applications using Amazon Event Bridge Scheduler. Developing serverless applications using AWS Lambda. Implementing Generative AI using Amazon Bedrock and the Amazon Nova Lite model. Using DynamoDB as a lightweight caching system with automatic TTL. Setting up IAM roles and permissions for several AWS services. Notification using Amazon SNS. Debugging distributed applications using Amazon CloudWatch logs.
But more importantly, I learned that several AWS services could be used to build an automated AI workflow that runs entirely independently without the need for any user interaction at all.

Future Enhancements

I am planning on enhancing the Campus Opportunity Scout application by incorporating the following features:
Personalized recommendations based on user interest. AI-based prioritization of opportunities. Slack and Microsoft Teams notifications. Web portal for viewing previous reports. Daily PDF report generation. Multi-user authentication with Amazon Cognito. Semantic search using Amazon OpenSearch.

Link to App or Repository

Conclusion

With the Weekend Agent Challenge, I was inspired to create an app that provides utility independent of continual user interaction. The Campus Opportunity Scout does exactly that.
Every day, the agent wakes up automatically, finds new opportunities, removes duplicates, makes use of Amazon Bedrock to create an intelligent summary, and finally sends the generated report to my inbox. Using Amazon Event Bridge Scheduler, AWS Lambda, Amazon Bedrock, DynamoDB, Amazon SNS, CloudWatch, and IAM, I was able to make a serverless AI agent that works regardless of whether I am around my computer or not.
Apart from improving on my skills on AWS and Generative AI technologies, this project was the perfect example of how event-driven and autonomous agents can be utilized to solve problems without much hassle.
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article