Skip to main content

Send notification of receiving inquiries to Slack.

Summary

Kuroco has an API linkage function with Slack.
With API linkage, you can easily read Slack messages and post to Slack channels from your Kuroco site.

This tutorial explains how to post notifications of receiving inquiries to Slack by integrating with Slack.

What you will learn

The flow of this tutorial is as follows:

Slack app and Kuroco integration

Creating the Slack app, obtaining the Bot User OAuth Token, and configuring it in Kuroco are steps common to all Slack integrations.
Follow Create a Slack app and configure the bot user OAuth token in Kuroco.

This tutorial only posts messages to Slack, so you can use the example manifest (KurocoNotification) on that page as is.
Also add the app to the Slack channel that receives the notifications, as described in Add the app to a Slack channel on the same page.

Once the integration is configured, continue with the Kuroco settings below.

Kuroco settings

Edit message template

Click [Operation] > [Message template].

Image from Gyazo

Search for "inquiry/inquiry_contact" and click the displayed title [inquiry/inquiry_contact].

Image from Gyazo

Add the following at the beginning of the "Body".

{*Slack notification*}
{capture name=slack_text_body}
<!here>
You received an inquiry to "{$inquiryHeader.inquiry_name}".
Check the detail from the link below:
{$smarty.const.ROOT_MNG_URL}/management/inquiry/inquiry_reply_edit/?inquiry_bn_id={$inquiry_bn_id}
{/capture}
{slack_post_message channel='YOUR-CHANNEL-NAME' text=$smarty.capture.slack_text_body}

{*Email notification*}
caution

Replace YOUR-CHANNEL-NAME with your own channel name in which you want to receive the notification.

Image from Gyazo

Click [Update] to save the settings.

TIPS

  • If you want to send the notification only to Slack, set "Stop sending email" to "1" from the [custom settings].
    Image from Gyazo
  • If you want to set the mention on Slack to @channel, write <!channel>.
  • If you want to mention a person on Slack, write <@SLACK-MEMBER-ID>(Replace SLACK-MEMBER-ID with the actual ID of the member who you want to mention).

Form basic settings

Click [Channels] > [WEB] > [Form].

Image from Gyazo

Click the title of the form.
Image from Gyazo

On the basic settings tab, check [Notify] and enter the email address and title.

Image from Gyazo

Operation check

Finally, we check the operation.
When you submit a response to a form with admin notifications enabled, you'll get a Slack channel notification in addition to the email notification.

Image from Gyazo

With the above steps, you can now send notification of the received inquiries to Slack.

You can also use the same method to send other notifications such as approval workflows to Slack, so please give it a try.


Support

If you have any other questions, please contact us or check out Our Slack Community.