Global AI Network
Agent Template v1.0.0

Daily Mood Tracker with AI Analysis & Reports

4+
Deployments
5m
Setup Time
Free
Pricing

Need custom configuration?

Our solution engineers can help you adapt this agent to your specific infrastructure and requirements.

Enterprise Grade Best Practices Production Optimized

INTEGRATED_MODULES

Gmail
Gmail
OpenAI
OpenAI
Step by Step

Setup Tutorial

mission-briefing.md

What This Agent Does

The Mood Tracking & AI Analysis Agent is a comprehensive emotional wellness automation system that captures your daily emotional states and transforms them into actionable insights. This intelligent workflow automatically logs your moods whenever you submit them, then generates personalized AI-powered analyses on a weekly and monthly basis—all without lifting a finger after the initial setup.

Key benefits and time savings:

  • Effortless mood logging: Submit your emotional state via webhook and it's instantly recorded in your spreadsheet
  • Automated insights: ChatGPT analyzes your mood patterns weekly and monthly, identifying trends you might miss
  • Scheduled summaries: Receive beautifully formatted email reports every week and month without manual intervention
  • Data-driven wellness: Track emotional patterns over time to understand what influences your mental state
  • Zero manual processing: The entire workflow runs on autopilot once configured

Target use cases:

  • Personal mental health tracking and self-awareness
  • Identifying mood triggers and patterns over time
  • Supporting therapy or counseling with objective data
  • Workplace wellness programs and employee engagement
  • Research on emotional patterns and lifestyle correlations

Who Is It For

This agent is perfect for individuals committed to emotional wellness who want to understand their mental health patterns without the burden of manual journaling. It's ideal for:

  • Mental health advocates seeking data-driven insights into their emotional wellbeing
  • Productivity enthusiasts who want to correlate mood with performance
  • Therapy clients looking to provide their therapist with comprehensive mood data
  • Wellness teams implementing emotional intelligence programs
  • Researchers studying mood patterns and behavioral correlations
  • Anyone using mood tracking as part of their personal development journey

No technical expertise required—the setup process is straightforward, and the workflow handles all the complexity behind the scenes.


Required Integrations

Spreadsheet (Google Sheets or Excel)

Why it's needed: Your spreadsheet serves as the central database for all mood entries. It stores raw mood data that feeds into your weekly and monthly analyses, creating a permanent record of your emotional journey.

Setup steps:

  1. Create a new spreadsheet in Google Sheets or Microsoft Excel
  2. Set up column headers in the first row:
    • Column A: timestamp
    • Column B: mood_level (1-10 scale)
    • Column C: mood_category (Happy, Sad, Anxious, Calm, etc.)
    • Column D: notes (optional context)
    • Column E: industry (optional categorization)
  3. Share the spreadsheet with your TaskAGI service account (Google Sheets) or ensure proper access permissions (Excel)
  4. Copy the spreadsheet ID from the URL (Google Sheets) or note the file path (Excel)

How to obtain credentials:

  • Google Sheets: Enable the Google Sheets API in Google Cloud Console and create a service account with Editor permissions
  • Excel: Ensure your Microsoft account has access and generate an app password if using Office 365

Configuration in TaskAGI:

  • Navigate to IntegrationsSpreadsheet
  • Select your spreadsheet provider (Google Sheets or Excel)
  • Paste your spreadsheet ID or file path
  • Authenticate with your account credentials
  • Test the connection by clicking Verify Connection

OpenAI (ChatGPT)

Why it's needed: OpenAI's GPT-4o model powers the intelligent analysis of your mood data. It identifies patterns, generates insights, and creates personalized summaries that transform raw mood entries into meaningful wellness intelligence.

Setup steps:

  1. Create an OpenAI account at platform.openai.com
  2. Navigate to API Keys in your account settings
  3. Click "Create new secret key" and copy the generated key immediately
  4. Store the key securely (you won't be able to view it again)
  5. Set up billing in your OpenAI account to ensure API access
  6. Note your organization ID (optional but recommended for tracking)

How to obtain API keys:

  • Visit your OpenAI dashboard at https://platform.openai.com/account/api-keys
  • Create a new API key with appropriate permissions
  • Set usage limits to control costs (recommended: $10-20/month for this workflow)

Configuration in TaskAGI:

  • Go to IntegrationsOpenAI
  • Paste your API key in the API Key field
  • Select GPT-4o as your model (already configured in the workflow)
  • Set Temperature to 0.7 for balanced creativity and consistency
  • Test the connection with a sample prompt

Gmail

Why it's needed: Gmail delivers your weekly and monthly mood summaries directly to your inbox, ensuring you never miss your personalized wellness insights. It's the communication channel between TaskAGI and you.

Setup steps:

  1. Use your existing Gmail account or create a new one for automation
  2. Enable 2-Step Verification in your Google Account settings
  3. Generate an App Password:
    • Go to myaccount.google.comSecurity
    • Select App passwords (appears only if 2-Step Verification is enabled)
    • Choose Mail and Windows Computer (or your device)
    • Copy the 16-character password provided
  4. Note your Gmail address (the email that will send reports)

How to obtain credentials:

  • App passwords are generated through your Google Account security settings
  • This is more secure than using your main password
  • Each app can have its own unique password

Configuration in TaskAGI:

  • Navigate to IntegrationsGmail
  • Enter your Gmail address in the "From" field
  • Paste your App Password (not your regular password)
  • Click Authenticate to verify the connection
  • Test by sending a sample email to yourself

Configuration Steps

Step 1: Configure the Webhook Trigger (Node 4)

The webhook trigger is your entry point for mood submissions.

Configuration:

  • Webhook URL: Copy the generated URL from the node
  • Method: POST (already set)
  • Expected payload format:
    {
      "mood_level": 7,
      "mood_category": "Happy",
      "notes": "Great day at work",
      "industry": "Technology"
    }
    

How to use: Submit mood data to this webhook URL from your mobile app, web form, or automation tool.


Step 2: Configure Set Mood Data (Node 5)

This function processes incoming webhook data and prepares it for storage.

Configuration:

  • Input: Receives webhook payload
  • Processing: Adds timestamp and validates mood_level (1-10 scale)
  • Output: Structured data object ready for spreadsheet insertion

No manual configuration needed—this node automatically processes the webhook data.


Step 3: Configure Insert Mood Row (Node 6)

This node stores your mood entry in the spreadsheet.

Configuration:

  • Spreadsheet: Select your configured spreadsheet
  • Sheet Name: Moods (create this sheet if it doesn't exist)
  • Columns to insert:
    • timestamp: Auto-generated
    • mood_level: From webhook
    • mood_category: From webhook
    • notes: From webhook
    • industry: From webhook

Verify: Check your spreadsheet to ensure new rows appear after testing.


Step 4: Configure Webhook Response (Node 7)

This sends confirmation back to the user after mood logging.

Configuration:

  • Response body (already set):
    {
      "message": "Emotional state saved. Come back tomorrow!"
    }
    
  • Status code: 200 (success)

No changes needed—this confirms successful mood logging.


Step 5: Configure Weekly Schedule (Node 9)

This trigger runs your weekly analysis every Monday morning.

Configuration:

  • Frequency: Weekly
  • Day: Monday
  • Time: 8:00 AM (adjust to your preference)
  • Timezone: Select your local timezone

Step 6: Configure List Rows (Weekly) (Node 10)

This retrieves all moods from the past 7 days.

Configuration:

  • Spreadsheet: Your mood tracking spreadsheet
  • Sheet Name: Moods
  • Filter: Rows where timestamp is within the last 7 days
  • Output: Array of mood entries for analysis

Step 7: Configure Aggregate (7d) (Node 11)

This function summarizes your weekly mood data.

Configuration:

  • Input: Weekly mood rows
  • Calculations:
    • Average mood level
    • Most frequent mood category
    • Mood variance (emotional stability)
    • Notable patterns or trends
  • Output: Summary object for ChatGPT analysis

Step 8: Configure ChatGPT Weekly Analysis (Node 12)

This generates your personalized weekly insights.

Configuration:

  • Model: GPT-4o (already set)
  • Prompt (already configured):
    Analyze these moods from the past 7 days and generate a brief, 
    encouraging wellness summary with 2-3 actionable insights.
    
  • Temperature: 0.7
  • Max tokens: 500

Output: Detailed weekly analysis stored in nodes.11.summary


Step 9: Configure Gmail Weekly (Node 13)

This sends your weekly summary via email.

Configuration:

  • To: Enter your email address
  • Subject: Weekly Mood Summary
  • Body (already set):
    Automatic summary:
    
    [[nodes.11.summary]]
    
    ---
    
    AI Analysis:
    [[nodes.12.summary]]
    
  • Send time: Immediately after analysis completes

Verify: Check your inbox for the weekly email every Monday morning.


Step 10: Configure Monthly Schedule (Node 15)

This trigger runs your monthly analysis on the first of each month.

Configuration:

  • Frequency: Monthly
  • Day: 1st of month
  • Time: 9:00 AM
  • Timezone: Your local timezone

Step 11: Configure List Rows (Monthly) (Node 16)

This retrieves all moods from the past 30 days.

Configuration:

  • Spreadsheet: Your mood tracking spreadsheet
  • Sheet Name: Moods
  • Filter: Rows where timestamp is within the last 30 days
  • Output: Array of monthly mood entries

Step 12: Configure Aggregate (~30d) (Node 17)

This function summarizes your monthly mood data.

Configuration:

  • Input: Monthly mood rows
  • Calculations:
    • Monthly average mood
    • Mood distribution by category
    • Week-over-week trends
    • Emotional resilience metrics
  • Output: Comprehensive monthly summary

Step 13: Configure ChatGPT Monthly Analysis (Node 18)

This generates your in-depth monthly wellness report.

Configuration:

  • Model: GPT-4o
  • Prompt (already configured):
    Analyze my moods from the past month. Summarize trends, 
    identify patterns, and suggest wellness strategies.
    
  • Temperature: 0.7
  • Max tokens: 800

Step 14: Configure Gmail Monthly (Node 19)

This sends your comprehensive monthly report.

Configuration:

  • To: Your email address
  • Subject: Monthly Mood Summary
  • Body (already set):
    Automatic summary:
    
    [[nodes.17.summary]]
    
    ---
    
    AI Analysis:
    [[nodes.18.summary]]
    

Testing Your Agent

Test 1: Webhook Mood Submission

Steps:

  1. Copy the webhook URL from Node 4
  2. Use a tool like Postman or cURL to send a test mood:
    curl -X POST https://your-webhook-url \
      -H "Content-Type: application/json" \
      -d '{
        "mood_level": 8,
        "mood_category": "Happy",
        "notes": "Testing the workflow",
        "industry": "Technology"
      }'
    
  3. Verify the response: {"message": "Emotional state saved. Come back tomorrow!"}

What to verify:

  • ✅ Webhook accepts POST requests
  • ✅ Response returns success message
  • ✅ No errors in the TaskAGI logs

Test 2: Spreadsheet Data Insertion

Steps:

  1. Wait 5-10 seconds after webhook submission
  2. Open your mood tracking spreadsheet
  3. Check the Moods sheet for a new row

What to verify:

  • ✅ New row appears with correct timestamp
  • ✅ Mood level, category, and notes are populated
  • ✅ Data matches your webhook submission

Test 3: Weekly Analysis (Manual Trigger)

Steps:

  1. Ensure you have at least 3-5 mood entries in your spreadsheet
  2. Manually trigger Node 9 (Schedule Weekly) using TaskAGI's test feature
  3. Monitor the workflow execution

What to verify:

  • ✅ Node 10 retrieves recent mood entries
  • ✅ Node 11 calculates aggregated statistics
  • ✅ Node 12 generates ChatGPT analysis
  • ✅ Node 13 sends email successfully

Expected results:

  • Email arrives in your inbox within 2 minutes
  • Email contains mood statistics and AI insights
  • No errors in workflow logs

Test 4: Monthly Analysis (Manual Trigger)

Steps:

  1. Manually trigger Node 15 (Schedule Monthly)
  2. Wait for workflow completion
  3. Check your email

What to verify:

  • ✅ Monthly email arrives with comprehensive analysis
  • ✅ Analysis includes 30-day trends and patterns
  • ✅ Actionable wellness recommendations are included

Success Indicators

Your agent is working perfectly when:

  • ✅ Mood submissions are logged instantly
  • ✅ Weekly emails arrive every Monday morning
  • ✅ Monthly emails arrive on the 1st of each month
  • ✅ Analyses are personalized and insightful
  • ✅ No errors appear in workflow logs
  • ✅ All integrations show "Connected" status

Congratulations! Your Mood Tracking & AI Analysis Agent is now live and working to support your emotional wellness journey.