User Metadata in System Prompt
1 min read
By default, no user metadata are included into the prompt due to data security reasons.
User Metadata can be included in the System Prompt of the orchestrator.
Including user metadata provides valuable context — such as the user’s name, organization, or location — helping the model deliver more personalized and contextually relevant responses.
By default, no user metadata are included. To enable this feature, the desired parameters must be explicitly defined in the configuration settings.
Configuration
Setting Path: Advanced settings → Loop Agent → Prompt Config → User Metadata
In this section, you can specify which metadata fields should be added to the system prompt. The available metadata depend on the client configuration.
For example, you can include the user’s first name as follows:

Example System Prompt Injection:
When a user starts a chat session, the system automatically retrieves their metadata from the user context. This information is then formatted and injected into the system prompt before being sent to the orchestrator. The following shows the corresponding part within the prompt:
# User Information
Here is some metadata about the user, which may help you write better queries, and help contextualize the information you retrieve:
- Firstname: PeterBenefits
Enhanced context – The orchestrator model can now receives key user metadata (e.g., location) within the system prompt, enabling it to generate personalized responses and context-aware search queries (for example, retrieving information relevant to a specific region).