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. |