---
sourceDocument: Yokohama Conversational Interfaces
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/yokohama/conversational-interfaces

 Release :

    - yokohama

ft:locale :

    - en-US

ft:publication_title :

    - Yokohama Conversational Interfaces

ft:clusterId :

    - convint

bundleId :

    - convint

workflow :

    - Platform


---

# Determine whether messaging channels are available for agent-initiated messages

# Determine whether messaging channels are available for agent-initiated messages {#ariaid-title1}

Release version: Yokohama  
Updated January 30, 2025  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read  
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](https://servicenow-prod.fluidtopics.net/ydzLG30ewrvhgceB1AiXSQ "You can install the Agent-Initiated Messaging Interface application (sn_agent_initiated) if you have the admin role. The application installs related ServiceNow Store applications and plugins if they are not already installed.").

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 AllSystem Extension PointsScripted 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.{#agent-init-messg-channel-ext-pt__table_czh_m5m_5nb__entry__2}

   | Customization | Implementation |
   |-|-|
   | Associate a messaging channel ID for agent-initiated messages with the custom script | Include the isValidForChannel method in the sn_agent_initiated.ChannelsQualifyingForAgentMessaging extension point. |
   | Check whether a user qualifies for the messaging channel for agent-initiated messages | Include the isChannelValidForAgentInitiatedMessaging method in the sn_agent_initiated.ChannelsQualifyingForAgentMessaging extension point. |
   [ ]

   {#agent-init-messg-channel-ext-pt__table_czh_m5m_5nb}  
   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.
{#agent-init-messg-channel-ext-pt__steps_fz5_pqf_znb}

*[\>]: and then


