WHMCS hook to Slack. Send notification to slack channel or user on ticket open and user reply.
Just copy slack.php
and slack.json
to $WHMCS_ROOT/includes/hooks
directory.
Edit file slack.json
and change hook_url
to your slack hook url.
{
"hook_url" : "your_slack_hook_url",
"username" : "WHMCS",
"emoji" : ":loudspeaker",
"channel" : "#whmcs",
"adminuser" : "your_whmcs_admin_username"
}
Explanation
hook_url
: your slack's hook URLusername
: whatever you want to display in slack channelemoji
: emoji iconchannel
: Slack channel to receive the notificationadminuser
: WHMCS admin username to call WHMCS API admin function
Now, try open ticket in the client area. You should receive notification from WHMCS every ticket open and user reply.