Skip to Content

Features

Metadata

Attach your own keys and values to a memory, such as a ticket ID or a channel.

Text alone often isn't enough to trace a memory back to your own system. Metadata lets you attach your own keys, such as the ticket, channel, or session a memory came from.

Add metadata when...

  • You need to find the record in your own system that a memory came from.
  • Dashboard reviewers need context, such as the channel or the agent.

Attach metadata

Pass a dictionary in Python or an object in TypeScript:

dock.capture(
    "Customer asked to move the renewal date to June.",
    type="event",
    metadata={"ticket_id": "T-4821", "channel": "email"},
)

Rules

RuleDetail
SizeUp to 10 KB per event, measured as JSON. A larger object rejects the request with 422.
ValuesStored as text. Numbers and booleans come back as strings.
KeysAny string. Use the same keys across your app so reviewers can rely on them.

Metadata isn't for secrets or personal data. Don't put passwords, tokens, email addresses, or phone numbers in it. Use your own opaque IDs instead.

Next steps

Your memories now point back to your own records. Learn how Docklee spots repeats next.

On this page