{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":4576,"path":"conversational-interfaces/agent-chat/agent-init-messg-channel-ext-pt.md","title":"Determine whether messaging channels are available for agent-initiated messages","bundle":null,"doc_type":null,"release":"australia","body":"\n# Determine whether messaging channels are available for agent-initiated messages\n\nUse scripted extension points to call custom scripts for determining whether a messaging channel is applicable to a user profile in an agent-initiated message.\n\n## Before you begin\n\nInstall the Agent-Initiated Messaging Interface application. For more information, see [Install agent-initiated messaging interface](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/conversational-interfaces/agent-chat/install-agent-init-messg.md).\n\nRole required: admin\n\n## About this task\n\nBy 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](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/api-reference/web-services/extension-points.md).\n\n## Procedure\n\n1.  Navigate to **All** &gt; **System Extension Points** &gt; **Scripted Extension Points**.\n\n2.  In the **API Name** column, search for and select **sn\\_agent\\_initiated.ChannelsQualifyingFoAgentMessaging**.\n\n3.  On the Extension Point form, create and register a custom script include.\n\n4.  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.\n\n    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.\n\n    |Customization|Implementation|\n    |-------------|--------------|\n    |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.|\n    |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.|\n\n    **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.\n\n5.  On the Extension Point form, click **Update**.\n\n\n**Parent Topic:**[Configuring Agent-Initiated Messaging Interface](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/conversational-interfaces/agent-chat/config-agent-init-messg-interface.md)\n\n"}}