Set NLU portal consumer context values for multiple active conversations

  • Rversion finale: Australia
  • Mis à jour 12 mars 2026
  • 1 minute de lecture
  • Use context values to determine which portals receive certain messages and notifications for users in that portal.

    Avant de commencer

    Activate Virtual Agent. For more information, see Activate Virtual Agent.

    Configure your Agent Chat system for your portal or portals. See Configure Agent Chat in a portal for more information.

    Role required: virtual_agent_admin or admin

    Pourquoi et quand exécuter cette tâche

    With consumer context added to a portal configuration, that portal acts as context for multiple active conversations with Virtual Agent.

    Remarque :
    These instructions are for configuring Natural Language Understanding (NLU) conversations. Large Language Model (LLM) conversations are configured for multiple active conversations based on portals, with no configuration necessary.

    Procédure

    1. Navigate to All > Service Portal > Agent Chat.
    2. Select the Agent Chat Configuration for which you want to set the context value.
    3. In the Server Script window, add the line consumer_account_context: 'VALUE', replacing VALUE with your desired consumer account context.
      Figure 1. Server script example
      Service Portal agent chat configuration form
      Remarque :

      The syntax of the account context line depends on how the configuration is set up. For example, some configurations use an equal sign versus a colon. In the case of the esc context, there are also two relevant chat configurations.

      Values that are defined or created in a script aren’t displayed to an admin as a selection for use elsewhere in the system.

    4. Select Update.

    Que faire ensuite

    Set a default context for your conversations. See Set a default NLU context value for multiple active conversations for more information.