Hello,
A first comment regarding your formJSON configuration (on widgets side).
What is important in the definition of a form input is the value of your "name" attribute.
I mean in your case:
{
"id": "custom_field_1",
"name": "Policy"
...
}
It means that in the chat session, this will be sent as a parameter with an attribute name "Policy" and the value that the customer entered in the Registration Form.
This will then be available in the PureCloud Conversation, within the "attributes" of the participant structure corresponding to the customer (as "context.Policy").
Lucie was recommending to use a Script to display such fields - https://help.mypurecloud.com/articles/about-scripting/
It provides more flexibility in terms of what you want to display and how you want to display information about the chat convresation (format/font/color).
The Interaction Details panel had been implemented for widgets v1 specifically.
The Script approach is not really complex.
You would need to create a Script (PureCloud Admin - Contact Center - Scripts).
The Script can be linked to conversations in different manner. But one easy way is to define it at the Queue level, in the Chat tab, in the "Default Script" (you can do this after you have created and published a Script - as explained below).
When you create a new Script, you can use the "Default Inbound Script" to help you start quickly.
When you get to the Script editor (for that new script), you would then have to select "Script Properties" (under the Script Menu) and enable the Chat Feature (toggle on).
Then, in Variables, create variables of type String, with a Name that corresponds to the parameter names you want to display (the ones you had set in your formJSON).
In your example, the variable name would be "Policy".
You must also set the Input toggle to On (that means that the Script will try to read a participant's attribute of name "Policy" from the incoming/inbound chat conversation).
You can then add Text objects and place them in your Script to display the value.
In "Insert Variables" (under the Text object properties), you will be able to select the variable you created (Policy).
It will then display: {{Policy}} [which means that the text object will display the value of the Policy variable]
There are also some Script built-in variables for Chat. When you add a Text object, in Insert Variables, you will identify them as the ones starting with "Chat.xxxx".
Once you are done, Save your script and Publish it.
You will then be able to link to the Queue as I mentioned above.
Hope this will help.