In Zenvia Customer Cloud, the action Consult ZIP code can be used to retrieve details of the zip code entered by the customer. It receives the number entered by the customer during the conversation and from there, it retrieves additional data such as: Street, Neighborhood, City, and State.
It is recommended to use this action when it's necessary to confirm if the address provided by the customer is correct. A very common application of this action is to ask the customer for their zip code and then display a new message to them with Street, Neighborhood, City, and State, and ask if they confirm the address.
How to Access
The Consult ZIP code content is available in the Constructor, and to access it, simply click on the three dots of the block or anywhere within it.
This will open the Block Details modal, then follow these instructions:
- Click on Add content > Conversation actions > Consult ZIP code.
- Choose User Input, if the zip code you want to look up is the last message the customer sent to the chatbot;
- Or choose Variable, if you have asked any other question before the action, for the chatbot to consider the zip code saved previously.
- Select Save address in service, if you wish for the identified data to be saved in the Calls.
- Click outside of this open block to save, and the Consult ZIP code will be included.
💡 Tip: To display the identified data from the entered zip code, use the notation <?response_zip.result?>
in the following messages. For example, if you want to display all the identified data, your text message will look like this:
Data Sent
I located the following data:
Street: <?response_zip.result.logradouro?>
Neighborhood: <?response_zip.result.bairro?>
City: <?response_zip.result.localidade?>
State: <?response_zip.result.uf?>
Quick responses
Do you confirm the located data? Yes - No.
Once done, create your flow and continue with the assistance.