g

Hooks


Hooks is a webhook application used for connecting applications together. It is an event based system that has a number of triggers or listeners. You can access the Hooks system under Automation > Hooks. Some typical use cases for Hooks include

Each Hook must be given a Name, an Entity and a Method. 

Entities

Hooks listeners are currently available on the following entities or modules: 

Methods

Based on these entities you are able to apply a listener to certain methods. These currently are 

  1. Created 
  2. Updated 
  3. Deleted

For example, you can have a listener waiting for changes to a Page, in this case, you would create a Hook for the Page entity and the method would be Updated. Based on this listener you can then take one or more actions. 

Actions

Current actions supported:

  1. Create File
  2. Send Email
  3. HTTP Request

These actions are performed in the order they are listed in. 

Create File 

You can create a file based on a template located in templates /hooks/ folder.

Output file: This will create a file in folder /hooks/{hookName}/{batchId}/{actionId}. If no file name specified, the action-{actionId} will be used as filename.

Send Email

You can send an email based on a template located in templates/hooks/ folder.

You can specify the following details: