Trying to read the attributes attached to the chat in Architect. But I am having some strange results.
- I am using the Web Chat tool https://developer.mypurecloud.com/developer-tools/#/webchat
- Using Widget 1.1:
- To get at a specific attribute, other posts mentioned using Get Participant Data with an expression like Chat.Guest.CustomFields[0].value
- Strangely, when I use .value, nothing is returned, but when I use .key I actually get the value as in Chat.Guest.CustomFields[0].key.
- Here is my flow in Architect to iterate through the keys of Chat.Guest.CustomFields:
- The output is:
0--oradaazo@hit.edu
1--619 Vono Pike
2--(258) 751-3869
3--
4--32956
5--Jazuzi
6--DF Mainstream Counselling
7--Ollie
8--
9--
10--
11--Moretti
12--TX
13--Cat
14--true
15--Dog
My objective is to retrieve the attached data so that I can, within Architect, make decisions to auto reply with a specific message and customize the routing.
My questions:
- Why is the data in .key and not .value?
- Can you access any and all of the data entered in the website form using Get Attribute? If yes, how?
Thank you