Creating Your Action
- In your XenForo admin panel navigate to Applications → Slack → Slack Actions
- In the top controls click "Create New Action"
- Basic Information
- Name: This is the name you want to give to your action, this is only used in the admin panel to identify the action.
- Action Execution Order: This is the order in which you want the actions to run. Lower priorities will run first. Once the system finds a match (based on user critera, and other action type specific options) it will run that action and stop searching.
- Action Type: This is the type of action you wish to create. More detail will be given on this later
- User Criteria: This behaves the same as any XenForo system that uses User Criteria. Note that all criteria must be met for the action to run, so you cannot set "User is a guest" and "User is logged in" at the same time, for example.
- Slack Options
- Webhook URL: If you have a separate webhook URL you'd like to use for only this action you can enter it here. Generally this should be left blank unless you have multiple slack teams.
- Slackbot Username: This is the username that will be displayed by the notification. Note: This should only contain lowercase alphanumeric characters, and no spaces. We will attempt to fix this for you when we send the notification if it is in an invalid format.
- Slack Channel: This is the channel notifications matching this action should go to
- Default icon for notifications:
- Emoji: If you choose to use an emoji as your icon you will need to enter it in the text format that Slack uses. For example, :smile: will show the smile emoji.
- Image URL: This option is a bit more straightforward, you just need to use a valid URL to an icon you'd like to use.
For action-specific configurations, please continue to the action type you'd like to use.