Skip to main content
When calling the Platform via the Execute API, include a 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 a metadata object in the Execute API request body. The following example passes user profile information to the agent:
Learn more about the Execute API →

Step 2: How Metadata Appears in Session Memory

The Platform stores the metadata object and session identifiers in sessionMeta using the following schema:
For the example above, sessionMeta contains:

Step 3: Reference Metadata in Prompts

Use the following template syntax to reference metadata fields in agent or orchestrator prompts:
Examples:
Resolves to: Suggest popular pizza ingredients in Japan.
Learn more about the SessionMeta Memory Store →