---
schema_version: "1"
id: dc878adc7d611aebb38d6cf25c801421f03045ddd6b7c97d5578c5f22d829994
title: Set Up Enhanced Chat for Context Passing
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_enh_chat.md
canonical_url: https://help.salesforce.com/s/articleView?id=experience.support_context_passing_framework_enh_chat.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: b88c28400bb2498e428f376443b356887b827fcfc63a566f3c537d2e9a390afa
description: Set up your Enhanced Chat channel and Embedded Service deployment to accept and pass hidden pre-chat variables. These variables enable the User Interaction Context Lightning web component to function with your Agentforce Service agent.
products:
  - Experiences
release: "264"
---
# Set Up Enhanced Chat for Context Passing

Set up your Enhanced Chat channel and Embedded Service deployment to accept and pass hidden pre-chat variables. These variables enable the User Interaction Context Lightning web component to function with your Agentforce Service agent.

### 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. [Create Your First Enhanced Chat Channel and Deployment](https://help.salesforce.com/s/articleView?id=service.miaw_quick_start.htm&type=5&language=en_US). During channel setup:
    1. Give your channel a descriptive name. For example, User Journey Context Channel.
    2. Set the Routing Type to Omni-Flow.
2. Configure the deployment settings. See [Configure an Enhanced Web Chat Deployment](https://www.google.com/search?q=https://help.salesforce.com/s/articleView%3Fid%3Dservice.miaw_configure_web_deployment_1.htm).
3. Set the context parameters. See [Customize the Embedded Pre-Chat Form](https://help.salesforce.com/s/articleView?id=service.snapins_chat_customize_prechat_form.htm&type=5&language=en_US).
    
    Add Custom Parameters in Messaging Settings using the exact, case-sensitive names: lastViewedArticleId, lastSearchQuery, lastViewedTopicId (Aura), and lastViewedNDCId (LWR). Select these parameters under Pre-Chat Hidden Variables within the Embedded Service Deployment settings.
4. Save all your changes and publish the deployment.