Multiple Contactsprofiles with one phone number
It has been observed in some cases, beneficiaries have one phone number and there is more than one person who needs to have their profile created to access the Chat.
In Glific we have introduced a multiple profile feature, which will help more than one person to create their profiles and use the chatbot to access the information with one phone number.
Below are the steps on how to implement multiple profile features in your flow.
Create New Profile
1 . Create a new flow and ask a question, the contact if he/she wants to create a new profile.
2 . If contact press 1. As contact to provide their profile attributes like name and role
3 . Once the contact share the details use the node with the name manage profile
and add the details to the profile.
4 . It will return success or failure. If it returns success add the values. in the contact variables.
Output after executing the flow (Create User)
Access Old profile
To access the old profile or the profile just create.
1 . Enter option 2 (Switch to the existing user) in the first node created
2 . Use @contact.list_profiles
to show all profiles that exist for this phone number.
3 . Use the manage profile
node to switch the user profile
4 . On success, access the profile contact variables with @contact.fields.name
On Failure ask the contact to choose the option again.
Output after executing the flow (Switch User)
User profile 1.
User profile 2