---
schema_version: "1"
id: b528b904fb803d613fe99eead9fe2e1e10b7ebbd5843432365efca20072b008c
title: Expose Context Variables in Your Agentforce Service Agent
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/experience/264-0-0/support_context_passing_framework_variables.md
canonical_url: https://help.salesforce.com/s/articleView?id=experience.support_context_passing_framework_variables.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 6a9948352ff81f0ead8859dc31c4adba81cb9728b4d854900dabfff044b8fc0b
description: To make the custom fields created on the Messaging Session object available to your agent, expose them as context variables in Agentforce Builder. This action establishes the direct data link required for your Agentforce Service agent to reference and utilize user journey data when executing actions and guiding responses.
products:
  - Experiences
release: "264"
---
# Expose Context Variables in Your Agentforce Service Agent

To make the custom fields created on the Messaging Session object available to your agent, expose them as context variables in Agentforce Builder. This action establishes the direct data link required for your Agentforce Service agent to reference and utilize user journey data when executing actions and guiding responses.

### 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: Salesforce Classic and Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Aura and LWR Experience Cloud Sites</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Enhanced Chat with the Einstein for Service, Einstein Platform, Community, Community Plus, or Agentforce Service Agent add-on</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Enterprise, Performance, Unlimited, and Developer Editions with Foundations or Agentforce 1 Editions. Access to some standard agent actions requires <a href="https://www.salesforce.com/agentforce/pricing/" target="_blank">additional add-on licenses</a></td></tr></tbody></table>

1. From Setup, in the Quick Find box, enter Agent, and then select **Agentforce Agents**.
2. From the Agents Setup page, click the name of your agent Agentforce Service agent to open its details.
3. Click **Open in Builder**, and then select the **Context** tab. If your agent is in read-only mode, deactivate it first.
4. In the Messaging Session Variables section, click **Update Included Fields**.
5. Select the custom fields you created on the Messaging Session object, and then **save** your changes.
    
    The custom Messaging Session fields you select are exposed in Agentforce Builder as context variables and become available to map to action inputs and to reference in topic instructions.