AI Parsing Integration Configuration
The AI Parsing module integrates with external services through a standardized configuration interface. Administrators can set up the connection through EspoCRM's integration management system.
The configuration requires two main parameters:
- Endpoint: The base URL of the AI parsing service
- Token: Authentication token for accessing the service
These settings are stored in the system's integration entity and accessed through the Integration class. The module automatically handles URL formatting (ensuring trailing slashes) and token validation.
Technické informace
The integration configuration is defined in AiParsing.json with the following field specifications:
endpoint:- Type: URL
- Required for service communication
token:- Type: password
- DB Type: text
- Max Length: 255
- Required: true
The AiParsingTool class provides methods to access these values:
getToken()retrieves the token, throwing an exception if not setgetEndpoint()formats the endpoint URL and validates its presence
Configuration is accessed through the standard EspoCRM integration interface, which is extended by the module's custom view ai-parsing.ts.