Create and Modify Components with Hero AI
use component building mode to create or change a component on the canvas with natural language hero's component builder agent applies your prompts to the component you have open in the component builder this mode is different from how hero ai executes components docid\ mgzx3dkiiv vi2mhoynev , where the general companion finds and runs components marked visible to hero ai from chat outside the builder for how hero ai switches between companion and building modes, see hero ai companion docid\ crqkfvngpcz wj8xthds7 choose your path i want toβ¦ start here build or change a component on the canvas with ai enter component building mode https //docs swimlane com/create and modify components with hero ai#enter component building mode run an existing component from chat (not edit the canvas) how hero ai executes components docid\ mgzx3dkiiv vi2mhoynev make a component discoverable to the companion components docid\ c7ipcs5ndr9sgu4z6pjs0 β visible to hero ai understand companion vs building modes hero ai companion docid\ crqkfvngpcz wj8xthds7 enter component building mode there is no separate building mode toggle in settings the companion enters component building mode when hero ai opens with component canvas context (the product knows which component you are editing in the component builder) how you open hero ai mode typical use hero ai from the main application toolbar while you are not in the component builder general companion questions and chat not tied to a component canvas; see hero ai companion docid\ crqkfvngpcz wj8xthds7 hero ai while a component is open in the component builder (canvas editor) component building mode describe the component you want; hero updates the canvas navigate away from the component builder (for example, back to the components list) general companion again building mode ends; the panel can stay open steps to enter component building mode open or create a component in the component builder (see components docid\ c7ipcs5ndr9sgu4z6pjs0 ) open hero ai from the top right toolbar, or use the canvas entry point if your build shows build with hero ai on the flow footer confirm the companion shows component building mode (see below) before you send a build or modify prompt what you should see in component building mode when building mode is active, the hero ai panel typically shows a banner such as entered component building mode near the top of the panel a footer bar labeled component building mode a welcome message from hero's component builder agent (for example, that it can help you build components in canvas) if you open hero ai from the main toolbar on the components list and see only hello! how can i help you today? , you are in the general companion , not component building mode open the component in the component builder first, then open hero ai again create or modify a component with hero ai enter component building mode on the component canvas describe what you want (for example "add a virustotal enrichment action and map the url input from the trigger observable ") review the updated component on the canvas and refine with follow up prompts save the component when you are satisfied prompt tips name connectors, intents, and data shapes clearly state inputs and outputs you need (for example, "accept a url string and return reputation score") ask for error handling when external apis are involved see also components docid\ c7ipcs5ndr9sgu4z6pjs0 β component library, component builder, and visible to hero ai how hero ai executes components docid\ mgzx3dkiiv vi2mhoynev β run components from the general companion ai friendly component best practices docid 3pknx5vxkqsjlltojro7bcreate and modify playbooks with hero ai docid\ tmmnjglc0e9lipo37kzpb β playbook building mode hero ai companion docid\ crqkfvngpcz wj8xthds7