curl --request POST \
--url https://api-lr.agent.ai/v1/action/save_to_agent_kb \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"text_content": "<string>",
"output_variable_name": "saved_memory",
"metadata": "<string>",
"suggested_keywords": "<string>"
}
'{
"status": 123,
"response": {}
}Save notes, context, or insights to this agent’s persistent memory for future recall and reference.
curl --request POST \
--url https://api-lr.agent.ai/v1/action/save_to_agent_kb \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"text_content": "<string>",
"output_variable_name": "saved_memory",
"metadata": "<string>",
"suggested_keywords": "<string>"
}
'{
"status": 123,
"response": {}
}Bearer token from your account (https://agent.ai/user/integrations#api)
The text content to save to the agent's memory (supports variable references like {{meeting_notes}}).
Variable name to store the save result, like 'saved_memory' or 'memory_saved'.
^[a-zA-Z][a-zA-Z0-9_]*$Optional JSON metadata about this content (e.g., {"source": "meeting_notes", "date": "2025-11-13"}).
Comma-separated list of keywords to prioritize in indexing (e.g., "enterprise, pricing, annual contract").