Dify integration

Visual workflows. Invisible memory.

Dify lets you build AI applications from a visual canvas. Hebbrix adds the one thing Dify's built-in memory can't: memory that persists across sessions for every user, with each user's facts kept current as they change.

where memory fits

Memory wraps every workflow node

Use the Hebbrix HTTP node before any LLM call to inject context, and after any LLM output to store what was learned. No code inside Dify, only HTTP requests.

User input

Message arrives

→

Hebbrix search

HTTP node · context retrieval

→

LLM node

Your model, with context

→

Hebbrix store

HTTP node · save response

→

Output

Response to user

Both Hebbrix nodes are standard HTTP request nodes in Dify. No plugins, no code blocks needed.

Dify workflow editor with Hebbrix search and store HTTP nodes around the LLM node
two api calls

One to retrieve. One to store. That's the integration.

Before the LLM node

http_search.json (Dify HTTP node)
{
  "method": "POST",
  "url": "https://api.hebbrix.com/v1/search",
  "headers": {
    "Authorization": "Bearer {{API_KEY}}"
  },
  "body": {
    "query": "{{user_input}}",
    "collection_id": "{{HEBBRIX_COLLECTION_ID}}",
    "user_id": "{{user_id}}",
    "limit": 5
  }
}
// Pass result into LLM system prompt
// as context_memories variable

After the LLM node

http_store.json (Dify HTTP node)
{
  "method": "POST",
  "url": "https://api.hebbrix.com/v1/memories",
  "headers": {
    "Authorization": "Bearer {{API_KEY}}"
  },
  "body": {
    "content": "{{user_input}} → {{llm_output}}",
    "collection_id": "{{HEBBRIX_COLLECTION_ID}}",
    "user_id": "{{user_id}}"
  }
}
// HEBBRIX_COLLECTION_ID: the id POST /v1/collections
// returned. Hebbrix extracts the facts in each turn.
worth knowing

Why not just use Dify's built-in memory?

1

Dify's memory is session-bound

Built-in conversation memory lives inside a single session. When a user starts a new chat, it's gone. Hebbrix memory persists indefinitely, across every session, every app version, every user interaction.

2

Adaptive search, beyond recency

Dify retrieves recent messages. Hebbrix finds the most relevant memory no matter when it was stored, weighing semantic search, keyword matching, graph relationships, importance, and recency together.

3

Memory that learns from what you report

Facts are extracted from every turn you store. To learn which action works, record a workflow's candidate actions before execution, then report its delayed result. Outcome Memory keeps propensity, posterior evidence, and uncertainty for later choices.

Add memory to your Dify workflows today

Two HTTP nodes. Ten minutes. Persistent memory for every workflow you've already built.