- A unique
title
,description
, anddisplay group
- A
namespace
(e.g.tools.falconpy
) andname
(e.g.call_command
) for the action - Inputs defined in the
expects
section - Steps defined in the
steps
section - An optional
secrets
section
core.http_request
, configured to call an external API.
These steps are also parameterized with the inputs defined in the expects
section.
Only data specified in the
returns
field of the template is logged in Tracecat workflows.
Outputs between steps are not logged unless specified in returns
.Example templates
Example templates
Actions in templates
Templates support all actions defined in the Tracecat Registry. Actions, such ascore.http_request
and tools.falconpy.call_command
, can all be used in templates by specifying the steps.action
field.
Expressions in templates
Templates support the following expressions:inputs
: Reference inputs into the action as defined in theexpects
section.steps
: Reference results from previous steps in the same template.SECRETS
: Reference secrets.FN
: Reference functions.
inputs
and steps
are expressions specific to templates.
SECRETS
and FN
are used in the same way as in workflows.
This means that templates have full support for Tracecat’s powerful inline functions.
For example:
Secrets in templates
Secrets used in templates must be defined in thesecrets
section.
You must specify the secret’s name
, key
, and (if applicable) optional_keys
.
Secrets stored in the secrets manager can be accessed using the SECRETS
context: ${{ SECRETS.<name>.<key> }}
.
For example: