Skip to main content

Senzey

Senzey is a CRM used for managing leads, clients, and activity logs.

Official Senzey doc hubs (For deeper reference):


Adapter Functions

getCustomerDetails

Looks up a contact by phone number.

When it runs: At the start of the flow to identify whether the sender is a known contact before routing, and whenever a chat is opened via Texter UI.

Basic

  senzey_lookup:
type: func
func_type: crm
func_id: getCustomerDetails
on_complete: known_customer
on_failure: unknown_customer
ParamRequiredNotes
phoneNumberNo**If omitted, uses the chat's local phone number.
fieldsNoExtra fields to request beyond the default set (name,id,user_type,phone,mobile). Must include a leading comma (e.g., ,email1,address). Field names match Senzey's internal contact field names.
Any other paramNoForwarded as-is to the Senzey API query.

Result: On success sets crmData.name, crmData.id, crmData.phone (falls back to mobile), crmData.status (Senzey user_type), and crmData.deepLink.
Any extra fields requested via fields are also returned in crmData under their Senzey field names (e.g., crmData.email1, crmData.city).
Returns on_failure if no match found.

Advanced

  senzey_lookup:
type: func
func_type: crm
func_id: getCustomerDetails
params:
fields: ",email1,address,city"
on_complete: known_customer
on_failure: unknown_customer

newOpportunity

Creates a new client or potential client in Senzey.

Basic

  senzey_new_lead:
type: func
func_type: crm
func_id: newOpportunity
on_complete: client_created
on_failure: client_failed
ParamTypeRequiredNotes
usePclientboolNoDefault false — posts to client/add.php. Set to true to post to pclient/add.php (potential client/lead).
x_namestringAuto-sent from chat title. Override only if needed.
x_phonestringAuto-sent as formatted phone. Override only if needed.
x_contentstringAuto-sent as conversation messages. Override only if needed.
x_email1stringNoClient email.
x_mobilestringNoMobile number.
x_identify_numberstringNoID document number.
x_birthdaydateNoFormat: dd/mm/yyyy.
x_addressstringNoClient address.
x_citystringNoCity.
x_commentsstringNoFree-text notes.
client_type_labelstringNoClient category label as configured in Senzey.
client_status_labelstringNoClient status label as configured in Senzey.

And more uncommon params can be found in Senzey API docs

Result: Returns crmData with the raw Senzey response.

Advanced

  senzey_new_lead:
type: func
func_type: crm
func_id: newOpportunity
params:
usePclient: true
x_email1: "%state:node.ask_email.text%"
x_comments: "מתעניין חוג"
on_complete: lead_created

closeTicket

Logs the conversation as an activity record on the contact.

When it runs: When a chat is resolved — records the transcript as an activity on the contact in Senzey.

Basic

  senzey_close:
type: func
func_type: crm
func_id: closeTicket
on_complete: done
on_failure: done

No params. Automatically sends x_name, x_phone, the full conversation as x_content, and a fixed Hebrew subject (תיעוד פניה ואטסאפ עסקי).

Result: success: true with lastMessageStoredInCRMTimestamp.


Senzey Onboarding (for Texter Support)

Message our contact at Senzey.

You send:

  • Project ID
  • API token with View + Send Template Messages scopes
  • WhatsApp phone number

Customer DB — crmConfig fields

FieldRequiredUse
serverYesBase URL of the customer's Senzey instance (e.g., https://client.senzey.com)
usernameYesReceived from Senzey during onboarding
passwordYesReceived from Senzey during onboarding