AI Ark Data Enrichment
SKILL.md
Available Context
@_platform-references/org-variables.md
AI Ark Data Enrichment
Goal
Batch refresh existing ops table records with current data from AI Ark's enrichment API.
Required Capabilities
- AI Ark API: Bulk enrichment via
ai-ark-enrichedge function
Inputs
table_id: The ops table to enrich (required)column_id: Specific column to target (optional)
Credit Cost
Each contact enrichment (reverse lookup) consumes credits individually. Bulk enrichment processes contacts 4 at a time with rate limiting. Warn users about total credit cost before batch operations — estimate as number_of_rows x credits_per_lookup.
Execution
- Warn the user: "This will enrich N contacts. Each lookup costs credits. Proceed?"
- Call
ai-ark-enrichwithaction: 'bulk_enrich'andtable_id - Function reads all rows, identifies records by email/LinkedIn
- Calls AI Ark reverse lookup API individually (4 concurrent, 250ms between batches)
- Caches full responses in
source_data.ai_ark(enrich-once pattern) - Updates cells with refreshed data
Output Contract
Return summary:
total_rows: Number of rows processedenriched: Number successfully enrichedfailed: Number that failedunchanged: Number already up to date (from cache)
Data Hygiene Workflow
After enrichment, the copilot can:
- Highlight rows where
titleorcompanychanged (job change detected) - Suggest re-qualification for contacts who changed companies