What is an Action box?
Last updated
Last updated
Action boxes are created in the Code tab of the Langstack Application template.
An Action box must contain one or more Actions.
Users may define multiple Action boxes within one Langstack application.
The Action box has a Description field labeled “OnExit” by default.
Users can define a meaningful label for the Action box by clicking on the description.
To change the description of an Action box:
Click on the text of the description to start updating the text
Press Enter or click away from the edit field.
An Action box comprises two (2) tabs
Code tab: This is where the user can add Actions for the Action box (More details are provided in the section ‘What is an Action?’)
Variables tab: This is where the user can add variables for the Action box (More details are provided in the section ‘What is a variable?’)
The Shared Variables for Actions can be defined in the “Variables” tab of the Langstack Application template. These Shared Variables are accessible to all created Action boxes throughout the execution of the Langstack Application.
Variables defined in an Action box cover the scope of all Actions within that Action box.