Skip to main content

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.

image

2 . If contact press 1. As contact to provide their profile attributes like name and role

image

3 . Once the contact share the details use the node with the name manage profile and add the details to the profile.

image

4 . It will return success or failure. If it returns success add the values. in the contact variables.

image

Output after executing the flow (Create User)

image

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

image

2 . Use @contact.list_profiles to show all profiles that exist for this phone number.

image

3 . Use the manage profile node to switch the user profile

image

image

4 . On success, access the profile contact variables with @contact.fields.name

On Failure ask the contact to choose the option again.

image

Output after executing the flow (Switch User)

User profile 1.

image

User profile 2

image