LeadGeneratorConfig
Stored in the leadgeneratorconfigs collection. createdAt and updatedAt are maintained automatically.
Returned by GET /lead-gen-ai, DELETE /lead-gen-ai/:configId.
| Field | Type | Notes |
|---|---|---|
company | ObjectId -> Company | |
createdBy | ObjectId -> Member | |
prompt | string | default "" |
aiType | string | default gemini |
count | number | default 25 |
type | string | default contact |
industry | string | default "" |
userEnquiryEnabled | boolean | default true |
additionalFilters | any | default {} |
genieSchedulerId | ObjectId -> GenieScheduler | default null |
genieWebhookUrl | string | default "" |
enrichmentEnabled | boolean | default false |
enrichWebhookUrl | string | default "" |
createdLeadIds | ObjectId[] -> Lead | default [] |
createdContactIds | ObjectId[] -> Contact | default [] |
aiReturnedCount | number | default 0 |
enrichmentProgress.total | number | default 0 |
enrichmentProgress.completed | number | default 0 |
enrichmentProgress.failed | number | default 0 |
status | string | default queued · one of queued, generating, pending, enriching, completed, failed |
error | string | default "" |
notifiedStages.started | boolean | default false |
notifiedStages.completed | boolean | default false |
notifiedStages.failed | boolean | default false |
_id | ObjectId | default "6a95712f932657988a91c0a1" |
createdAt | date | set once |
updatedAt | date |