DumGumDocs
Search documentation

Loading search…

API Reference

memory.changed

Sent when memory changes are detected and the project is configured with memoryWebhookMode set to CHANGES_ONLY. Contains only the added and deleted memories from the latest update.

See the Memory Webhook guide for setup instructions.

On an -auto conversation, this event can also follow the first Pro reply, if Auto's initial memory catch-up changes memories. See When Are Webhooks Triggered? for what that catch-up covers.

Payload

{
  "event": "memory.changed",
  "data": {
    "userProfileId": "user_123",
    "personaProfileId": "persona_456",
    "added": [
      {
        "uniqueIdentifier": "user_has_a_dog_named_max",
        "target": "USER",
        "category": "PET",
        "description": "Has a dog named Max, a 3-year-old golden retriever",
        "eventStartDate": null,
        "eventEndDate": null,
        "sourceText": "My dog Max is a golden retriever, he's 3 years old",
        "timestamp": "2026-04-10T15:00:00Z",
        "tags": ["dog", "max", "golden retriever", "pet"]
      }
    ],
    "deleted": [
      {
        "uniqueIdentifier": "user_has_a_cat",
        "reason": "Replaced by more accurate pet information"
      }
    ]
  }
}

Fields

FieldTypeDescription
eventstringAlways "memory.changed"
data.userProfileIdstringThe end-user's profile identifier
data.personaProfileIdstringThe AI persona's profile identifier
data.addedarrayMemories that were created or updated
data.deletedarrayMemories that were removed

Added Memory Object

Same structure as the memory object in memory.updated.

FieldTypeDescription
uniqueIdentifierstringMachine-friendly key (e.g. user_has_a_dog_named_max)
targetstringWho the memory is about: USER or PERSONA
categorystringContent category (see categories)
descriptionstringBrief English summary of the fact
eventStartDatestring | nullISO 8601 date (YYYY-MM-DD). Only for EVENT category
eventEndDatestring | nullISO 8601 date (YYYY-MM-DD). Only for EVENT category
sourceTextstringThe original message that produced this memory
timestampstringISO 8601 UTC timestamp when the memory was recorded
tagsstring[]Up to 10 keywords summarizing the memory

Deleted Memory Object

FieldTypeDescription
uniqueIdentifierstringThe identifier of the memory that was removed
reasonstringExplanation of why the memory was deleted
Ask DumGum AIAnswers from the documentation

What can we help you build?

Ask about setup, content creation, or the API.

AI can make mistakes—verify important information against the sources. Conversations are kept for 30 days to improve the documentation, and questions and recent messages are sent to a third-party AI provider. Don’t include secrets or sensitive information.