Automations that are triggered when annotations are tagged on a video.
Via the API
Via the API
annotation_type_id
should be the annotation type for which you want to configure the action.
In this example, it is assumed you have already configured a “Goal” annotation type as described in this guide.create_clip
key in the configuration object. This is the ID of the action type that you want to trigger.motto_jwt
key in the configuration object. This is the Motto JWT token that is used to by our servers to authenticate the action calls,
since actions are asynchronous in nature and actually may call Motto’s Studio API (or even external APIs). You can provide your own JWT token, but it is recommended to provide credentials to an account with only the necessary permissions (in this example the permission needed to create a clip).
name
and relative_start_offset
. These are specific to the action type that you are configuring. In this example, the name
field is used as part of the name the clip will be given, and the relative_start_offset
and relative_end_offset
fields are the start and end times of the clip relative to the annotation time.Via the API
$secret.<secret_id>
syntax.
For example, if you wanted to use the motto_jwt
secret in your action configuration, you would reference it like this:asset_id
(which is the “output field” of that particular action type)
as input for an action that shares it to Instagram (which may require an asset_id
as its input field).
Fortunately, chaining actions is not difficult to configure. In fact, it is very similar to configuring a single action, but with the added step of providing the output of one action as input for the next action.
For the example above, the configuration may look like this:
$create_clip.asset_id
is a reference to the output field of the create_clip
action. This is how you chain actions together.