Run Job Change Sweep
run_job_change_sweepFor this connection's contacts, WHICH OF THEM CHANGED JOBS -- and queue what follows for review. An enrichment run is NOT this: enrichment fills a contact's own missing fields and maps no employer, so it cannot notice a move. This batch-enriches the scope, compares each employer against the CRM, and for every mover enqueues the whole JOB_CHANGE_DEPARTURE: contact archived, account updated, owner alerted, person created at their new employer. IT IS THE WHOLE SEQUENCE -- no create run afterwards, the movers are created by the plan it enqueues. IT RUNS ITSELF AND TAKES NO DISPATCH STEP: confirming the plan starts it, so a dispatch_run after it makes the plan unexecutable. It returns a task id and movers appear in the queue as it finds them. NOTHING REACHES THE CRM WITHOUT A PERSON: every action lands in the review queue. IT SPENDS: one credit per contact the first time it is enriched, free afterwards, so a book never swept is the expensive pass. credit_cap IS REQUIRED and is the most it may spend; if a person names a budget, set it here, and a scope past it leaves the remainder UNASKED, not unmoved. A cap above the workspace's per-run maximum is refused.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| credit_cap | Yes | Required: the most provider credits this sweep may spend, one per contact asked about at most. Contacts past it are not asked about by this sweep; if a person names a budget, this is it. | |
| filter_spec | No | WHICH contacts to ask about, as a filter over the mirror -- the same grammar count_crm_records takes, so a population you have already counted can be swept unchanged. Omit it and every contact on the connection is swept, up to credit_cap, which is rarely what a person asking a question means: a sweep of the whole book enriches contacts across it and charges for each one never enriched before. | |
| connection_id | Yes | The CRM connection. Call list_crm_connections first. |