Chat Templates
Slack
![](https://fynodocs.s3.ap-south-1.amazonaws.com/images/template-slack.png)
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:-
![](https://files.readme.io/5d9b395-image.png)
Handlebars do not work on Slack's block kit builder!
-
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.
- Tag TTL: Enter the duration in numeric value to define the period for which this feature should be valid for.
- Duration: Select Seconds, Minutes, Hours or Days to define the period for which this feature is valid for.
-
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!
-
Preview: Review your content and take a look at what your message would look like in the Preview section on the right.
-
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
- : notifies only the active members of a channel.
- : notifies all members of a channel, active or not.
- : notifies every person in the #general channel (i.e. every non-guest member of a workspace).
- To tag a user specifically, you can use <@abc.xyz> if [email protected] is your email id.
How to test a Slack template
![](https://files.readme.io/75e6ab0-slack_test.png)
- To send a DM, you can use @name in the Slack Recipient and choose the Slack provider
- 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
![](https://fynodocs.s3.ap-south-1.amazonaws.com/images/template-discord.png)
- Discord Template: The message body can be in Text or JSON depending on the kind of input.
- 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"
- Preview: Review your content and take a look at what your message would look like in the Preview section on the right.
- 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
![](https://fynodocs.s3.ap-south-1.amazonaws.com/images/template-teams.png)
- Teams Template: The message body can be in Text or JSON depending on the kind of input.
- 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"
- Preview: Review your content and take a look at what your message would look like in the Preview section on the right.
- 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.
- Click 'Run Test' on the top right hand side of the template.
- It opens the pop up as shown below.
![](https://files.readme.io/c0f70f2-slack_test_template.png)
- Enter the slack recipient where the message should be sent.
- Select a Slack provider which is already configured in Fyno.
- 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.
Updated 1 day ago