Associate user profiles with agent-initiated messages

  • Rversion finale: Australia
  • Mis à jour 12 mars 2026
  • 1 minute de lecture
  • Use scripted extension points to call custom scripts for associating user profiles with agent-initiated messages.

    Avant de commencer

    Install the Agent-Initiated Messaging Interface application. For more information, see Install agent-initiated messaging interface.

    Role required: admin

    Pourquoi et quand exécuter cette tâche

    An agent can compose messages from an interaction of type other than Message in the CSM Configurable Workspace. By default, the AgentMessagingInteractionUserDocument script include is available for retrieving user profiles associated with consumers and customer contacts in an interaction record.

    By using extension points, you can easily integrate customizations without having to alter the base code. You can extend standard base functionality using customized scripts. For more information, see Using extension points to extend application functionality.

    Procédure

    1. Navigate to All > System Extension Points > Scripted Extension Points.
    2. In the API Name column, search for and select sn_agent_initiated.AgentInitiatedMessagingUserDocument.
    3. On the Extension Point form, either modify a script include to use the sn_agent_initiated.AgentInitiatedMessagingUserDocument extension point or create and register a custom script include.
      • Create and register a custom script include.
      • Modify the existing script include by going to the Implementations related list and selecting a script include in the Class column.
        Remarque :
        By default, the AgentMessagingInteractionUserDocument script include that use the sn_agent_initiated.AgentInitiatedMessagingUserDocument extension point is available for the Agent-Initiated Messaging Interface application. This script include is configured to retrieve user profiles associated with consumers and customer contacts from the Interaction [interaction] table record.
    4. Associate user profiles for an agent-initiated messages by adding the sn_agent_initiated.AgentInitiatedMessagingUserDocument extension point to the script include.
      You can create multiple implementations for an extension point and provide an order number for each implementation. The implementation that has the lowest order number is executed first.
      Customization Implementation
      Associate a table record from which the message was initiated Include the isValidForTableRecord method in the sn_agent_initiated.AgentInitiatedMessagingUserDocument extension point.
      Retrieve the user details associated with the table record from which the message was initiated Include the getUserDocument method in the sn_agent_initiated.AgentInitiatedMessagingUserDocument extension point.
      Remarque :
      Based on the table record set in the isValidForTableRecord method, the user details are retrieved for sending agent-initiated messages in the getUserDocument method.
    5. On the Extension Point form, click Update.