Active |
---|
This application does not need additional settings. So you can make connectionUnique, active service acces point to a network. There are different types of connections (API key, Oauth…). More only by using your login credentials or by following the instructions below . |
A source of variables that will be used for creating result text using the Mustache templateTemplates are predefined scenarios that you can expand and customize to create new scenarios. You can then share these with friends and colleagues. More.
We can use Google Sheets for this purpose.
To work with Google Sheets, you have to have a Google account. If you do not have one, you can create a Google account at https://accounts.google.com.
For more details about the Mustache template system, please visit the Mustache official website.
Adding a Mustache ModuleThe module is an application or tool within the Boost.space system. The entire system is built on this concept of modularity. (module - Contacts) More to your ScenarioA specific connection between applications in which data can be transferred. Two types of scenarios: active/inactive. More
1. Click on the blue button, Create a new scenario in the top-right corner of Boost.spaceCentralization and synchronization platform, where you can organize and manage your data. More IntegratorPart of the Boost.space system, where you can create your connections and automate your processes. More’s Dashboard page or ScenariosA specific connection between applications in which data can be transferred. Two types of scenarios: active/inactive. More page
2. Search for the Mustache module using the search field
3. Select Mustache by clicking on the module’s icon
4. Click on the Continue button
5. Your scenario is now open
6. Start by clicking on the white question mark icon in the center of your scenario
7. Select Mustache from the menu
Mustache is a simple template system allowing you to generate output content from the provided template with variables.
To demonstrate what the module does, we will generate a short party invitation sent by email.
Template |
Create the desired Mustache template in this field. Use variables as required and close them into double curly braces {{}}. These braces are called mustaches. |
Variables |
Now you have to define the variables used in your text above. We have used four variables in mustaches in our sample template. These variables are name, date, time and place. |
1. Click on the Add itemItems are rows in records (order/request/invoice/purchase...) button in the Variables section
2. There are two fields in the Add item dialog – Key and Value.
Key |
Enter a variable used in your template. Do not use curly braces. |
Value |
Specify the source of the variable. We have used the Google Sheets module, Watch a WorksheettriggerEvery scenario has a trigger, an event that starts your scenario. A scenario must have a trigger. There can only be one trigger for each scenario. When you create a new scenario, the first module you choose is your trigger for that scenario. Create a trigger by clicking on the empty module of a newly created scenario or moving the... and have chosen the Events table from where to load the variables. When someone enters values into the table, these values will be used as variables for our Mustache template. |
Now, when the source of variables (using the Google Sheets module) and all needed variables in the Mustache module are set, we should decide what to do with the resulting text we get as output from the Mustache module.
As an example, we will send an email with our invitation.
Mustache, as a transformer module, cannot be the last in the scenario.
1. Add another module after the Mustache module
2. It can be the Email module, for example
3. Select the Send an email action
1. Ensure that a connection to your email is established (to establish a connection to the email module follow instructions in the Email documentation)
2. Add recipients of the invitation in the To field
3. Enter the subject of the email into the Subject field
4. Add the Mustache module Compile a template action to the Content field
Once your Mustache scenario is tested and ready to use, you have to activate it.
Activate your scenario by following Step 4 in the Creating a scenario article.