Scripts
The Scripts feature allows you to implement more complex business logic. For users familiar with writing Python scripts, you can write scripts to access incident data (same data as accessed by rules) then perform activities more complex than can be handled by rules. Scripts can be triggered by playbooks, rules or workflows.
Functions use scripts to provide input values. In Playbook designer, this is called a function input script. In workflows, it is a pre-process script.
Playbooks have local scripts, which apply only to the playbook where it was created. These scripts have additional operations to access the output of functions in the playbook.
Workflows allow simpler scripts to be used as conditions for inclusive and exclusive gateways.