show / hide menu

Mail Template

In the Mail Template tab, users will be able to see all default templates of the mail notification alerts for each event that takes place pertaining to robots, machines, jobs, queues and triggers. Apart from the default template, the user has the option to create a custom template by clicking on the ADD button.
This tab displays the TemplateName and Category for the created templates. The user has to click on the ‘Edit’ button next to the respective template name if the user wants to alter the Template name, Category, subject and body of the email. Also, the relevant tags can be added and the ‘Isdefault’ toggle button can be used to set the template as default. The ‘Delete’ option is also available if a specific template is no longer needed.

The “Show Filter” button helps to filter the mail templates based on the Category, Template Name and Tags.

The “Search” button can be clicked after entering the required data in the respective field(s).

The “Refresh” button helps to reload the window so that user can view the latest details.

Adding a new Mail Template

Apart from the default template, the user has the option to create a custom mail template.

Steps to create a Mail Template in the Bot Manager:

  • Click on the ‘+Add’ button to create a new mail template.
  • In a new window that will appear, provide input to the mandatory fields such as Template name, Category, Subject and Body that need to be filled out depending on the alert type.
  • If the “IsDefault” toggle button is enabled, then the default mail template would be the custom template created by the user.
  • There is also a section to add any existing tags to simplify the filtering of mail templates.

Editing/Deleting an Existing Template

The user has to click on the ‘Edit’ button next to the respective template name if the user wants to alter the Template name, Category, subject, body of the email, and Tags. Users can also set this template as a default by enabling the ‘IsDefault’ toggle button. The delete option is also available if a specific template is no longer needed.

Customizing the Mail template

While customizing the Mail template user can give a meaningful template name and a subject line. The user can customize the subject line of the notification mail by using the BOT manager notification template. When it comes to the body of the mail, user needs to follow the below given formats in order to fetch the ROBOT, QUEUE, MACHINE and JOB details.

The format for creating the body is @Model.[Model Variable].

Category indicates the specific alert type for which the notification mail has to be sent.

Example: The body template for the category of ROBOTConnected.

Windows Account Name: @Model.AccountName

Connected Date&Time:    @Model.StartDateTime

Machine Name:                 @Model.MachineName

Message:         The Robot @Model.RobotName was connected.

Screenshot of rendered mail body

Bot Manager Notification Template

Refer to the below provided tables for the available categories and Model variable name which can be used in mail templates:

Machine

Categories: MachineConnected, MachineDisconnected

Model VariableDescription
MachinenameThe Name of the Machine
StartDateTimeAgent Service start Date and Time.
EndDateTimeAgent Service end Date and Time.

Robot

Categories: RobotConnected, RobotDisconnected

Model VariablesDescription
AccountNameAccount Name of robot session.
StartDateTimeThe robot session’s start date and time.
EndDateTimeThe robot session’s end date and time, only if Robot is disconnected.
MachineNameThe name of the Machine.
RobotNameThe name of the connected Robot.
RobotIdThe connected Robot’s ID.

Job

Categories: JobCancelled, JobCompleted, JobFaulted, JobNotStarted, JobScheduled, JobStarted, JobStatusChnages, JobStopped, JobUnresponsive

Model VariableDescription
RobotNameName of the connected Robot.
RobotIdThe Id of the connected robot.
CreatedByAuthor of the job.
AccountNameName of robot session’s account.
SourceThe source of the job.
StartDateTimeCreated job’s start Date and Time.
EndDateTimeCreated job’s end Date and Time.
ProcessNameProcess name of the job.
ErrorMessageIf the job fails, the error message is displayed.
ErrorSourceIf the job is faulted, the source of the mistake is displayed.
JobIdJob’s Id of the scheduled job.
CreatedDateTimeThe scheduled job’s created Date and Time.
RequestedDateTimeThe scheduled job’s requested Date and Time.
ExpiredTimeEnd Date and Time of the scheduled job.
ArgumentsArguments of the scheduled job.
StatusThe status of the job.

Queue

Categories: QueueItemAbandoned, QueueItemAdded, QueueItemCompleted, QueueItemFailed, QueueItemStarted.

Model VariableDescription
TransactionIdThe transaction ID of the Robot Transaction.
QueueItemIdThe Queue Item’s ID.
KeyThe Queue item’s key.
QueueNameThe name of the Queue.
QueueIdThe queue ID.
DescriptionDescription of the queue is specified here.
DeadlineDeadline of queue item.
PostponeThe date on which the queue item will be postponed.
CreatedDatetimeThe queue item’s created DateTime.
CreatedByThe queue item’s author.
PriorityThe item’s priority in the queue.
ReviseStatusBoolean that represents the queue item’s revised status.
ReviseByThe user who edited the queue item.
ReasonThe reason for the modification.
OutputThe output of the transaction.
ProgressProgress of the transaction.
ErrorTypeThe type of error that is either application or business.
TransactionNameName of the transaction.
TransactionItemThe items of the transaction.
ReferenceThe reference of the transaction.
StatusThe transaction’s current status.
EndDateTimeThe transaction’s end date and time.
StartDateTimeTransaction’s start date and time.
ProcessNameName of the process.
RobotNameThe name of the Robot.
SessionIdThe robot session Id.

Trigger

Categories: TriggerAutoDisabled

Model VariableDescription
TriggerNameThe name of the Trigger.
ReasonDisplays error message if job fails even after last attempt with same error.
FailureCountDisplays number of job execution failures after which the trigger will be disabled.