Documentation

Using Slack add-on

Requirements#

  • A registered (free or paid) account on Slack.
  • A Slack app added to workspace (instructions below).

Creating Slack App#

The Slack API uses OAuth 2.0 to validate all connections, so it is necessary to set up an app in order to connect the ShopMagic Slack add-on with your workspace.

  1. Go to your Slack Apps admin.
  2. Create an app by clicking on the Create New App button:
    create-new-slack-app
  3. You'll see a form with:
    • App Name: set a name for your app, i.e. ShopMagic.
    • Development Slack Workspace: select a workspace to which you want to add integration.

    slack-app-name

  4. When you are directed to next page, scroll down to see App Credentials: slack-app-credentials
  5. Your app has been created. Please do not close this page, because you will also need it in the next step.

Fill in app credentials in ShopMagic settings#

  1. In your WordPress dashboard, go to menu: ShopMagic → Settings → Slack.
  2. Fill in the form to get started. Copy the Client ID and Client Secret from your Slack app that you created in the previous step and save settings: woocommerce-slack-credentials
  3. When the Client ID and Client Secret are saved, copy the callback URL that is visible above the form. It should look like this https://changetoyourdomain.com/wc-api/shopmagic_slack/.
  4. Go back to your Slack app that you created before.
  5. In the sidebar click the OAuth & Permissions link: slack-app-oauth
  6. Enter and save your callback URL as shown below: slack-app-callback-url
  7. Next, scroll to Scopes and in the Bot Token Scopes section add: channels:read , groups:read, and chat:write: slack-app-scopes
  8. Go back to ShopMagic Slack settings in your WordPress dashboard.
  9. You will be able to connect, click the Connect with Slack button: woocommerce-connect-slack
  10. You will be redirected to Slack. When you see permissions screen, click Allow to proceed: woocommerce-slack-permissions
  11. You will be redirected back to ShopMagic Slack settings. You will notice a success message: woocommerce-slack-successful-connection

General Settings#

After a successful connection you will be presented with some general settings.
Defaults
You can set up some default values. You will be able to override these when you configure your automation.

  • Default Channel
  • Default Name
  • Default Emoji

Woocommerce Slack Defaults

Additional options#

  • Debug: you can enable logging important information to WooCommerce logs.
  • Test Notification: you can send a test notification to confirm that everything is working as expected. In order to be able to send a test notification, please select the default channel.
  • Reload Channels: if you have added a new channel and it\'s not showing, this will refresh the list.

Adding a new Slack automation#

In order to add a new Slack automation, please follow the steps described here.
When you scroll to the Actions meta box, you will be able to add Post to Slack action:
Woocommerce Slack Action

  • Message: create a message that will be sent to Slack. You can use placeholders here.
  • Channel: select a channel to post to.
  • Name: enter a name that will appear next to the message.
  • Emoji: enter an emoji for the message.

If you do not fill channel, name, or emoji fields, defaults from general settings will be used.
When the selected event occurs a message will be sent to your Slack:
Woocommerce Slack Notification
You may also read more on how to send notifications from Slack with ShopMagic.

Not the solution you are looking for?

Please check other articles or open a support ticket.

Cookies preferences

Others

Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.

Necessary

Necessary
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.

Advertisement

Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.

Analytics

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.

Functional

Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.

Performance

Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.