I was trying to use the Proactive Notification feature of the Chat Bot on Slack. I trigger the notification using the Proactive Notification API Call.
When I check the status using the Proactive Notification Status API, it says failure with the following error "comments": "‘Identity is not associated with the channel’".
The body of the Proactive Notification API is:
{
“channel”: “slack”,
“userIdentityType”: “resolve”,
“message”: {
“type”: “text”,
“val”: “Message from external system!!”
},
“identities”: [
“myemail@email.com”
]
}
I have created an App in the bot with the required permissions as well to make the API call.
I have also created a Slack channel in the bot and configured it according to the documentation. Along with it I have enabled Proactive notification in the Configuration and followed steps in the Slack set-up as well. The bot is published.
The bot works well within Slack, just that the proactive notification feature is not working.
You have to make a small change in step 2. Please make sure to add all the below-mentioned scopes in Path: Oauth & Permissions >> Scopes >> Bot token scopes
Scopes:
‘incoming-webhook’
‘chat:write’
users:read.email
users:read
We have tested the proactive notification at our end and observed working fine. Here attaching is the proof for your reference.
Finally, publish the bot after the necessary changes to make proactive notification works. Please share your feedback and let us know if you are still facing the issue.