Dify

Long-term memory tools for Dify

Two tools for Dify agents, chatflows and workflows: Store memory keeps what a user said, Recall memory answers from it or says there is no record.

Plugins → Install plugin → Local package file

Setup
# 1. On the Recallic server: a key that acts for each user
python -m backend.tools.keys create --user my-dify-app --role service

# 2. Build the plugin package (dify CLI) from integrations/dify, then in Dify:
#    Plugins → Install plugin → Local package file → recallic-0.0.1.difypkg

# 3. Tools → Recallic → Authorize: URL (from Dify in Docker: http://host.docker.internal:8000), API key
# 4. Add Store memory / Recall memory to an agent, chatflow or workflow
  • Recall memory answers from the user's stored memories, or says 'No stored memory answers this' instead of near-misses.
  • The user is set by the app builder (or is the Dify user running the app), never chosen by the model.
  • Credentials are checked when saved; a wrong key is rejected.
  • Tested end to end in Dify Community Edition. Being submitted to the Dify Marketplace.

Settings

user_id
Default
the Dify user
What it does
whose memories to use
agent_id
Default
default_agent
What it does
Recallic agent id
mode
Default
server's
What it does
cautious, balanced or helpful
limit
Default
5
What it does
maximum memories returned

Needs a running Recallic server: set one up with Docker, or deploy it to your own Render account in one click. Nothing goes through us; your data stays on your server.