Install
openclaw skills install aionisConnect OpenClaw to Aionis using write/context/policy/feedback memory loop APIs.
openclaw skills install aionisUse this skill when the user asks for long-term memory, retrieval with citations, tool routing from memory rules, or feedback-driven policy adaptation.
Environment variables:
AIONIS_BASE_URL:
http://127.0.0.1:3001http://host.docker.internal:3001AIONIS_API_KEYAIONIS_AUTH_BEARERAIONIS_TENANT_ID (default: default)AIONIS_SCOPE_PREFIX (default: clawbot)clawbot:<project>./v1/memory/context/assemble is unavailable, fallback to /v1/memory/recall_text and continue.Before running the memory loop, ensure Aionis standalone is reachable:
GET /health returns 200.POST /v1/memory/write with x-api-key returns 200.If local standalone is not running, execute:
bash ./bootstrap-local-standalone.sh
Then load runtime env:
source ./.runtime/clawbot.env
POST /v1/memory/writePOST /v1/memory/context/assemblePOST /v1/memory/recall_text if assemble endpoint is unavailablePOST /v1/memory/tools/selectPOST /v1/memory/tools/feedbackUse these templates (replace placeholders):
{
"tenant_id": "default",
"scope": "clawbot:demo-project",
"input_text": "Customer prefers email follow-up",
"auto_embed": true,
"nodes": [
{
"client_id": "evt_001",
"type": "event",
"text_summary": "Customer prefers email follow-up",
"memory_lane": "shared",
"slots": {
"integration": "openclaw",
"kind": "event",
"project": "demo-project"
}
}
],
"edges": []
}
{
"tenant_id": "default",
"scope": "clawbot:demo-project",
"query_text": "How should I follow up with this customer?",
"include_rules": true,
"include_shadow": false,
"rules_limit": 50,
"tool_strict": false,
"return_layered_context": true,
"context_layers": {
"enabled": ["facts", "episodes", "rules", "decisions", "tools", "citations"],
"char_budget_total": 3200,
"include_merge_trace": true
},
"limit": 30,
"neighborhood_hops": 2,
"max_nodes": 50,
"max_edges": 100
}
{
"tenant_id": "default",
"scope": "clawbot:demo-project",
"run_id": "run_001",
"context": {
"intent": "follow_up",
"customer": {
"prefers": "email"
}
},
"candidates": ["send_email", "call_crm", "search_docs"],
"include_shadow": false,
"rules_limit": 50,
"strict": false
}
{
"tenant_id": "default",
"scope": "clawbot:demo-project",
"run_id": "run_001",
"outcome": "positive",
"context": {
"intent": "follow_up",
"customer": {
"prefers": "email"
}
},
"candidates": ["send_email", "call_crm", "search_docs"],
"selected_tool": "send_email",
"include_shadow": false,
"rules_limit": 50,
"target": "tool",
"input_text": "openclaw feedback accepted tool send_email"
}
When using this skill, include these IDs in your response when present:
request_idcommit_id or commit_uridecision_id or decision_urirun_idAlso include:
base_url used for this runscope used for this run