Dialog scripts¶
To let users interact with your AI agent, add one or more dialog scripts to the AI agent project. A dialog script is a scenario for the AI agent; it describes what data corpuses the agent must use to respond to various user requests, as well as the actions it should take in response.
Dialog scripts are written in JavaScript. You can use specific Alan AI functions and entities, as well as standard JavaScript to develop scripts. For details, see Server API.
A project may have one or more dialog scripts. Several scripts can be useful if you want to segregate project logic, setup and data structures from utility functions. This will make your project more transparent and easier to support.
Note
In projects with several scripts, scripts are loaded in the order they appear in the scripts panel, starting from the upper one.
To work with scripts in Alan AI Studio, you can:
Learn how to add, rename and delete scripts from the AI agent project
Learn how to transfer scripts between projects and save them locally
Discover keyboard shortcuts provided by Alan AI to enhance your development workflow
Explore the code editor themes and learn how to adjust font sizes for optimal readability