This connector sends an email when a clause is invoked.

See the reference documentation for Custom Actions for guidance on how to use this configuration definition.

In the sample below, replace <EMAIL>, <SUBJECT> and the value of "message" with your destination email address, message subject and message content respectively. The value of message can use variables from the response. Please be sure to use variables that correspond with the response for your specific Smart Clause. View AP templates and their responses here.

{
  "$class": "io.clause.outbound.physical.alerts.email.EmailMessage",
  "contractId": metadata.contractId,
  "to": "<EMAIL>",
  "subject": "<SUBJECT>",
  "message": "The owed amount is" & response.amount.doubleValue & " " & response.amount.currencyCode
}