Přeskočit na hlavní obsah

Entity-Specific Parsing Configuration

The module allows for fine-grained control over parsing behavior for different entity types in EspoCRM. Administrators can configure:

  • Which entity types should be processed by the AI
  • Specific email addresses associated with each entity type
  • Grouping logic for related entities

These settings are stored in the system configuration and accessed through helper methods in the AiParsingTool class.


Technické informace​

Entity configuration is managed through several configuration keys:

  • aiParsableEntityTypeList: Array of entity types eligible for AI parsing
  • aiParsingEmailsFor[EntityType]: Email addresses associated with specific entities
  • orGroupFor[EntityType]: Grouping configuration for entities

Key methods in AiParsingTool:

  • getEntityTypeEmails(): Returns configured emails for all parsable entities
  • getAiParsableEntityTypeList(): Static method to retrieve parsable entities
  • buildSettingsEmailColumnFromEntityType(): Generates configuration key names

The module leverages EspoCRM's Config system to store and retrieve these values, with automatic caching within the tool class for performance.