Generate Ai Run Condition
POST /enrichment/ai-formula/generate-condition
Turn a rule in words into a run condition. SPENDS CREDITS, TOKEN-METERED.
“Only run for CEOs with no work email” becomes an expression you can put in
a config’s run_condition, so the enrichment skips rows it should not
touch - which is how this pays for itself.
The charge is METERED ON TOKENS rather than flat: a long rule with a large
sample record costs more than a short one. Keep sampleData to a single
representative record.
Authorizations
Parameters
Header Parameters
Request Body required
Describe in words when an enrichment should run; get back an expression.
The app takes a FREE DICT here, so this model takes one too rather than narrowing below it - every field is optional and unknown keys are forwarded untouched. Narrowing would refuse a body the browser accepts, which is the mirror image of the bug the strict models elsewhere in this file prevent.
Responses
200
Successful Response
object
One enrichment object, open-shaped.
Open on purpose: a workbench column set is defined by the CUSTOMER at runtime, and the enrichment result shapes grow with every provider added. Pinning them would drop whatever a provider returned that this contract had not caught up on, which on an enrichment surface is the data the customer paid for.
object
object
Whether there are more pages
Items per page
Current page number (1-indexed)
Total number of items
422
Validation Error