Orchestration
...
Native Actions
Hero AI - Creating Custom Native Actions with Hero AI
5 min
swimlane now provides the hero ai native action, which allows seamless integration of ai driven workflows directly into your orchestration processes powered by swimlane llm and the swimlane llm connector, this new feature eliminates the need for complex scripting and manual transformations, offering users a more efficient way to leverage ai capabilities introduction a new native action for custom hero ai prompts previously, incorporating custom ai prompts into playbooks or components required orchestrators to write custom scripts use the transform data action with the new hero ai native action, orchestrators can now input custom prompts use field replacement to dynamically adjust the prompt based on available data output the ai generated response this action brings the full power of ai directly into the hands of orchestrators, enabling more efficient and intelligent workflows benefits of the hero ai action simplified prompt creation no need for custom scripts define the prompt in the action and configure it with field replacements dynamic field replacement seamlessly integrate data from your workflows into the prompt using swimlane’s field replacement system, making prompts more relevant and contextual quick ai powered responses automate the generation of responses from hero ai, enabling real time decision making or analysis in your workflows key interface elements prompt input field define the text prompt that will be sent to hero ai for processing it should be a natural language query or command relevant to the desired hero ai action note that this is a required field if left blank, an error message will appear add playbook property this button lets you add dynamic properties from a playbook, enabling the hero ai to reference real time data during execution for example, adding the playbook property for security alerts will make hero ai aware of specific incidents from your system maxtokens parameter the maxtokens field allows you to set the maximum number of tokens hero ai can use when generating a response a token can be as short as one character or as long as a word the default value of 1024 provides a balanced level of detail, but you can adjust it based on your needs test button and previous playbook run drop down after entering your prompt, click test to see how hero ai responds you can also select a previous playbook run from the drop down menu to test the prompt with historical data the drop down lists previous runs with timestamps, allowing you to see how hero ai handles various datasets from different runs error handling section if a required field is missing or there’s an issue with the prompt, the error outputs section at the bottom of the interface will display the error message click the copy error button to copy the error details for troubleshooting how to use the hero ai action follow these steps to incorporate the hero ai action into your playbooks or components open your playbook in the turbine canvas from the add panel, drag and drop the hero ai action into your canvas set the inputs in the configuration window, input data that hero ai will use to generate responses select fields from your existing workflow to include in the hero ai prompt for dynamic data processing write the custom prompt integrate dynamic data with playbook properties adjust the maxtokens parameter the maxtokens setting defines the number of tokens hero ai can use in its response the default is set to 1024, allowing for detailed responses you can adjust this based on the complexity of your query test the prompt with a previous playbook run click the test button to check how hero ai responds to your input this allows you to fine tune your prompt select a previous playbook run from the drop down to test the prompt using historical data the drop down displays previous runs with timestamps, making it easy to identify relevant playbook runs for testing review the output result the result section will display the response generated by hero ai, along with an example of a successful response message and token output by following these steps, you can create custom prompts that pull in dynamic playbook properties, test results, and ensure the action performs as intended this flexibility allows you to integrate hero ai into various workflows, automating responses or generating summaries with minimal effort