Summary
When you publish a WhatsApp Flow in Wati, custom attributes are automatically created to store the data submitted through the flow. Wati creates one attribute that stores the complete flow response in JSON format, along with separate custom attributes for each individual field. This article explains how these attributes are structured and where you can view them.
Instructions
How custom attributes are generated
After you publish a WhatsApp Flow, Wati automatically creates custom attributes for the flow.
These include:
A primary custom attribute that stores all submitted field values in JSON format.
Individual custom attributes for each field in the flow.
The primary custom attribute uses the flow name as a prefix, followed by _content.
Example
Suppose you publish a WhatsApp Flow named Lead with the following fields:
Name
City
Country
Wati generates the following custom attributes:
Primary custom attribute
The Lead_content custom attribute stores all submitted field values as a JSON object.
{
"lead_screen_0_textinput_0": "Abhijeet",
"lead_screen_0_textinput_1": "Delhi",
"lead_screen_0_textinput_2": "India"
}Individual custom attributes
Wati also creates a separate custom attribute for each field in the flow.
For example:
lead_screen_0_textinput_0→ Abhijeetlead_screen_0_textinput_1→ Delhilead_screen_0_textinput_2→ India
These attributes allow you to access individual field values without parsing the JSON stored in the primary custom attribute.
Where to view custom attributes
You can view the custom attributes generated by a WhatsApp Flow in the following locations:
WhatsApp Flow node in Chatbot Builder
Open the relevant chatbot in Chatbot Builder and select the WhatsApp Flow node to view the custom attributes generated for that flow.
Team Inbox
You can also view the generated custom attributes from the customer's conversation in Team Inbox. This allows agents to access the information submitted through the WhatsApp Flow while interacting with the customer.
Frequently Asked Questions (FAQs)
Custom attributes
1. What custom attributes are created when I publish a WhatsApp Flow?
When you publish a WhatsApp Flow, Wati automatically creates two types of custom attributes:
A primary custom attribute that stores all submitted field values in JSON format.
Individual custom attributes for each field in the flow.
2. What is the primary custom attribute used for?
The primary custom attribute stores all values submitted through the WhatsApp Flow as a single JSON object. The attribute name uses the flow name as a prefix, followed by _content.
3. Why are individual custom attributes created for each field?
Individual custom attributes store the value of each field separately, allowing you to access individual field values without parsing the JSON stored in the primary custom attribute.
4. How are WhatsApp Flow custom attributes named?
The primary custom attribute is named using the flow name followed by _content. Individual custom attributes are created for each field in the flow using automatically generated field identifiers.
Viewing custom attributes
5. Where can I view the custom attributes generated by a WhatsApp Flow?
You can view WhatsApp Flow custom attributes in the following locations:
The WhatsApp Flow node in Chatbot Builder
The customer's conversation in Team Inbox
6. How do I view custom attributes in Chatbot Builder?
Open the relevant chatbot in Chatbot Builder, then select the WhatsApp Flow node to view the custom attributes generated for that flow.
7. Can I view WhatsApp Flow custom attributes in Team Inbox?
Yes. You can view the custom attributes from the customer's conversation in Team Inbox, allowing agents to access the information submitted through the WhatsApp Flow while interacting with the customer.
