User Awareness #8

Closed
opened 2025-05-11 13:53:38 -04:00 by milo · 1 comment
Owner

User Awareness v1 — Feature Scope

🧠 Core Concept

Delta becomes aware of user identities and interactions over time, creating personalized responses and enabling future automation.


📦 Automatic Profile System

On Every @Delta Mention or Reply:

  • Check if user exists in user_profiles.json
  • If not:
    • Create a new profile using Discord data
    • Fields: name, display_name, first_seen, last_seen, last_message, interactions = 1, pronouns = null, avatar_url
  • If yes:
    • Increment interactions
    • Update last_seen and last_message

On !setpronouns Command:

  • Create profile if it doesn't exist
  • Set or update pronouns field

🧾 Sample user_profiles.json Entry

{
  "113456789012345678": {
    "name": "milo",
    "display_name": "Milo",
    "first_seen": "2025-05-14T20:30:00",
    "last_seen": "2025-05-14T21:50:00",
    "last_message": "2025-05-14T21:50:00",
    "interactions": 6,
    "pronouns": "he/him",
    "avatar_url": "https://cdn.discordapp.com/avatars/..."
  }
}

🧍 User Profile JSON Fields (per user)

  • user_id: Discord user ID
  • name: Current display name
  • avatar: Avatar URL at time of last interaction
  • pronouns: (Optional) User-supplied pronouns
  • interactions: Total number of times the user interacted with Delta
  • first_seen: ISO timestamp of the first mention or reply
  • last_seen: ISO timestamp of the most recent interaction
  • custom_prompt: (Optional) Mini prompt to customize Delta's tone when addressing this user

🧠 Feature: Custom Prompt Injection

If custom_prompt exists and server settings allow it, Delta will inject it into her system prompt during replies to that user. Example:

## ✅ User Awareness v1 — Feature Scope ### 🧠 Core Concept Delta becomes aware of user identities and interactions over time, creating personalized responses and enabling future automation. --- ### 📦 Automatic Profile System #### On Every `@Delta` Mention or Reply: - [x] Check if user exists in `user_profiles.json` - [x] If not: - Create a new profile using Discord data - Fields: `name`, `display_name`, `first_seen`, `last_seen`, `last_message`, `interactions = 1`, `pronouns = null`, `avatar_url` - [x] If yes: - Increment `interactions` - Update `last_seen` and `last_message` #### On `!setpronouns` Command: - [x] Create profile if it doesn't exist - [x] Set or update `pronouns` field --- ### 🧾 Sample `user_profiles.json` Entry ```json { "113456789012345678": { "name": "milo", "display_name": "Milo", "first_seen": "2025-05-14T20:30:00", "last_seen": "2025-05-14T21:50:00", "last_message": "2025-05-14T21:50:00", "interactions": 6, "pronouns": "he/him", "avatar_url": "https://cdn.discordapp.com/avatars/..." } } ``` ## 🧍 User Profile JSON Fields (per user) - `user_id`: Discord user ID - `name`: Current display name - `avatar`: Avatar URL at time of last interaction - `pronouns`: (Optional) User-supplied pronouns - `interactions`: Total number of times the user interacted with Delta - `first_seen`: ISO timestamp of the first mention or reply - `last_seen`: ISO timestamp of the most recent interaction - `custom_prompt`: (Optional) Mini prompt to customize Delta's tone when addressing this user ## 🧠 Feature: Custom Prompt Injection If `custom_prompt` exists **and** server settings allow it, Delta will inject it into her system prompt during replies to that user. Example:
milo added the
enhancement
label 2025-05-11 13:53:38 -04:00
milo self-assigned this 2025-05-11 13:53:38 -04:00
milo added this to the Polishing Phase project 2025-05-11 13:53:39 -04:00
milo added the
High Priority
label 2025-05-11 14:15:07 -04:00
milo added
💡feature
and removed
enhancement
labels 2025-05-11 14:30:24 -04:00
milo added this to the Alpha Build Ready milestone 2025-05-11 17:48:18 -04:00
milo referenced this issue from a commit 2025-05-14 16:01:17 -04:00
Author
Owner

Fully Implemented 👍

Really adds a lot of personal touch to the bot. Glad I did this.

## ✅ Fully Implemented 👍 Really adds a lot of personal touch to the bot. Glad I did this.
milo closed this issue 2025-05-15 11:44:45 -04:00
Sign in to join this conversation.
No description provided.