AIdeas: VARBS - Agentic Assistant for Social Scheduling

AIdeas: VARBS - Agentic Assistant for Social Scheduling

We have thousands of digital friends, yet organizing a simple coffee takes days of texting. I leveraged AWS and React Native to build a new kind of social network. This agentic based social platform eliminates the logistical tax of friendship and turns digital intent into physical meetups seamlessly.

App Category: Daily Life Enhancement




The Idea:

VARBS is an "agentic" social media platform designed to be the antidote to the modern screen-time trap. Traditional social media optimizes for endless scrolling; VARBS optimizes for real-world connection. It operates on a simple premise: use generative AI to completely eliminate the "logistical tax" of friendship.



My Vision:

A React Native mobile application powered by an AWS backend, where every user is equipped with a personal AI Agent driven by Amazon Bedrock.
Instead of users manually cross-referencing calendars and sending "when are you free?" texts that inevitably kill group plans, VARBS handles it autonomously. If a user wants to grab coffee with a friend, their Agent pings the friend's Agent. Behind the scenes, the Agents run a secure, privacy-first API handshake to negotiate the meetup.
Crucially, I engineered a Predictive Mood Engine and a Shadow Calendar. The AI doesn't just look for empty calendar slots; it uses deterministic math to calculate a user's "Social Battery" based on their daily routines (e.g., an 8-hour work block heavily drains the battery). The Agents only propose meetups when both users actually have the schedule and the emotional bandwidth to connect, converting digital intent into physical meetups seamlessly.
The AI Agent doesn’t operate in a vacuum; it thrives within a fully integrated social ecosystem.
  • Events Discovery: Users can browse local happenings, which seamlessly provides the Agent with a rich database of real-world activities to propose for future meetups.
  • Mood-Filtered Feed: We kept the familiar ease of vertical scrolling but upgraded it with a protective AI layer. Content is dynamically filtered to match your current mental state, and the Agent actively monitors for "doom-scrolling," gently checking in if you've been on the feed too long. Every interaction naturally trains the Agent on your nuanced likes and dislikes.
  • Seamless Chat: A frictionless messaging interface that not only keeps you connected with your core circle but helps you organically discover new friends who share your specific interests.



Why this matters:

The Human Impact: We are living through a globally recognized social drought, paradoxically fueled by the very apps designed to connect us. We have thousands of digital "friends," yet organizing a simple dinner takes three days of group-chat negotiations, leading to scheduling fatigue, ghosting, and isolation. Furthermore, saying "no" to a friend because of a depressive episode or social burnout carries immense emotional guilt.
VARBS fundamentally disrupts the Social Networking category by shifting the AI paradigm. Right now, companies are using GenAI to create fake AI companions for humans to talk to. VARBS uses AI to get humans talking to each other again.
It matters because it acts as a highly empathetic executive assistant for your social life. It protects your privacy, and if you are feeling burnt out, your Agent politely declines invites on your behalf due to a "scheduling conflict," saving you the guilt of rejection. It proactively suggests low-energy activities when it detects you are in a rut. Ultimately, VARBS matters because it leverages cutting-edge cloud infrastructure to maximize a user's social health, rather than their screen time.



How I built this:

AWS Service
Usage
Amazon Cognito
Manages secure user authentication and registration flows. It also utilizes Identity Pools to grant temporary, scoped IAM credentials.
AWS AppSync
Acts as the centralized GraphQL API gateway, routing frontend requests to Lambda and PostgreSQL while strictly preventing client over-fetching. It also manages the WebSocket connections for real-time chat messaging and UI state synchronization.
AWS Lambda
Provides serverless compute for backend microservices, most notably the monolithic draftAgenticMeetup orchestration pipeline. It executes the complex temporal math, geospatial intersections, and database routing logic without requiring provisioned servers.
Amazon Bedrock
Serves as the AI brain of the application, utilizing Claude 3 Haiku for natural language processing and synthesis. It deconstructs messy human schedules into structured database schemas and generates empathetic, natural-language explanations for the AI's scheduling decisions.
Amazon RDS (PostgreSQL)
The primary relational database handling complex table joins for the social graph, user routines, and event metadata. It serves as the absolute source of truth for all spatial, temporal, and relational data required by the AI engine.
Amazon S3
Provides highly scalable object storage for all heavy user-generated content, such as event thumbnails, social feed posts, and profile pictures.
AWS Location Service
Powers the application's geospatial awareness and address autocomplete features using the HERE Technologies data index. It allows the backend to calculate geographic midpoints, apply 15km bounding boxes, and resolve precise Point of Interest (POI) coordinates securely.
AWS Amplify
Provides the Infrastructure-as-Code (IaC) definitions and the React Native client libraries to seamlessly connect the frontend to the AWS cloud.
Amazon VPC (Virtual Private Cloud)
Provides the isolated, secure network foundation for the application's backend infrastructure. It logically isolates the PostgreSQL (RDS) database into private subnets, ensuring no direct public access to sensitive user data.
AWS Internet Gateway & NAT Gateway
Facilitates secure outbound internet access for the Lambda microservices deployed within the VPC. This routing topology allows the orchestrator functions to securely query the private RDS database while simultaneously reaching out to public APIs like Amazon Bedrock and AWS Location Service.
AWS EC2
Provisioned an EC2 Bastion Host in the public subnet to establish a secure, SSH-tunneled connection from my local development environment to the isolated PostgreSQL RDS instance, ensuring zero public exposure of the data tier.

The Onboarding Process

The onboarding architecture of VARBS was designed to capture highly complex relational, geospatial, and temporal data with as little friction as possible. Here is the technical breakdown of how a user goes from a guest to a fully modeled entity in the system.

Phase 1: Identity & Security (AWS Cognito)
The foundation of the app’s security relies on Amazon Cognito User Pools. Instead of rolling a custom authentication backend, the React Native client interfaces directly with Cognito to handle user registration, password policies, and email/OTP verification.
Once authenticated, Cognito issues JSON Web Tokens (JWTs). These tokens are the master keys for the architecture. AWS AppSync (the GraphQL API layer) is configured to use Cognito User Pools as its primary authorization mode, and Identity Pools are its authentication method. This ensures that every subsequent API call is securely scoped to the logged-in user.
Phase 2: The Database Sync (The Post-Confirmation Bridge)
This architecture uses an event-driven sync. When a user successfully verifies their email, Cognito fires a Post Confirmation Lambda Trigger. This serverless function takes the user's unique Cognito sub (Subject UUID) and inserts a new row into the primary PostgreSQL users table, mapping the cognito_user_id to a relational primary key.
Phase 3: The Geospatial & Interest Profile
With the database record created, the client prompts the user for the two foundational pillars of the draftAgenticMeetup engine: Location and Interests.
  • The Base Coordinates: Instead of asking for a typed address, the app captures the user's base location (e.g., their home neighborhood) and saves the exact Latitude and Longitude to the users table. This is the exact coordinate pair the AI will later use to calculate the geographic midpoint between friends.
  • The Tags (Interests): The user selects their interests (e.g., "Coffee", "Gaming", "Nightclub"). These are saved as an array in the tags column. Later, the AI Matchmaker will run mathematical intersections on these arrays to automatically decide what two friends should do when they hang out.
Phase 4: AI-Powered Schedule Ingestion
The final step is understanding when the user is actually free. Traditional apps solve this by forcing users through a horrific UX of tapping 15-minute blocks on a calendar grid to block out their work hours, gym times, and sleep schedules. I wanted to eliminate that friction entirely using Natural Language Processing.
Instead of UI grids, I built a Natural Language Onboarding pipeline. A user simply selects their job type (eg. 9-5), their sleep schedule, and the rest of their repeatable activities can be typed out into a messy prompt like “I hit the gym on Tuesdays and Thursdays at 7 AM”.
The Technical Execution:
  1. The AppSync Mutation: The React Native client sends this raw string to the backend via a GraphQL mutation.
  1. The NLP Deconstruction (Bedrock): A Lambda function takes this string and sends it to Amazon Bedrock (Claude 3 Haiku) with a strict system prompt instructing it to act as a deterministic data-extraction engine. Bedrock parses the unstructured text and deconstructs it into a structured JSON array of "Repeated Activities."
The Database Mapping: The Lambda takes this JSON payload and maps it directly into SQL INSERT statements for the user_routines PostgreSQL table. The AI normalizes "Monday to Friday" into boolean day flags or specific ENUMs, standardizes the start and end times to the user's local timezone, and categorizes the activity.

Agentic Meetup Architecture

The goal was to create a frictionless "Agentic Meetup" flow. Instead of forcing users through a 5-step form to pick a time, place, and activity, they can simply type: "Let's grab dinner with Preolan next week" and the app does the heavy lifting.

The core architecture relies on AWS AppSync (GraphQL) to handle the request from the React Native client. This triggers a monolithic AWS Lambda orchestration function (draftAgenticMeetup.ts) that coordinates eight distinct Lambda Functions:
1. extractMeetupDetails: The NLP Parser
  • The Job: This function is entirely responsible for talking to Amazon Bedrock (Claude 3 Haiku) for the first time.
  • The Approach: It takes the raw user prompt, injects it into a strict system prompt, and forces the LLM to return a parsed JSON object containing targetNames, activity, location, and timeframe. It operates with a low AI temperature to guarantee deterministic JSON output, stripping out all conversational fluff.
2. resolveTargetUsers: The Entity Resolver
  • The Job: Maps human-readable usernames to system UUIDs.
  • The Approach: It runs a case-insensitive PostgreSQL query against the users table. If the prompt said "preolannaidu", this function ensures the rest of the script has the exact UUID needed to run database joins for their calendars and preferences.
3. determineActivityType: The Interest Matchmaker
  • The Job: Decides what the users are actually going to do if they didn't specify it.
  • The Approach: It pulls the tags array for the initiator and the targets, standardizes them (lowercasing and trimming), and runs an intersection algorithm. If it finds shared tags, it counts the frequencies and returns the top match (e.g., "Coffee"). If no match is found, it safely triggers a default fallback.
4. determineVenue: The Location Strategist
  • The Job: Figures out the exact geographic coordinates of the meetup.
  • The Approach: This function implements a multi-tier strategy. First, it runs an INNER JOIN on the liked_venues table to see if the users share a favorite spot. If that fails, it queries the users table for their base coordinates and mathematically calculates the exact geographic midpoint. It invokes the searchVenues helper function, passing the calculated geographic midpoint and activity category as arguments.
5. searchVenues: The Map Engine
  • The Job: Translates math into a physical building.
  • The Approach: This function wraps the AWS Location Service SDK. It takes the midpoint coordinates from determineVenue, draws the 15km FilterBBox, and queries the HERE Technologies map index to find the highest-rated venue matching the activity.
6. generateTop5Slots: The Overlap & Battery Engine
  • The Job: This is the most computationally heavy function in the file. It is responsible for flattening the calendar arrays and running the overlap math.
  • The Approach: It queries the user_routines and calendar tables to find mutual free time. But more importantly, this is where the battery-projection lives. It calculates the projectedBattery (Fatigue Heuristic) by looking at the density of activity blocks preceding the free time. It scores each overlapping block and returns an array of the 5 mathematically and psychologically optimal time slots, sorted by confidenceScore.
7. determineTimeSlot: The Cultural Context Filter
  • The Job: Acts as the bouncer for the time slots generated above.
  • The Approach: It takes the array from generateTop5Slots and applies human logic to it. This is the function that physically blocks the AI from scheduling a "Dinner" at 8:00 AM. It evaluates the time-of-day against the activity type and either selects the perfect slot or applies a safe fallback (like forcing an evening hour if the calendar is too chaotic).
8. generateAgentReasoning: The Synthesizer
  • The Job: Translates the cold math back into human empathy.
  • The Approach: It takes the finalized venue, the chosen time slot, the shared tags, and the user's original prompt, and fires a second call to Amazon Bedrock. With a higher temperature setting, it asks Claude to generate a friendly, natural chat bubble explaining why the AI made the decisions it did.

Social Media Ecosystem

VARBS’s social layer isn't just a feature; it's the foundation of our Agentic system. It operates with two primary goals: maximizing daily user engagement and generating a massive knowledgebase of interaction data. This continuous feedback loop directly trains the agentic system, ensuring the AI's scheduling decisions become smarter and more contextual with every post and RSVP.

The Event Page
1. Home Page: The primary feed implements a highly optimized, cursor-based pagination architecture via AWS AppSync. The initial GraphQL query fetches a constrained payload (limit: 10) of event metadata from PostgreSQL (RDS), alongside resolved Amazon S3 media URLs. As the user navigates the React Native FlatList, an onEndReached event listener detects the scroll threshold and dispatches a subsequent query utilizing the nextToken. The backend resolves this cursor to fetch the next sequential batch, appending the immutable data payload to the local React state without triggering layout shifts or duplicate renders.
2. Event Detail Screen: Navigating to this view passes the unique event ID to execute a deep-nested GraphQL query, hydrating the UI with granular event data. The RSVP functionality triggers an AppSync mutation to update the event_rsvps junction table in PostgreSQL. To guarantee zero perceived latency for the end user, the frontend implements an optimistic UI update, immediately mutating the local React state to reflect the new RSVP status while the network request resolves asynchronously in the background.
3. Event Creation Pipeline: This interface orchestrates a multi-service data ingestion flow. For spatial data, the address input is wired to a debounced GraphQL proxy layer that queries the Amazon Location Service, returning standardized autocomplete suggestions and coordinate payloads. Media handling leverages AWS Amplify Storage, utilizing temporary, IAM-scoped Cognito credentials to upload binary image assets directly to Amazon S3, bypassing the backend compute layer. Upon form submission, a final GraphQL mutation commits the structured event metadata and the resolved S3 object key to the RDS PostgreSQL database.
Social Feed
1. Social Feed: The Social Feed mirrors the cursor-based GraphQL pagination (nextToken) used in the Events Feed, optimizing network payloads and preventing duplicate rendering. The UI employs full-bleed media rendering, utilizing React Native's layout system to dynamically scale images and video assets to fill the device viewport. To strictly manage memory allocation and preserve battery life, the FlatList component implements viewability threshold tracking (onViewableItemsChanged). This ensures video components are mounted and actively playing only when they intersect the visible screen area, automatically pausing the media stream the moment it scrolls out of view.
2. Post Creation: The post authoring pipeline reuses the Amplify Storage and direct-to-S3 upload architecture established in the Event Creation module. To enhance the user experience, the system implements a "What You See Is What You Get" staging state. Before initiating any network or compute requests, the React Native client loads the selected local media asset's URI into memory and renders a high-fidelity preview. This allows the user to validate the exact viewport framing locally before the client executes the AppSync GraphQL mutation and the S3 PUT request.
3. User Profile & The Social Graph: Navigating to a profile passes the target user's UUID to a localized AppSync query to hydrate the view. The GraphQL resolvers enforce strict data privacy, dynamically filtering the returned arrays for authored posts and confirmed RSVPs based on the target user's visibility preferences in PostgreSQL.
Crucially, this page serves as the entry point for the application's social graph via the "Sync" action. Initiating a sync writes a pending relational edge to the database. Upon acceptance, a mutation updates this state to accepted, officially expanding the user's connections pool. This confirmed relational link serves as a strict authorization prerequisite, enabling the opening of WebSockets-based direct messages and allowing the draftAgenticMeetup to arrange meetups between the users.
Chat Screen
1. Chat List Screen: The Inbox View acts as the central communication hub, actively querying the PostgreSQL conversations table via AWS AppSync to aggregate all active messaging threads. To maximize user engagement, the system dynamically cross-references this active chat list against the user's confirmed social graph (connections pool). If a mutually accepted connection lacks an instantiated conversation record, the React Native client dynamically injects a zero-state thread block into the UI. This "Say Hi" prompt acts as an optimistic UI placeholder, intelligently deferring the actual database INSERT operation until the user sends their first payload.
Crucially, this screen also persists a dedicated, pinned thread for the "VARBS Chat." This serves a dual purpose: it acts as a continuous natural language ingestion pipeline for the AI to dynamically refine the user's semantic profile over time via scheduled check-ins, while simultaneously functioning as the command-line interface for the draftAgenticMeetup orchestration requests.
2. Active Chat Screen: Opening a conversation passes the conversation_id to trigger a paginated GraphQL query for historical messages, while instantly hydrating the navigation header for context. To guarantee a fluid, zero-latency experience, the chat engine utilizes Optimistic UI.Instantly rendering outbound messages on the screen before the AWS backend confirms the database mutation.
Agent Screen
1. Pending Requests & Agent-Assisted Creation: The Requests view functions as a stateful dashboard, querying the PostgreSQL database via AWS AppSync to render an active queue of all pending meetup proposals. From this interface, users can initialize a new scheduling workflow. The creation screen leverages the core AI engine using a "Human-in-the-Loop" (HITL) design pattern. Instead of the AI autonomously sending invites blindly, the agent acts as a co-pilot. It pre-computes the optimal variables (venue, time, activity) and auto-populates the React Native form inputs. Crucially, these values are loaded into editable controlled components, empowering the user to manually override the AI's mathematical suggestions before executing the final GraphQL mutation to dispatch the request to their connection.
2. Calendar Rendering & Temporal Density Mapping: The Schedule interface implements a dual-mode (daily and monthly) calendar architecture to visualize the user's temporal constraints. The React Native frontend aggregates data from both the recurring user_routines table and specific one-off event records. For the daily view, this data is rendered as a chronological timeline of blocked activities. For the monthly macro-view, rendering individual events would overwhelm the device's memory and clutter the UI. Instead, the system utilizes a temporal density mapping strategy (similar to a heatmap). By calculating the total duration of blocked hours per day, the UI dynamically styles the calendar grid to visually indicate the "busyness" load of each specific day at a glance.
My Profile Screen
1. Centralized User State & Metadata Management: This interface functions as the primary command center for the application's user state. It exposes a direct, two-way data binding to the underlying PostgreSQL users table, allowing the client to view and modify their core metadata.
2. Relational Data Aggregation (Posts & Events): Beyond basic profile configuration, this screen serves as a unified aggregation hub for the user's broader footprint within the app's social graph. The React Native frontend receives and renders a consolidated payload containing all authored content from the posts table, natively interleaved with the user's confirmed engagements and associations from the events and event_rsvps tables. This delivers a comprehensive, single-pane-of-glass view of the user's entire platform activity.



Demo

Onboarding









Agentic Meetup Request




Events




Social Feed




Agent Page




Chats



My Profile






What I learnt:

Kiro

As a DevOps Engineer, I spend my days deep in AWS infrastructure, but I had never attempted to build a mobile application from scratch. Partnering with Kiro to build this app has been incredibly eye-opening; it gave me a profound appreciation for the underlying complexity of modern social platforms.
As an AI pair programmer, Kiro was largely fantastic. Its ability to navigate a rapidly expanding codebase, understand the existing architecture, and seamlessly integrate new features was genuinely impressive. This was first experience using Spec based processing and it was an absolute game changer. Once I laid down the foundation of my app idea, Kiro fully understood that and continously referenced it to ensure much more accurate results than general vibe coding.
However, the tool isn't without its rough edges. The automated testing and pentesting logic struggled significantly once the project evolved into a full-stack monorepo. Kiro often got confused about which testing frameworks to apply, leading to a 90% failure rate on automated test runs. Furthermore, its debugging approach could use some work. It suffered from a sort of 'confirmation bias' and latched onto the very first plausible solution it found and stubbornly convincing itself the issue was resolved. These could be a usage issues from my part so I'm interested to know if there's ways for me to improve my usage of Kiro.
It's pros definitely out way the cons, so I will be adding Kiro to my development process for future projects.

AWS and React

The seamless integration between AWS Amplify, AppSync, and React Native was an absolute lifesaver. This trio drastically accelerated the mobile development lifecycle, abstracting away the heavy lifting of connecting the frontend directly to the cloud. Additionally, this was my first time working with Amazon Cognito. It performed flawlessly, not just for standard user management, but for securely provisioning temporary IAM credentials to access other AWS resources. Initially, I intended to use Aurora as my database engine but since Kiro did all the heavy lifting, the cheaper RDS option became a much better fit.
Integrating Amazon Bedrock was surprisingly straightforward, cementing my belief that it will be a game-changer for building future agentic applications. However, the biggest hidden gem for me was Amazon Location Service. It's a highly versatile tool, though I quickly discovered a crucial regional nuance: I had to swap the default Esri data provider for the 'HERE' data index, as HERE offered significantly better mapping and POI accuracy for South African locations.
Perhaps the most mind-blowing takeaway from this entire build is the cost. I managed to architect and deploy this entire full-stack, AI-driven application and I have barely made a dent in my AWS Free Tier. It completely changed my perspective on just how generous and powerful the AWS serverless ecosystem can be for solo developers.








Next Steps:

I am incredibly eager to read your feedback and comments on this article. Building VARBS from the ground up has been a phenomenal journey, but I know there is always room for iteration. I welcome the community's insights on how the app's architecture and core features can be refined. Diving into mobile development has been an amazing experience, and I'm excited to continue learning and pushing my boundaries in this space.
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