Hero AI
11 min
the hero ai connector enables the execution of advanced language models within swimlane playbooks, enhancing automation with ai driven natural language processing hero ai is an advanced ai platform that integrates with swimlane turbine to provide intelligent automation capabilities within security workflows by leveraging the 'call llm' action, users can execute large language models (llms) to generate insights, automate responses, and enhance decision making processes the integration allows for dynamic interaction with ai models using custom prompts, enabling tailored outputs that can inform security strategies and operations this connector empowers end users to harness the power of ai directly within their security playbooks, streamlining complex tasks and providing a competitive edge in threat detection and response prerequisites to effectively utilize the hero ai connector within swimlane, ensure you have the following prerequisites personal access token authentication with the following parameters url endpoint for hero ai api services pat your unique personal access token for secure access account id identifier for your specific hero ai account tenant id identifier for your tenant within hero ai pat authentication personal access token along with account id and tenant id is required to authenticate swimlane hero ai connector capabilities this connector provides the following capabilities call llm additional notes please pass the tenant id that is available on your turbine instance by default, you can also pass the value of the tenant id as 1 but it is preferred to pass the correct value of the tenant id to the asset configuration configurations swimlane hero ai pat authentication authenticates using personal access token configuration parameters parameter description type required url a url to the target host string required account id account id of the logged in user string required tenant id the tenant id string required pat personal access token string required verify ssl verify ssl certificate boolean optional http proxy a proxy to route requests through string optional actions call llm executes a large language model (llm) within swimlane playbooks using a provided 'prompt' to enhance automation capabilities input argument name type required description prompt string required parameter for call llm temperature number optional the sampling temperature to use range is between 0 and 2 both limits are exclusive (parameter cannot be set equal to 0 or 2) max tokens number optional range is between 1 and 4096 both limits are inclusive (parameter can be set to 1 or 4096) output parameter type description status code number http status code of the response reason string response reason phrase request id string unique identifier generated text string output field generated text finish reason string response reason phrase example \[ { "status code" 200, "response headers" { "date" "fri, 01 mar 2024 06 26 18 gmt", "content type" "application/json; charset=utf 8", "transfer encoding" "chunked", "connection" "keep alive", "vary" "accept encoding", "cache control" "no store", "pragma" "no cache", "x frame options" "sameorigin", "content security policy" "frame ancestors self swimlane app", "strict transport security" "max age=31536000; includesubdomains", "content encoding" "gzip" }, "reason" "ok", "json body" { "request id" "1bf002a4 6d28 4c4f ba94 b7788f603e8f", "generated text" " google is a multinational technology company specializing in internet related s ", "finish reason" "stop sequence" } } ] response headers header description example cache control directives for caching mechanisms no store connection http response header connection keep alive content encoding http response header content encoding gzip content security policy http response header content security policy frame ancestors self swimlane app content type the media type of the resource application/json; charset=utf 8 date the date and time at which the message was originated fri, 01 mar 2024 06 26 18 gmt pragma http response header pragma no cache strict transport security http response header strict transport security max age=31536000; includesubdomains transfer encoding http response header transfer encoding chunked vary http response header vary accept encoding x frame options http response header x frame options sameorigin notes to get pat(personal access token) follow below steps login in turbine using username and password go to profile & user settings ( top right corner) click on personal access token tab generate the token and use to authenticate swimlane llm api will be an external api in order to have better control over the load on this api, this action has been added to used in playbooks