Prepare & Hash Custom Audience Payload
prepare_custom_audience_payloadNormalize emails to lowercase and trim, convert phone numbers to E.164, then hash them with SHA-256 for custom audience uploads. Optionally add or remove members automatically.
Instructions
Normalizes raw emails (trimmed, lowercase) and phone numbers (E.164 standard) into SHA-256 hashes per OpenAI specification. Optionally uploads the hashed members directly to a custom audience.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | Whether to add or remove members if auto-uploading | add |
| emails | No | List of plain-text customer emails to normalize and hash | |
| phones | No | List of plain-text phone numbers (e.g., '+1 415-555-2671' or '4155552671') | |
| auto_upload | No | If true and custom_audience_id is set, immediately dispatch mutation | |
| custom_audience_id | No | Optional audience ID to automatically upload to |