Skip to main content
POST
Save Agent Memory

Authorizations

Authorization
string
header
required

Bearer token from your account (https://agent.ai/user/integrations#api)

Body

application/json
text_content
string
required

The text content to save to the agent's memory (supports variable references like {{meeting_notes}}).

output_variable_name
string
default:saved_memory
required

Variable name to store the save result, like 'saved_memory' or 'memory_saved'.

Pattern: ^[a-zA-Z][a-zA-Z0-9_]*$
metadata
string

Optional JSON metadata about this content (e.g., {"source": "meeting_notes", "date": "2025-11-13"}).

suggested_keywords
string

Comma-separated list of keywords to prioritize in indexing (e.g., "enterprise, pricing, annual contract").

Response

Successful response

status
integer<int32>

HTTP status code of the action response

response
object

Response data from the action