---
schema_version: "1"
id: 6295644006804d923d448279cee6271274f84b33aff84b9aa1d8c743cd1502cb
title: Enable User Profile
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ai/264-0-0/agent_user_profile_enable.md
canonical_url: https://help.salesforce.com/s/articleView?id=ai.agent_user_profile_enable.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: b46e0d27f21952bca13e9f3fc0093d35321b6f2f72b6e757504847a1039c89b2
description: Enable user profile context in Agent Script so your agent can personalize responses using available profile information about the users it interacts with. The profile information that's available depends on the type of agent and the user record associated with the interaction.
products:
  - Agentforce
  - Cross Cloud
release: "264"
---
# Enable User Profile

Enable user profile context in Agent Script so your agent can personalize responses using available profile information about the users it interacts with. The profile information that's available depends on the type of agent and the user record associated with the interaction.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Enterprise</strong>, <strong>Performance</strong>, <strong>Unlimited</strong>, and <strong>Developer</strong> Editions. <a href="https://help.salesforce.com/s/articleView?id=ai.agent_setup_explore_types.htm&amp;release=264.0.0&amp;type=5" title="Learn about agent types and default templates for specific clouds and common use cases.">Required add-on licenses vary by agent type.</a></td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d109291e78">User Permissions
              Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d109291e78 ">To enable user profile context:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d109291e78 ">Manage AI Agents AND <a href="https://help.salesforce.com/s/articleView?id=ai.agent_setup_explore_types.htm&amp;type=5&amp;language=en_US" target="_blank">the required permissions for your agent
                type</a></td>

          </tr>
        </tbody>
      </table>

1. From the App Launcher, enter Agent, select **Agentforce Studio**, and click **Agents**.
2. Open the agent that you want to enable user profile context for, or [create a new agent](https://help.salesforce.com/s/articleView?id=ai.agent_setup_create.htm&release=264.0.0&type=5 "Create intelligent, trusted, and customizable agents for your customers and employees.").
3. In Agentforce Builder, toggle to **Script** view.
4. In the Agent Script, add user\_profile: enabled: True in the context block.
    
    Agent Script autocompletes the property as you type. Values are case-sensitive. Use True or False.
    
    ![Agent Script showing the user\_profile property set to enabled True in the context block.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ai-generative_ai-264-0-0-production-enus/f8ef6498-d7b2-44e3-9b34-ffd5a850aae9/generative_ai/images/agent_memory_user_profile_enable_script.png)
5. Save your changes.
6. Start a preview conversation to validate that profile fields are injected correctly. See [Test Your Agent in Agentforce Builder](https://help.salesforce.com/s/articleView?id=ai.agent_test_in_builder.htm&release=264.0.0&type=5 "Manually testing your agent in Agentforce Builder provides a detailed, step-by-step trace of your agent's interactions and processes. Use the Preview panel to chat with your agent, then review subagent selection, action execution, and reasoning on the Interaction Summary panel. For more details about any step, converse with the Agentforce Assistant.").
7. Commit and [activate your agent](https://help.salesforce.com/s/articleView?id=ai.copilot_setup_activate_deactivate.htm&release=264.0.0&type=5 "Activate your agent to make it available to your customers or employees. When an agent is deployed to one or more channels, including the Agentforce panel, activating the agent makes it immediately available to your users.").
    
    Committed versions can't be edited. To make changes, create a new version. See [Versioning and Editing Agents](https://help.salesforce.com/s/articleView?id=ai.agent_versions_lifecycle.htm&release=264.0.0&type=5 "Learn about the different states of agents as you create and iterate on your agents, including editable states and how to version your agent.").

The agent now has access to profile information about the user it's interacting with, and uses that information to personalize responses, such as greeting the user by name or tailoring a response to their locale or time zone.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ai-generative_ai-264-0-0-production-enus/f8ef6498-d7b2-44e3-9b34-ffd5a850aae9/images/icon_note.png)

Note User profile context doesn't require you to enable Agent Memory (`context.memory.enabled`).

This table lists the profile fields available and the variable name that references each one in Agent Script, for example in instructions, prompt templates, or conditions.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ai-generative_ai-264-0-0-production-enus/f8ef6498-d7b2-44e3-9b34-ffd5a850aae9/images/icon_note.png)

Note For Agentforce Service agents, this full field set applies only when the customer is associated with a User record. For a Contact record, only User, Email, and Country are available.

 
| Field | Injected As |
| --- | --- |
| User | `full_name` or `username` |
| Email | `email` |
| Alias | `alias` |
| Company | `company_name` |
| Country | `country` |
| Profile | `profile_name` (`Profile.Name`) |
| UserType | `user_type` |
| Locale | `locale_sid_key` or `language_locale_key` |
| TimeZone | `time_zone_sid_key` |
| Active | `is_active` |
| LastLogin | `last_login_date` (ISO) |

![Example](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ai-generative_ai-264-0-0-production-enus/f8ef6498-d7b2-44e3-9b34-ffd5a850aae9/images/icon_example.png)

Example

For example, if the current user is Ada Lovelace, user profile context gives the agent this information:

User

Ada Lovelace

Email

ada@example.com

Company

Deva Org

Country

US

Profile

System Administrator

User Type

Standard

Locale

en\_US

Time Zone

America/Los\_Angeles

Active

True