Manage customers, labels and groups
Load when importing, updating customers, defining audiences or exporting customer data.
Match by email. One email identifies one person across Blackbell accounts. Use upsert_customer for one person or import_customers for up to 1,000 rows. Repeated emails match one customer and existing labels are retained. Read get_customer for profile, labels and custom fields, and list_orders with visitor_id for orders. Archived customers stay in the account but leave audiences and counts. import-customers
- Use
bulk_update_customersfor up to 1,000 people. Unknown emails create customers without sending email. Uselabels.modeadd/remove/replace,crm_fieldswithactionset/clear, orrowswithemailand per-personcrm_fields. Explain what will be removed and wait for yes before replace or clear. Up to 200 people return results directly. Above 200, pollget_customer_bulk_updatewith the returnedid. Usecreate_only: trueto create just missing people and returnvisitor_idsfor the entire list (e.g. a hand-picked broadcast audience). - Tag buildings, plans or roles (“Building A Owner”, “VIP”) with labels. Staff, imports and forms on order acceptance can add them. Read
get_form_automationsfor form rules. Forms never remove labels.create_labelreturns the existing label for a taken name.add_labelspreserves other labels. Usebulk_label_customersto add or remove one label for up to 1,000 customers. - Define groups as saved rules, e.g. “any of three Owner labels, excluding Agents”. Use
list_customer_groupsfor rules in words and counts. Staff also build groups in CMS Customers → Groups. Usecreate_customer_groupwithname,labels_in_any,labels_in_all,labels_not_in, and/or dropdownfields(field_id,opis/is_not,value_ids). Show the returned rule and count. - Re-evaluate groups at each use. A new owner qualifies immediately. With
update_customer_group, any rule key replaces the entire rule for every dependent page, form, version and broadcast immediately. Ask first.delete_customer_grouprefuses a group in use. Checkused_byand remove its uses first.
Select an audience
Use the same picker for broadcasts, page/form access, audience versions, blocks and parts. AND all supplied fields. No field means everyone. Label and group matches require sign-in. Offer both “with labels” and “without labels”. For several buildings pass each building label in labels_in_any.
| Match | Labels | Groups |
|---|---|---|
| Every one | labels_in_all (broadcast labels_id_in), match: all | groups_in_all, group_match: all |
| At least one | labels_in_any (broadcast labels_id_in_any), match: any | groups_in_any, group_match: any |
| Exclude | labels_not_in (broadcast labels_id_not_in) | groups_not_in |
Fields, to-dos and CMS actions
Use list_custom_fields and set_customer_fields for details like flat number or car plate. Form answers can fill them. Use set_sign_up_fields for sign-up questions. Use add_customer_todo and list_customer_todos for the app’s “For you” block until the customer taps Done. For a CSV export, call start_export: its answer gives the export id (and a next hint). Call get_export with that id a few seconds later for the file link. The staff member also gets the CSV by email.