Chat Templates

Slack

The message body can be in Text or JSON depending on the kind of input. Text allows you to send simple message text whereas JSON message body is used with the Slack Block kit Builder. In case you want to use JSON, a great place to start is "https://app.slack.com/block-kit-builder" . You can design your slack message at Block Kit Builder and simply copy the JSON block to Fyno Template and paste it under JSON tab. Please note: You only need to copy the JSON array start with "[" until the closing array block "]" as shown below:-

🚧

Handlebars do not work on Slack's block kit builder!

  1. Tag ID: Allows you to specify a unique identifier or a placeholder based on which all consecutive notification events using the same identifier get added under this message as a thread.

    1. Tag TTL: Enter the duration in numeric value to define the period for which this feature should be valid for.
    2. Duration: Select Seconds, Minutes, Hours or Days to define the period for which this feature is valid for.
  2. Placeholders: Below the "Channels" section on the left, you can find placeholders. Placeholders are denoted by {{}} or Handlebars. You may define the parameters of Placeholders by clicking on it, which opens up a pop-up window where you can define them. Check out this comprehensive guide on how to use "Handlebars"

    📘

    Did you know?

    You can use period (.), underscore (_) or hyphen (-) within the handlebars. Try it now!

    ❗️

    You cannot use only numeric values as placeholder keys!

  3. Preview: Review your content and take a look at what your message would look like in the Preview section on the right.

  4. Save & Save and Promote: Save and create different versions of the templates by hitting Save which will be Test versions. Use Save & Promote when you are ready to move your template into the "Live" version.

How to tag a user in Slack channel

  1. : notifies only the active members of a channel.
  2. : notifies all members of a channel, active or not.
  3. : notifies every person in the #general channel (i.e. every non-guest member of a workspace).
  4. To tag a user specifically, you can use <@abc.xyz> if [email protected] is your email id.

How to test a Slack template

  1. To send a DM, you can use @name in the Slack Recipient and choose the Slack provider
  2. To send a message to a channel, use #channel_name. Make sure the App you created should be added to the Channel where you are sending the message.

Discord

  1. Discord Template: The message body can be in Text or JSON depending on the kind of input.
  2. Placeholders: Below the "Channels" section on the left, you can find placeholders. Placeholders are denoted by {{}} or Handlebars. You may define the parameters of Placeholders by clicking on it, which opens up a pop-up window where you can define them. Check out this comprehensive guide on how to use "Handlebars"
  3. Preview: Review your content and take a look at what your message would look like in the Preview section on the right.
  4. Save & Save and Promote: Save and create different versions of the templates by hitting Save which will be Test versions. Use Save & Promote when you are ready to move your template into the "Live" version.

Teams

  1. Teams Template: The message body can be in Text or JSON depending on the kind of input.
  2. Placeholders: Below the "Channels" section on the left, you can find placeholders. Placeholders are denoted by {{}} or Handlebars. You may define the parameters of Placeholders by clicking on it, which opens up a pop-up window where you can define them. Check out this comprehensive guide on how to use "Handlebars"
  3. Preview: Review your content and take a look at what your message would look like in the Preview section on the right.
  4. Save & Save and Promote: Save and create different versions of the templates by hitting Save which will be Test versions. Use Save & Promote when you are ready to move your template into the "Live" version.

How to test Slack template

You can use this feature to conduct thorough testing of a template prior to its inclusion in any Notification Event. This ensures the early detection and resolution of any potential issues, ensuring a seamless user experience.

  1. Click 'Run Test' on the top right hand side of the template.
  2. It opens the pop up as shown below.
  1. Enter the slack recipient where the message should be sent.
  2. Select a Slack provider which is already configured in Fyno.
  3. When you click 'TEST', it will send Slack message to the recipient with the selected service provider. You will see the success or failure message along with the link for Sent Logs.