Skip to content

Add contact memories to inbound agent context - #50

Merged
alex-w-99 merged 3 commits into
mainfrom
feat/contact-memory-context
Jul 29, 2026
Merged

Add contact memories to inbound agent context#50
alex-w-99 merged 3 commits into
mainfrom
feat/contact-memory-context

Conversation

@alex-w-99

@alex-w-99 alex-w-99 commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Decisions

  • Memory source: Use memories attached to verified inbound webhook contacts so each turn receives current context without another request.
  • Default behavior: Enable memory context by default and provide INKBOX_CONTACT_MEMORIES_ENABLED=false as a complete opt-out.
  • Prompt safety: Keep routing metadata first and encode memories as delimited background data rather than instructions.

Changes

  • Add matched-contact memory context to email, SMS, iMessage, reactions, voice transcripts, realtime calls, and call consultations.
  • Preserve existing contact-card context while filtering blank or duplicate memories.
  • Document the setting and bump the plugin to 0.2.7.

Verification

  • uv run --isolated --with pytest --with aiohttp --with segno --with claude-agent-sdk --with inkbox pytest -q (330 passed, 22 skipped)
  • git diff --check

Related PRs

@alex-w-99
alex-w-99 marked this pull request as ready for review July 29, 2026 18:08
@alex-w-99
alex-w-99 merged commit 7644bea into main Jul 29, 2026
20 checks passed
@alex-w-99
alex-w-99 deleted the feat/contact-memory-context branch July 29, 2026 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant