Skip to content

Stages

A stage consists of a prompt, a tools and function section.

Prompt

The prompt section allows you to tell the LLM what to do if that stage is active. For instance, you can tell the LLM to ask the user/caller about his name and birthday.

Prompts can be either defined as plain text, or can be generated using Javascript code in case you want to include some dynamic information.

Tools

The tools section allow you define functions that should be called by the LLM in order to trigger certain actions. For instance, in case the user provided his name and birthday, the LLM can be instructed to call this function in order to collect/store this data in memory/state, to call some internal javascript function for further processing, call flow handling, or even an external URL as a webhook.

Functions

The function sections allow you to define functions/javascript code that can be used by the tools defined in the tools section.