How to set labels and attributes from a WhatsApp chatbot
Drag Set Label or Set Attribute from Data Blocks. Labels organize chats. Attributes store custom fields (and can drive Events). You can use a session variable from Ask Question, Form, or API.
Prerequisites
- Labels in Settings → Labels. See How to create and assign contact labels.
- Attributes in Settings → Attributes. See How to create contact attributes.
- A chatbot. See How to build a WhatsApp chatbot.
Step-by-step
Open the chatbot
Open Automation → Chatbots. Edit.Drag Set Label
Components → Data Blocks → Set Label. Pick the label to apply when the node runs.Drag Set Attribute
Data Blocks → Set Attribute. Choose the attribute. Set a static value or Use session variable (Ask Question / Form / API).Place them after capture
Put Ask Question or Form before Set Attribute if you store the reply.Save
Click Save. Confirm on Contacts that the field and label updated after a test chat.
TIP
Date attributes you set here can fire Based on a date events. See How to send a date-based WhatsApp event.
WARNING
Create the label or attribute in Settings first. The node lists only existing ones.
FAQ
Can I set name or phone here?
Use dedicated contact fields from Ask Question / import. Set Attribute is for custom attributes you created.