Jinja
21 min
the jinja connector enables the rendering of dynamic content using templating, allowing for the creation of customized outputs based on user provided json data and templates jinja is a powerful templating engine used to generate dynamic content with ease the jinja connector for swimlane turbine allows users to automate the creation of customized documents by rendering templates with json data this integration streamlines the process of generating reports, alerts, and notifications, tailored to the specific needs of security operations by leveraging jinja's templating capabilities within swimlane turbine, users can enhance their security workflows with personalized, data driven document generation, saving time and reducing manual effort limitations none to date supported versions this jinja connector uses the latest version additional docs jinja reference docs link https //github com/pallets/jinja/ authentication methods none to date capabilities this jinja connector provides the following capabilities render object render template render object processes a json file and a jinja template file (such as html, txt, or csv), rendering the template with the provided data to produce a new file attachment accepts one jinja template file ( html, txt, or csv) one json file containing the input data produces a rendered file output in formats like html, txt, or csv example input example json { "user" "alice", "severity" "high", "incident id" 1234, "department" "it", "timestamp" "2025 05 22t14 35 00z", "details" "unauthorized access attempt detected " } example html incident report incident report user {{ input json user }} department {{ input json department }} incident id {{ input json incident id }} severity {{ input json severity }} timestamp {{ input json timestamp }} details {{ input json details }} example txt user {{ input json user }} department {{ input json department }} incident id {{ input json incident id }} severity {{ input json severity }} timestamp {{ input json timestamp }} details {{ input json details }} example csv user,department,incident id,severity,timestamp,details {{ input json user }},{{ input json department }},{{ input json incident id }},{{ input json severity }},{{ input json timestamp }},{{ input json details }} render template renders a template string using the provided json data example input example json { "name" "sandrineeee", "score" 100, "alert title" "t1552 defender atp potential credential stored in a file", "alert state" "success", "alert name" "t1552 defender atp potential credential stored in a file", "alert product" "azure sentinel" } example template txt the json has alert title {{ alert title }} and state {{ alert state }} example output the json has alert title t1552 defender atp potential credential stored in a file and state success actions render object processes a json and jinja template to generate a file attachment using the 'attachments' input input argument name type required description attachments array required upload two file attachments one jinja template file ( html, txt, or csv) and one json file containing the input data file string optional parameter for render object file name string optional name of the resource output parameter type description file object attachment file string output field file file name string name of the resource example \[ { "file" { "file" "string", "file name" "example name" } } ] render template renders a jinja template using the provided json and string, producing a processed output endpoint method get input argument name type required description record object optional parameter for render template name string optional name of the resource score number optional score value alert title string optional parameter for render template alert state string optional parameter for render template alert name string optional name of the resource alert product string optional parameter for render template text data string optional response data output parameter type description rendered template string output field rendered template status code number http status code of the response reason string response reason phrase headers object http headers for the request example \[ { "rendered template" "the json has alert title t1552 defender atp potential credential stored in a ", "status code" 200, "reason" "ok", "headers" {} } ]