Stages
A stage consists of a prompt, actions/tools, and functions section.
Prompt
In the prompt section, you can tell the LLM what to do when this stage is active. For example, you can instruct the LLM to ask the user/caller for their name and date of birth.
With prompts you can also define when a specific action, i.e., a function call, should take place.
Prompts can be defined as plain text or generated if you want to include dynamic information from your backend or third-party systems via a webhook.
Tools
In the actions/tools section you define functions that the LLM should call to trigger specific actions. For example, once the user has provided their name and date of birth, the LLM can be instructed to call a function to collect/store this data in memory/state, run an internal JavaScript function for further processing or call-flow control, or even call an external URL as a webhook.
Functions
In the functions section, you can edit JavaScript functions if you want to perform data transformations or call more complex webhooks.