Add a Get Records Skill with Custom Entity

Updated 

Overview

The Get Records node allows you to retrieve data from custom entities using defined filters and store the results in variables. It also offers sorting options to organize the extracted data in a structured and meaningful way.

Steps to Add a Get Records Skill with Custom Entity

Refer to this article for detailed steps on adding a skill to an AI Agent.

  1. On the Skills window, click Add Skill in the top right corner and select Get Records from the dropdown.

  2. Enter the Name and Description.

  3. Under Setup Function, select Custom Entity in the Select Data Type field.

  4. Under Custom Entity, select the Custom Entity containing the required records to be fetched.

  5. Use Filter Records to define the field, operator, and value criteria for filtering records.

  6. For more dynamic filtering, use Query Fields with the same field as in Filter Records. Set the Required option to Yes or No; when enabled, GenAI will automatically prompt the user for the value during the conversation.

  7. Define the Output Variable, which stores the value retrieved from the record.

  8. In the Output Adapter field, you can write a Groovy script or use the Custom Code option to apply additional filtering logic. This script runs in the background on top of the retrieved records for further refinement.

    Note: If this field is left null, the output will be returned as fetched, without any modifications.

  9. Click Save in the bottom right corner.