DRUID Data Service
DRUID Data Service is DRUID’s data storage used to persist DRUID entity records created and managed within the DRUID Platform simplifying records authoring. Bot authors can further use these records in NER training and in other different contexts. For example, if you have a CRM where you keep your Accounts list, you can have as well a Data Service from DRUID where you can keep the account records list.
This section describes how to enable DRUID Data Service in a cloud deployment. If you want to use DRUID Data Service in a hybrid deployment, you need to install it. For information on how to install DRUID Data Service, see DRUID Data Service Installation.
Enable DRUID Data Service
After DRUID Support team activates DRUID Data Service on your tenant you need to enable it. To do so, follow these steps:
- In DRUID Portal, on the Administration menu, click Settings.
- Click the DRUID Data Service tab.
- Tick Is enabled.
- Click the Overwrite entity fields button at the bottom of the pop-up to overwrite your existing field types to the ones required by DRUID.
- At the top-right corner of the page, click the Save all button (
).
DRUID screens all existing entities across all bots on your tenant and detects the entities that have fields for which the field type is incompatible with the required system field type. You can go through the list and click on entity (entities) to see which field types were found incompatible.
The following DRUID system fields are automatically populated on entity and entity field creation; therefore, a specific field type is required by DRUID.
DRUID System Field | DRUID field Type |
---|---|
Id | String |
CreatedByUserId | String |
CreatedOn | DateTime |
ModifiedByUserId | String |
ModifiedOn | String |
OperatedByBotId | String |
Use DRUID Data Service Connector to manage entity records within the conversational flows.
Add Data Service Indexes
You can optimize Data Service queries for entities with a large volume of records by adding indexes directly within the DRUID Data Service DB. To add an entity index, follow these steps:
- Navigate to Administration > Settings and access the Druid Data Service Tab.
- In the Druid Data Service Indexes section, click the Add New button.
- In the pop-up that appears, select the desired Entity and provide an Index Name. Optionally, add specific entity fields to the index in the 'Index Fields' area.
- Save the index.
Feel free to add as many entity indexes as needed to suit your requirements.
Review entity indexes
To review existing entity indexes:
-
Click the View all button in the Druid Data Service Indexes section.
-
A pop-up will display a comprehensive list of all indexed entities.
-
You can manage indexes by removing them using the corresponding delete icon.
Druid Data Service indexes offer improved query performance and greater control over data retrieval, enhancing the efficiency of your DRUID experience.