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)
| Field | Value |
|---|---|
| Method | POST |
| URL | https://api-v1.cortexdb.ai/v1/experience |
| Headers | Authorization: Bearer YOUR_TOKEN, X-Cortex-Actor: service:flowise, Content-Type: application/json |
| Body | See 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)
| Field | Value |
|---|---|
| URL | https://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.