metadata field in each request to pass custom context. The Platform stores this in the sessionMeta memory store, making it accessible in agent prompts for personalized, context-aware responses.
Step 1: Pass Metadata in the API Call
Include ametadata object in the Execute API request body. The following example passes user profile information to the agent:
Step 2: How Metadata Appears in Session Memory
The Platform stores themetadata object and session identifiers in sessionMeta using the following schema:
sessionMeta contains:
Step 3: Reference Metadata in Prompts
Use the following template syntax to reference metadata fields in agent or orchestrator prompts:Suggest popular pizza ingredients in Japan.