List of system functions

Complete list of system functions available in EngageOne™ Communicate

system.date Current date. See Formatting and handling dates.
system.month Current month.
system.day Current day.
system.year Current year.
system.now Current date.
system.moment User moment. See https://momentjs.com/.
system.botId ID of the current bot.
system.toUpperCase(data) Convert data to uppercase. See Formatting strings.
system.toLowerCase(data) Convert data to lowercase.
system.toProperCase(data) Convert data to proper case.
system.formatDate(data, format) Format the date.
system.replace(data, remove, replace) Replace the remove with the replace in the data. See Formatting strings
system.formatCurrency(data, format, symbol, code) Set the currency and its format. See Formatting strings.
system.sendFromUser(text) Send something to the back end as if the user sent it from the chat. See Send messages to user directly.
system.sendToUser(text) Send something to the user as if the back end sent it to them. See Send messages to user directly.
system.decrypt(text) Using the key set in the bot configuration decrypt the data. See Encryption and EngageOne™ Communicate chatbots.
system.encrypt(text) Using the key set in the bot configuration encrypt the data. See Encryption and EngageOne™ Communicate chatbots.
getChatHistory() Retrieve a transcript of messages between user and the bot (the chat history) as an HTML string. See REST example.

Using the system functions

In a Set Variable action orderDate = system.date
In interactions in the text sent to users - note the single braces enclosing the function. Today's date is {system.date}
In the Body field of a REST action - note the double braces enclosing the function. { date: {{system.date}} }