Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

Determine whether messaging channels are available for agent-initiated messages

Use scripted extension points to call custom scripts for determining whether a messaging channel is applicable to a user profile in an agent-initiated message.

Before you begin

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

Role required: admin

About this task

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.

Procedure

  1. Navigate to All > System Extension Points > Scripted Extension Points.

  2. In the API Name column, search for and select sn_agent_initiated.ChannelsQualifyingFoAgentMessaging.

  3. On the Extension Point form, create and register a custom script include.

  4. Determine whether a messaging channel is applicable to a user profile in an agent-initiated message by adding the sn_agent_initiated.ChannelsQualifyingForAgentMessaging 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.

    CustomizationImplementation
    Associate a messaging channel ID for agent-initiated messages with the custom scriptInclude the isValidForChannel method in the sn_agent_initiated.ChannelsQualifyingForAgentMessaging extension point.
    Check whether a user qualifies for the messaging channel for agent-initiated messagesInclude the isChannelValidForAgentInitiatedMessaging method in the sn_agent_initiated.ChannelsQualifyingForAgentMessaging extension point.

    Note: Based on the messaging channel ID set in the isValidForChannel method, the users are evaluated for sending agent-initiated messages in the isChannelValidForAgentInitiatedMessaging method.

  5. On the Extension Point form, click Update.

Parent Topic:Configuring Agent-Initiated Messaging Interface