Resources »

Packages »

Auto-Reply Bot

Introduction

This package adds a new bot (Auto-Reply Bot) that automatically replies back to the sender with a confirmation message on each new ticket conversation.

Importing the package

Navigate to Setup » Configure » Import Package.

Paste the following package into the large text box:



{
  "package": {
    "name": "Auto-Reply Bot",
    "cerb_version": "8.0.1",
    "revision": 1,
    "requires": {
      "cerb_version": "8.0.0",
      "plugins": [

      ]
    },
    "configure": {
      "prompts": [
        {
          "type": "text",
          "label": "The name of your organization:",
          "key": "org_name",
          "params": {
            "default": "Example, Inc."
          }
        }
      ],
      "placeholders": [

      ]
    }
  },
  "bots": [
    {
      "uid": "bot_79",
      "name": "Auto-Reply Bot",
      "owner": {
        "context": "cerberusweb.contexts.app",
        "id": 0
      },
      "is_disabled": false,
      "params": {
        "config": null,
        "events": {
          "mode": "allow",
          "items": [
            "event.macro.message",
            "event.mail.received"
          ]
        },
        "actions": {
          "mode": "all",
          "items": [

          ]
        }
      },
      "image": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAAAXNSR0IArs4c6QAAGJpJREFUeAHtnVuMXFV2hlfdu/rmdtv4gmkbcLhkGGBGowzGwZgAigaSmSCSF0IUpASkCMRrHgJEkRCKeIHHPOUp4iXShEmioIxQIDAQyODhMtjYA3jAV3zptnG73Zfq6qrs77T/8urjU6erusqXCb2l3Wvttfdee631n7X3qapT1ZmRfzpet+Vy2UQge9lYsmxIFIFlQC6zCyF/mdnTMCdvNevLzFpffcb6rWKDmYoN2aQNZWjPWk+2ZsVMzXK1qmVtftetBTKXyVqlnrXpes6mMiU7ZSUbq5VsvF6yM1a006FOhjprObNMprHe5cJcFoAQ0KJV7YoQqm9nR+1buTFbk5u2UsjfbDZr+XzecrlcxNOmZjL5UDOh9iyIZb1et1qtFsnq9dnAz9jc3FxUkVerVavM1W10rmif1lbazvpa+ypAPBUArAVoL3XJXMpDvS9c+XdkD9gdxaM2mK9ZIQSe4FOLxWIDBMBQPQfI/NU9D8q5K/0cGPN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Argo///c74X/c6rZWYGhLEig8EnN6cto+yl9tP9+4PXoDMsGWZVGIwJIB4R+VPFH4wOrhew/Z8LqDg1qZASCAACBnwqH9SW21vb3uAZsJ/6Z7uaRHYMmAbMt8Gd5I5EVfrvHGHAAoKyampu290o328RW32Ey+vLw9pePQ6F0yIGO1ko1OhfeYwvtXlfDjAqcqdTsWPjPYn11v+8vr7cTgkPEs8HJpLwKpv3XSnqrl0d2IwMJHObqhcVlHRxFYBqSj8HV/8jIg3Y9pRxqXAekofN2fvAxI92PakcZlQDoKX/cnLwPS/Zh2pHEZkI7C1/3Jy4B0P6YdaVwGpKPwdX/yMiDdj2lHGv8PwePJKIqRbGYAAAAASUVORK5CYII=",
      "behaviors": [
        {
          "uid": "behavior_510",
          "title": "Automatically respond to new conversations",
          "is_disabled": false,
          "is_private": false,
          "priority": 50,
          "event": {
            "key": "event.mail.received",
            "label": "New message added to ticket"
          },
          "nodes": [
            {
              "type": "switch",
              "title": "Is this a new conversation?",
              "status": "live",
              "nodes": [
                {
                  "type": "outcome",
                  "title": "Yes",
                  "status": "live",
                  "params": {
                    "groups": [
                      {
                        "any": 0,
                        "conditions": [
                          {
                            "condition": "is_first",
                            "bool": "1"
                          },
                          {
                            "condition": "is_outgoing",
                            "bool": "0"
                          }
                        ]
                      }
                    ]
                  },
                  "nodes": [
                    {
                      "type": "action",
                      "title": "Check if it's an automated sender",
                      "status": "live",
                      "params": {
                        "actions": [
                          {
                            "action": "_run_behavior",
                            "on": "id",
                            "behavior_id": "{{{uid.behavior_511}}}",
                            "run_in_simulator": "1",
                            "var": "_behavior"
                          }
                        ]
                      }
                    },
                    {
                      "type": "switch",
                      "title": "Is it from an automated sender?",
                      "status": "live",
                      "nodes": [
                        {
                          "type": "outcome",
                          "title": "Yes",
                          "status": "live",
                          "params": {
                            "groups": [
                              {
                                "any": 0,
                                "conditions": [
                                  {
                                    "condition": "_custom_script",
                                    "tpl": "{{_behavior.result}}",
                                    "oper": "is",
                                    "value": "true"
                                  }
                                ]
                              }
                            ]
                          }
                        },
                        {
                          "type": "outcome",
                          "title": "No",
                          "status": "live",
                          "params": {
                            "groups": [
                              {
                                "any": 0,
                                "conditions": [

                                ]
                              }
                            ]
                          },
                          "nodes": [
                            {
                              "type": "action",
                              "title": "Send auto-reply message",
                              "status": "live",
                              "params": {
                                "actions": [
                                  {
                                    "action": "send_email",
                                    "from_address_id": "0",
                                    "to": "{{sender_address}}",
                                    "cc": "",
                                    "bcc": "",
                                    "subject": "Received: {{ticket_subject}} [#{{ticket_mask}}]",
                                    "html_template_id": "",
                                    "format": "",
                                    "content": "***** THIS IS AN AUTOMATED MESSAGE *****\r\n\r\n{% if sender_contact_first_name %}\r\nHi {{sender_contact_first_name}},\r\n\r\n{% endif %}\r\nThis is a confirmation that we have received your message.\r\n\r\nReference #: {{ticket_mask}}\r\nSubject: {{ticket_subject}}\r\n\r\nWe'll respond as soon as possible.\r\n\r\nThanks for contacting us!\r\n\r\n-- \r\nSupport Team\r\n{{{org_name}}}",
                                    "headers": "Auto-Submitted: auto-replied"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "uid": "behavior_511",
          "title": "Check if a message is from an automated sender",
          "is_disabled": false,
          "is_private": false,
          "priority": 1,
          "event": {
            "key": "event.macro.message",
            "label": "Custom behavior on message"
          },
          "nodes": [
            {
              "type": "switch",
              "title": "Does the message have auto-reply characteristics?",
              "status": "live",
              "nodes": [
                {
                  "type": "outcome",
                  "title": "Yes, it's a bounce",
                  "status": "live",
                  "params": {
                    "groups": [
                      {
                        "any": 1,
                        "conditions": [
                          {
                            "condition": "sender_address",
                            "oper": "like",
                            "value": "postmaster@*"
                          },
                          {
                            "condition": "sender_address",
                            "oper": "like",
                            "value": "mailer-daemon@*"
                          }
                        ]
                      }
                    ]
                  },
                  "nodes": [
                    {
                      "type": "action",
                      "title": "true()",
                      "status": "live",
                      "params": {
                        "actions": [
                          {
                            "action": "_run_subroutine",
                            "subroutine": "true()"
                          }
                        ]
                      }
                    }
                  ]
                },
                {
                  "type": "outcome",
                  "title": "Yes, it has an Auto-Submitted header",
                  "status": "live",
                  "params": {
                    "groups": [
                      {
                        "any": 0,
                        "conditions": [
                          {
                            "condition": "headers",
                            "header": "Auto-Submitted",
                            "oper": "!is",
                            "value": ""
                          },
                          {
                            "condition": "headers",
                            "header": "Auto-Submitted",
                            "oper": "!is",
                            "value": "no"
                          }
                        ]
                      }
                    ]
                  },
                  "nodes": [
                    {
                      "type": "action",
                      "title": "true()",
                      "status": "live",
                      "params": {
                        "actions": [
                          {
                            "action": "_run_subroutine",
                            "subroutine": "true()"
                          }
                        ]
                      }
                    }
                  ]
                },
                {
                  "type": "outcome",
                  "title": "Yes, it has Preference/Precedence headers",
                  "status": "live",
                  "params": {
                    "groups": [
                      {
                        "any": 1,
                        "conditions": [
                          {
                            "condition": "headers",
                            "header": "Preference",
                            "oper": "is",
                            "value": "auto_reply"
                          },
                          {
                            "condition": "headers",
                            "header": "Precedence",
                            "oper": "is",
                            "value": "bulk"
                          }
                        ]
                      }
                    ]
                  },
                  "nodes": [
                    {
                      "type": "action",
                      "title": "true()",
                      "status": "live",
                      "params": {
                        "actions": [
                          {
                            "action": "_run_subroutine",
                            "subroutine": "true()"
                          }
                        ]
                      }
                    }
                  ]
                },
                {
                  "type": "outcome",
                  "title": "Yes, it has X-Precedence, X-Autorespond, X-Autogenerated, or X-AutoReply-From headers",
                  "status": "live",
                  "params": {
                    "groups": [
                      {
                        "any": 1,
                        "conditions": [
                          {
                            "condition": "headers",
                            "header": "X-Autogenerated",
                            "oper": "!is",
                            "value": ""
                          },
                          {
                            "condition": "headers",
                            "header": "X-AutoReply",
                            "oper": "!is",
                            "value": ""
                          },
                          {
                            "condition": "headers",
                            "header": "X-AutoReply-From",
                            "oper": "!is",
                            "value": ""
                          },
                          {
                            "condition": "headers",
                            "header": "X-Autorespond",
                            "oper": "!is",
                            "value": ""
                          },
                          {
                            "condition": "headers",
                            "header": "X-Precedence",
                            "oper": "is",
                            "value": "auto_reply"
                          }
                        ]
                      }
                    ]
                  },
                  "nodes": [
                    {
                      "type": "action",
                      "title": "true()",
                      "status": "live",
                      "params": {
                        "actions": [
                          {
                            "action": "_run_subroutine",
                            "subroutine": "true()"
                          }
                        ]
                      }
                    }
                  ]
                },
                {
                  "type": "outcome",
                  "title": "Yes, it has an Out of Office subject",
                  "status": "live",
                  "params": {
                    "groups": [
                      {
                        "any": 1,
                        "conditions": [
                          {
                            "condition": "headers",
                            "header": "Subject",
                            "oper": "contains",
                            "value": "Out of Office"
                          },
                          {
                            "condition": "headers",
                            "header": "Subject",
                            "oper": "contains",
                            "value": "is out of the office"
                          }
                        ]
                      }
                    ]
                  },
                  "nodes": [
                    {
                      "type": "action",
                      "title": "true()",
                      "status": "live",
                      "params": {
                        "actions": [
                          {
                            "action": "_run_subroutine",
                            "subroutine": "true()"
                          }
                        ]
                      }
                    }
                  ]
                },
                {
                  "type": "outcome",
                  "title": "Yes, it has an Auto Response subject",
                  "status": "live",
                  "params": {
                    "groups": [
                      {
                        "any": 1,
                        "conditions": [
                          {
                            "condition": "headers",
                            "header": "Subject",
                            "oper": "contains",
                            "value": "Auto Response"
                          },
                          {
                            "condition": "headers",
                            "header": "Subject",
                            "oper": "contains",
                            "value": "AutoReply"
                          }
                        ]
                      }
                    ]
                  },
                  "nodes": [
                    {
                      "type": "action",
                      "title": "true()",
                      "status": "live",
                      "params": {
                        "actions": [
                          {
                            "action": "_run_subroutine",
                            "subroutine": "true()"
                          }
                        ]
                      }
                    }
                  ]
                },
                {
                  "type": "outcome",
                  "title": "No",
                  "status": "live",
                  "params": {
                    "groups": [
                      {
                        "any": 0,
                        "conditions": [

                        ]
                      }
                    ]
                  },
                  "nodes": [
                    {
                      "type": "action",
                      "title": "false()",
                      "status": "live",
                      "params": {
                        "actions": [
                          {
                            "action": "_run_subroutine",
                            "subroutine": "false()"
                          }
                        ]
                      }
                    }
                  ]
                }
              ]
            },
            {
              "type": "subroutine",
              "title": "true()",
              "status": "live",
              "nodes": [
                {
                  "type": "action",
                  "title": "Exit: The message is an auto-reply",
                  "status": "live",
                  "params": {
                    "actions": [
                      {
                        "action": "_set_custom_var",
                        "value": "true",
                        "format": "",
                        "is_simulator_only": "0",
                        "var": "result"
                      },
                      {
                        "action": "_exit",
                        "mode": ""
                      }
                    ]
                  }
                }
              ]
            },
            {
              "type": "subroutine",
              "title": "false()",
              "status": "live",
              "nodes": [
                {
                  "type": "action",
                  "title": "Exit: The message is not an auto-reply",
                  "status": "live",
                  "params": {
                    "actions": [
                      {
                        "action": "_set_custom_var",
                        "value": "false",
                        "format": "",
                        "is_simulator_only": "0",
                        "var": "result"
                      },
                      {
                        "action": "_exit",
                        "mode": ""
                      }
                    ]
                  }
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}


Customizing the behavior

Click on the Auto-Reply Bot bubble:

Click the Behaviors button.

Click on Automatically respond to new conversations.

Click on the Send auto-reply message node at the bottom of the Behavior Tree widget.

Select Edit from the menu.

Modify the Content: to suit your needs.

Click the Save & Close button.