AWS Builder Center

Weekend Agent Challenge: Goal Coach AI

Learn how I built an autonomous AI application on AWS that transforms goals into personalized daily coaching using Amazon Bedrock Agents, AWS Lambda, EventBridge, DynamoDB, and Amazon SNS.

Vision & What the Agent Does

One of the biggest challenges when working toward a goal is knowing what to do each day. Whether it is preparing for an AWS certification, learning a programming language, or building a personal project, many people start with motivation but lose momentum because they do not have a clear daily plan.
To help solve this problem, I built Goal Coach AI, an AI-powered daily coaching assistant that turns a long-term goal into personalized daily guidance.
The user simply describes their goal in natural language, for example:
"I want to pass the AWS Developer Associate in 2 months. I can study 1 hour per every day."
Instead of asking the user to manually create a study schedule, the application uses an Amazon Bedrock Agent to understand the request, extract important information such as the goal, deadline, and available study time, and save everything in Amazon DynamoDB.

Goal Coach AI Workflow

Step 1: User creates a goal
User creating a personal goal through the Goal Coach AI conversational interface.

Step 2: Goal successfully created
Goal Coach AI confirms that the goal has been saved and the daily coaching workflow is configured.

Step 3: Goal Displayed on the Overview Page
Goal Coach AI dashboard showing the active goal and the autonomous daily coaching workflow powered by AWS services.

Step 4: Daily Coaching Delivered
Personalized coaching email automatically generated and delivered by Goal Coach AI.

The autonomous part begins after the goal is created. Every morning, Amazon EventBridge automatically triggers a scheduled AWS Lambda function. The Lambda retrieves the stored goal, sends it to Amazon Nova to generate personalized coaching for the day, and finally delivers today's study plan through Amazon SNS email.
From that point on, the user does not need to open the application or click any buttons. The coaching continues automatically every day, making the learning process more consistent and helping users stay focused on their long-term goals.



How I Built It

Development Process

My goal was to build a complete serverless workflow where multiple AWS services work together to create an autonomous experience.
The frontend was built using Next.js, where users can create their goals through a simple interface. Requests are sent through Amazon API Gateway to an AWS Lambda function, which communicates with an Amazon Bedrock Agent.
Once the goal has been saved, another workflow takes over. A scheduled Amazon EventBridge rule automatically invokes a dedicated Morning Coach Lambda every morning. This Lambda retrieves the stored goal, asks Amazon Nova to generate personalized coaching, and sends the response to the user through Amazon SNS.

Key Design Decisions

One of my biggest design decisions was choosing a Bedrock Agent instead of directly calling a foundation model. The agent is responsible for understanding the user's natural language request and deciding which backend action should be executed. It invokes an Action Group Lambda, which stores the structured goal information inside DynamoDB.

Challenges Encountered and How I Overcame Them

The main challenge of this project was designing the conversational experience. During the early stages of development, the interface restarted after each interaction, making the workflow feel disconnected. To solve this, I redesigned the frontend logic to preserve the conversation state until the goal was successfully created. Instead of starting a new chat session, the application now displays a completion screen with two actions: view the goal on the Overview page or update the existing goal. This created a much smoother and more intuitive user experience.
One of the most interesting parts of the project was testing the scheduled workflow. Since waiting until the next morning for every test would slow development, I temporarily changed the EventBridge schedule to run every few minutes. This allowed me to verify that the automation worked correctly before switching back to the daily schedule.

Deployment

To simplify deployment, I used AWS CDK to define the infrastructure as code, making it easy to deploy and manage the entire application.



AWS Services Used / Architecture Overview

The application uses a fully serverless architecture.
Next.js
↓
Amazon API Gateway
↓
AWS Lambda
↓
Amazon Bedrock Agent
↓
Action Group Lambda
↓
Amazon DynamoDB
↓
Amazon EventBridge (Daily Trigger)
↓
Morning Coach Lambda
↓
Amazon Nova
↓
Amazon SNS
↓
Daily Coaching Email

AWS Services

  • Amazon Bedrock Agents - Understands natural language requests and invokes backend actions.
  • Amazon Nova - Generates personalized daily coaching.
  • AWS Lambda - Executes business logic and scheduled coaching.
  • Amazon API Gateway - Exposes the backend API.
  • Amazon DynamoDB - Stores user goals.
  • Amazon EventBridge - Automatically triggers the coaching workflow every morning.
  • Amazon SNS - Sends personalized coaching emails.
  • AWS CDK - Deploys the infrastructure as code.
  • AWS Amplify - Hosts the frontend application.
  • AWS IAM - Manages permissions between services.



What I Learned

This challenge gave me hands-on experience building an autonomous AI application instead of simply integrating a language model into a website.
I learned how Amazon Bedrock Agents can coordinate backend actions through Action Groups, how EventBridge enables reliable scheduled automation, and how AWS Lambda can orchestrate AI workflows across multiple services. I also gained practical experience using AWS CDK to deploy serverless infrastructure and configuring IAM permissions between services.
Most importantly, this project changed the way I think about AI applications. Instead of focusing only on prompting a model, I learned how to combine AI with event-driven architecture, cloud services, and automation to build a solution that continues working after the user walks away.



GitHub Repository

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