Validating Actions

This article will explain how to validate your custom Actions.

Validating the Schema

Before using the schema for your AI Action, it's essential to validate it to ensure it meets the necessary standards and is free from errors. Within Watermelon, click Validate to see if your schema is valid.


Valid schema

Once the schema passes validation, the available actions will show underneath. These actions represent the functionalities defined in your schema and are ready to be used in your chatbot. Testing these actions ensures that your chatbot can accurately respond to user inquiries and perform the desired tasks.


Invalid schema

Watermelon will show you an error screen when the schema is not valid. It will tell you in which line and column the error is.


To fix your invalid schema, you can open your schema in a text editor such as Visual Studio Code or Swagger Editor Online and download a OpenAPI validator.