This quick tutorial shows how to send notifications from Wordbee Translator into a Slack channel. For example, this permits pushing Slack notifications for newly assigned jobs or orders into a Slack channel.
Two steps are required to get it working:
The initial configuration to do in your Slack account. You will create one or more so-called “incoming web hook URLs”
The Wordbee Translator Web Hook configuration. You define the events to notify, the content. Web hooks call the Slack incoming web hook URLs.
Configure Slack
If you have not yet done so please configure your Slack account. Objective is to create an Incoming Webhook URL to then configure Wordbee Translator.
Configure Wordbee Translator
We will now setup “web hooks” in your Wordbee Translator platform. A web hook is nothing more than a URL that Wordbee calls when an event such as a job status changes. The URL that Wordbee will call is the exact URL that you created when configuring Slack.
Login as administrator to your Wordbee Translator Platform.
Click the Settings top navigation link and then Developer API Webhooks (this link is at the bottom of the Settings page):
Notify new and un-started jobs in Slack
Click the Edit link in the page above and select the following web hook:
Then populate the other fields:
URL: Paste the Incoming Webhook URL that you created in Slack
HTTP method: Select POST
Content type: Select application/json
HTTP body: This is where you design the content that will show up in Slack
The body of the message is a JSON that must comply with the Slack specifications. From the screenshot above, you see that we insert Wordbee “placeholders” such as {{JobReference}} or {{CompanyName}}