Use Custom HTTP nodes in Flowise to capture and recall via CortexDB.

Flowise Integration

Flowise builds AI workflows visually. Use the Custom Function or HTTP Request node to call CortexDB endpoints.

Capture (HTTP Request node)

FieldValue
MethodPOST
URLhttps://api-v1.cortexdb.ai/v1/experience
HeadersAuthorization: Bearer YOUR_TOKEN, X-Cortex-Actor: service:flowise, Content-Type: application/json
BodySee template below
{
  "scope": "org:acme/user:{{session_id}}",
  "modality": "conversation",
  "content": { "kind": "message", "role": "user", "text": "{{question}}" },
  "context": { "observed_at": "{{$now()}}" },
  "idempotency_key": "fw-{{message_id}}"
}

Recall (HTTP Request node before LLM)

FieldValue
URLhttps://api-v1.cortexdb.ai/v1/recall
Body{ "scope": "org:acme/user:{{session_id}}", "view": "holistic", "query": "{{question}}", "include": ["beliefs","facts","episodes"], "budgets": {"max_tokens": 3000} }

Wire the response's $.context_block into the LLM node's system prompt.

See also