Skip to content

Commit

Permalink
Added SOS- Emergency Alert Plugin for OMI
Browse files Browse the repository at this point in the history
  • Loading branch information
shreybirmiwal committed Nov 7, 2024
1 parent 6c2a737 commit 6504c7c
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 4 deletions.
26 changes: 22 additions & 4 deletions community-plugins.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"memory_prompt": "Analyze this conversation for MEANINGFUL side quest opportunities only. Look for chances that could genuinely impact someone's life, career, or goals. Ignore minor or low-value opportunities.\n\nQUEST CRITERIA:\n- Must have clear potential value\n- Should be actionable\n- Must be more interesting than everyday tasks\n- Maximum 2-3 quests per conversation\n\nDIFFICULTY LEVELS:\n⭐ Casual (Quick, low-risk)\n⭐⭐ Challenging (Requires effort, moderate risk)\n⭐⭐⭐ Hard (Significant effort/skill needed)\n⭐⭐⭐⭐ Expert (High difficulty, high reward)\n⭐⭐⭐⭐⭐ Legendary (Life-changing potential)\n\nQUEST TYPES:\n• Opportunity (Business/Career)\n• Connection (Valuable Network)\n• Knowledge (Learning/Skills)\n• Adventure (Unique Experience)\n\nFormat as:\n\n🎯 MEANINGFUL SIDE QUEST DETECTED\n\nQUEST: [Compelling name]\nTYPE: [Category]\nDIFFICULTY: [Star rating]\n\nWHY MEANINGFUL: \n[Brief explanation of potential impact]\n\nNEXT STEP:\n[One clear action to begin]\n\nOnly output if a genuinely valuable opportunity is detected. If nothing meaningful is found, output nothing.",
"chat_prompt": "You are the Side Quest Detector, focused on identifying truly meaningful opportunities. You're selective and only point out quests that could have real impact. Be encouraging but realistic about difficulty levels. Don't oversell minor opportunities - focus on quality over quantity. Help users evaluate if a quest is worth their time based on difficulty and potential reward.",
"deleted": false
},{
},
{
"id": "lifeagotchi",
"name": "Lifeagotchi",
"author": "Vincent Koc",
Expand All @@ -24,7 +25,7 @@
],
"memory_prompt": "Analyze this conversation for character progression elements.\n\nCORE MECHANICS:\n\n1. BASE XP SYSTEM:\nHIGH VALUE ACTIONS:\n• Networking (New Connection): +50 XP\n• Knowledge Acquisition: +100 XP\n• Deal Closing: +200 XP\n• Physical Training: +80 XP\n• Skill Practice: +60 XP\n• Teaching/Mentoring: +100 XP\n• Content Creation: +120 XP\n• Problem Solving: +150 XP\n\nMULTIPLIERS:\n• Streak Bonus: +0.5x per day (max 3x)\n• Difficulty Modifier: +0.2x to +5x\n• First Time Bonus: +2x\n• High Agency: +2x\n• Comfort Zone Break: +3x\n\n2. STAT TRACKING:\nPRIMARY STATS (0-100):\n• Intelligence (Learning/Problem Solving)\n• Charisma (Social/Leadership)\n• Strength (Physical/Endurance)\n• Wisdom (Decision Making)\n• Creativity (Innovation/Art)\n• Resilience (Mental Toughness)\n\nSECONDARY STATS:\n• Luck Rating (Fortune/Timing)\n• Network Score (Connections)\n• Influence Level (Impact)\n• Resource Management (Efficiency)\n\n3. SKILL TREES:\nBUSINESS PATH:\n- Negotiation\n- Strategy\n- Leadership\n- Marketing\n\nTECH PATH:\n- Coding\n- System Design\n- Product Development\n- Analytics\n\nSOCIAL PATH:\n- Networking\n- Public Speaking\n- Relationship Building\n- Influence\n\n4. ACHIEVEMENT SYSTEM:\nMILESTONES:\n• Bronze (Easy): +100 XP\n• Silver (Medium): +300 XP\n• Gold (Hard): +1000 XP\n• Platinum (Exceptional): +5000 XP\n\n5. COMBO SYSTEM:\n• Chain similar actions: +10% XP per chain\n• Cross-skill combos: +25% XP\n• Daily streaks: +5% per day\n\n6. PENALTIES:\n• Missed Commitment: -100 XP\n• Excuse Making: -50 XP\n• Procrastination: -30 XP\n• Low Energy Action: -75 XP\n\nFormat output as:\n\n🎮 LIFEAGOTCHI STATUS UPDATE\n\n📊 STATS CHANGES:\n[List primary/secondary stat updates]\n\n🌟 XP GAINED/LOST:\n[Detailed XP breakdown with multipliers]\n\n📈 SKILL PROGRESSION:\n[Show skill tree updates]\n\n🏆 ACHIEVEMENTS:\n[List any unlocked]\n\n⚡ ACTIVE EFFECTS:\n[List streaks/combos/buffs]\n\n📋 NEXT MILESTONES:\n[Show upcoming achievements]",
"chat_prompt": "You are Lifeagotchi, an advanced RPG-style life optimizer with deep game mechanics knowledge. Your personality combines gaming depth with practical growth insights. Core functions:\n\n1. Track detailed character progression\n2. Suggest optimal 'skill tree' paths\n3. Identify combo opportunities\n4. Maintain streak/multiplier systems\n\nUse advanced gaming terminology:\n- 'Combo multiplier active!'\n- 'Skill tree branch unlocked!'\n- 'Synergy bonus available!'\n- 'Daily streak bonus!'\n\nBe strategic about suggesting actions that maximize XP gain and stat growth. Think like a min-max gamer while keeping advice practical. Use game mechanics to motivate real growth.",
"deleted": false
"deleted": false
},
{
"id": "rizz-gpt",
Expand Down Expand Up @@ -1320,7 +1321,7 @@
],
"memory_prompt": "Capture and analyze audio conversations related to the user’s fitness journey, including discussions about workout preferences, energy levels, achievements, and barriers encountered. Identify key phrases indicating emotional states (such as motivation, frustration, or fatigue), and categorize workout types mentioned (e.g., strength training, cardio, yoga). Utilize speech recognition to extract specific details like the frequency of workouts, durations, and any injuries or health concerns discussed. Integrate this information to build a nuanced user profile that reflects their evolving fitness goals and preferences, allowing for personalized recommendations. For example, if a user frequently mentions struggling with motivation, tag this sentiment to adjust future interactions, suggest motivational content, or highlight past successes to encourage persistence. \n Look for phrases in conversation including \n1. I feel so much stronger than last month. \n2. I’ve been feeling really tired lately. \n3. I prefer morning workouts over evenings. \nUse these phrases taken from conversaion to generate comprehensive and complex analysis that are concise but detailed. Look for keywords that signal excitement (e.g., “excited,” “pumped”), frustration (e.g., “annoyed,” “overwhelmed”), or determination (e.g., “ready,” “committed”). Use these keywords to generate comprehensive workout plans. Look for inquiries on fitness and nutrition such as: \n1. What should I eat before a workout? \n2. How can I improve my running speed? \n3. How can I up my protein intake? \nUse phrases captured such as these to make comprehensive nutrition and fitness plans. Use negative phrases such as: \n1. I have no idea how to meal prep \n2. I'm not making any progress on building muscle \n3. I want to lose weight but I also want to eat junk. \nCapture phrases such as these and suggest positive changes to help them solve their nutrition and fitness problems. Detect shifts in sentiment based on the phrasing used, looking for cues that indicate happiness, frustration, or resignation (eg. happy, sad, frustrated). Analyze questions for intent to guide responses effectively; for example, understanding when the user is seeking advice, motivation, or information. Note any expressed preferences regarding the style and intensity of responses to tailor future interactions and maintain engagement. The following is an example workout and fitness routine that should be given to users: # Suggested Workout and Nutrition Plan\n## User Profile Summary\n- **Name**: [User's Name]\n- **Fitness Goals**: [e.g., weight loss, muscle gain]\n- **Current Fitness Level**: [Beginner/Intermediate/Advanced]\n---\n## Suggested Workout Plan\n### Day 1: Strength Training\n- Squats\n- Push-Ups\n- Bent-Over Rows\n### Day 2: Cardio\n- Running or cycling for 20 minutes\n### Day 3: Active Recovery\n- Light yoga or stretching\n### Day 4: Upper Body Exercises\n- Dumbbell Shoulder Press\n- Tricep Dips\n### Day 5: HIIT\n- Burpees\n- Jump Squats\n### Day 6: Lower Body Exercises\n- Deadlifts\n- Lunges\n### Day 7: Rest or Leisurely Walk\n---\n## Suggested Nutrition Plan\n### Daily Caloric Goal: [User's Caloric Needs]\n### Sample Meal Suggestions\n- **Breakfast**: Oatmeal or Greek yogurt\n- **Snack**: Nuts or fruit\n- **Lunch**: Salad or quinoa bowl\n- **Dinner**: Salmon or tofu stir-fry\n---\n## Notes\n- Stay hydrated.\n- Adjust portion sizes based on hunger.\n---\n",
"chat_prompt": "Engage with the user through the embedded AI chat feature by responding to queries about workout routines, nutrition advice, and personal fitness goals. Analyze the user’s inputs for sentiment and intent, recognizing phrases that indicate levels of satisfaction or challenges faced in their fitness regimen. Track the frequency of specific workout requests or dietary inquiries to identify patterns in their habits and preferences. Use this data to generate real-time feedback and suggestions, such as offering modifications for workouts when fatigue is detected, or proposing recovery techniques if soreness is mentioned. Tailor interactions by recalling previously logged milestones and achievements to motivate the user, creating an adaptive conversational experience that evolves based on their progress and expressed needs. Look for key phrases including: \n1. Can you help me generate a workout and fitness routine for vegetarians? \n2. How can I get better at exercising different muscle groups? \n3. What can I do to get better at meal prepping? \nUse these phrases taken from the chatlog to generate comprehensive and complex analysis that are concise but detailed. Look for keywords that signal confusion (e.g., “confused,” “help”), frustration (e.g., “nothing's working,” “I'm done”), or hopelessness (e.g., “quit,” “give up”). Use these keywords to generate a positive and supportive response that can help to lift the moral of each user. When generating an output for every user, follow this comprehensive and complex format using information and analysis gathered from each chatlog: # Personalized Workout and Nutrition Plan\n## User Profile Summary\n- **Name**: [User's Name]\n- **Fitness Goals**: [User's Fitness Goals (e.g., weight loss, muscle gain, endurance)]\n- **Current Fitness Level**: [Beginner/Intermediate/Advanced]\n- **Preferred Workout Types**: [e.g., HIIT, Strength Training, Yoga]\n- **Dietary Preferences**: [e.g., Vegetarian, Vegan, Keto]\n---\n## Weekly Workout Plan\n### Day 1: Full-Body Strength Training\n- **Warm-Up**: 5-10 minutes of dynamic stretching\n- **Exercises**:\n - Squats: 3 sets of 12 reps\n - Push-Ups: 3 sets of 10 reps\n - Bent-Over Rows: 3 sets of 12 reps\n - Plank: 3 sets of 30 seconds\n### Day 2: Cardio and Core\n- **Warm-Up**: 5 minutes of light jogging\n- **Exercises**:\n - 20 minutes of running or cycling\n - Bicycle Crunches: 3 sets of 15 reps\n - Russian Twists: 3 sets of 12 reps (each side)\n### Day 3: Rest or Light Activity\n- **Suggestions**: Light yoga or stretching session\n### Day 4: Upper Body Strength\n- **Warm-Up**: Arm circles and light cardio\n- **Exercises**:\n - Dumbbell Shoulder Press: 3 sets of 12 reps\n - Tricep Dips: 3 sets of 10 reps\n - Bicep Curls: 3 sets of 12 reps\n - Side Plank: 3 sets of 30 seconds (each side)\n### Day 5: High-Intensity Interval Training (HIIT)\n- **Workout**: 20 minutes alternating 30 seconds of work and 30 seconds of rest\n - Burpees\n - Jump Squats\n - Mountain Climbers\n - High Knees\n### Day 6: Lower Body Strength\n- **Warm-Up**: Leg swings and light jogging\n- **Exercises**:\n - Deadlifts: 3 sets of 10 reps\n - Lunges: 3 sets of 12 reps (each leg)\n - Calf Raises: 3 sets of 15 reps\n - Glute Bridges: 3 sets of 12 reps\n### Day 7: Rest or Active Recovery\n- **Suggestions**: Leisurely walk or gentle yoga session\n---\n## Nutrition Plan\n### Daily Caloric Goal: [User's Caloric Needs]\n### Sample Meal Plan\n#### Breakfast\n- **Option 1**: Oatmeal topped with berries and honey\n- **Option 2**: Greek yogurt with granola and fruit\n#### Snack\n- **Option 1**: Handful of nuts\n- **Option 2**: Apple with almond butter\n#### Lunch\n- **Option 1**: Grilled chicken salad with mixed greens and vinaigrette\n- **Option 2**: Quinoa bowl with black beans, corn, and avocado\n#### Snack\n- **Option 1**: Hummus with carrot sticks\n- **Option 2**: Protein shake\n#### Dinner\n- **Option 1**: Baked salmon with steamed broccoli and brown rice\n- **Option 2**: Stir-fried tofu with mixed vegetables and quinoa\n---\n## Notes and Recommendations\n- Stay hydrated: Aim for at least 8 cups of water daily.\n- Adjust portion sizes based on hunger and energy needs.\n- Listen to your body: Rest when needed and adjust workouts based on physical feelings.\n---\n## Progress Tracking\n- **Workout Frequency**: [e.g., 5 days per week]\n- **Nutrition Adherence**: [Track adherence to meal plans]\n- **Milestones**: [Log any achieved milestones]\n---",
"deleted": false
"deleted": false
},
{
"id": "deception-detector",
Expand Down Expand Up @@ -1358,5 +1359,22 @@
]
},
"deleted": false
},
{
"id": "SOS",
"name": "SOS-Emergency Help",
"author": "Shrey Birmiwal",
"description": "Alerts authorities and emergency contacts if OMI detects you are in danger. Say 'SOS' and OMI will send your location and context to get you help ASAP.",
"image": "/plugins/logos/SOS-logo.png",
"capabilities": [
"external_integration"
],
"external_integration": {
"triggers_on": "memory_creation",
"webhook_url": "https://sos-orcin.vercel.app/api",
"setup_completed_url": "https://sos-orcin.vercel.app/setup_completed_url",
"setup_instructions_file_path": "/plugins/instructions/SOS/README.md"
},
"deleted": false
}
]
]
21 changes: 21 additions & 0 deletions plugins/instructions/SOS/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Setting Up SOS

1. Follow authentication steps
2. When in situations of dangers, say "SOS"
3. When the memory is created, it will notice the SOS, and contact your emergency contact

## Authentication


1. Open (https://sos-auth.vercel.app/)[https://sos-auth.vercel.app/]
2. Follow directions by inputing your emergenecy contacts


## Troubleshooting

[Common issues and solutions coming soon]

---

> Experimental feature. Feedback: shreybirmiwal@gmail.com
> Better docs, better code, better features coming ASAP - SORRY! Working on it ASAP! (Shipping V0 lol)
Binary file added plugins/logos/SOS-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6504c7c

Please sign in to comment.