PureConnect

 View Only
Discussion Thread View
  • 1.  Chat Widget - Interaction Attributes

    Posted 07-18-2022 11:04
    Hello all,

    We are running PureConnect CIC 2021 R4 and I just starting working on configuring a new chat widget to update our chat look and feel of our chat using Interaction Connect. I have created the form to start the chat but I need to use the email address that the visitor enters in the field as an attribute in the interaction that can be used in a handler. Does anyone know how I can get the user filled data in the chat widget form to appear as an attribute in CIC?
    Let me know if any other info is needed.

    WebChat widget output using the JSON definition above
    Thanks
    #ArchitectureandDesign
    #AskMeAnything(AMA)
    #Unsure/Other

    ------------------------------
    Chudi Igboemeka

    Start.ca
    ------------------------------


  • 2.  RE: Chat Widget - Interaction Attributes

    Posted 07-19-2022 09:04
    Edited by Kristin Rappe 07-19-2022 09:05
    Hi Chudi,
    We're running Pure Connect Cloud 2021 R3. We host a custom JSON file on our web server. There we assign a label to the values that will be used in the handler. Hope this helps!

    {
    "wrapper": "<table></table>",
    "inputs": [

    {
    "id": "cx_webchat_form_firstname",
    "name": "firstname",
    "maxlength": "100",
    "placeholder": "@i18n:webchat.ChatFormPlaceholderFirstName",
    "label": "@i18n:webchat.ChatFormFirstName"
    },

    {
    "id": "cx_webchat_form_lastname",
    "name": "lastname",
    "maxlength": "100",
    "placeholder": "@i18n:webchat.ChatFormPlaceholderLastName",
    "label": "@i18n:webchat.ChatFormLastName"
    },

    {
    "id": "cx_webchat_form_email",
    "name": "email",
    "maxlength": "100",
    "placeholder": "Required",
    "label": "@i18n:webchat.ChatFormEmail"
    },

    {
    "id": "cx_webchat_form_serialnumber",
    "name": "serialnumber",
    "maxlength": "20",
    "placeholder": "Optional",
    "label": "Serial Number"
    },

    {
    "id": "cx_webchat_form_subject",
    "name": "subject",
    "maxlength": "100",
    "placeholder": "Required",
    "label": "@i18n:webchat.ChatFormSubject",
    "type": "select",
    "options": [
    {
    "text": "General Question",
    "value": "General Question"
    },
    {
    "text": "Product Concern",
    "value": "Product Concern"
    },
    {
    "text": "Shop",
    "value": "Shop"
    },
    {
    "text": "Website Suggestion",
    "value": "Website Suggestion"
    },
    {
    "text": "Other",
    "value": "Others"
    }
    ]
    },

    ]
    }

    ------------------------------
    Kristin Rappe
    Roche Diabetes Care, Inc.
    ------------------------------



  • 3.  RE: Chat Widget - Interaction Attributes

    Posted 07-20-2022 13:53
    Hi Kristin,

    Thanks for sharing this. We also use a custom JSON that we have added using the 'custom json' field in Interaction Connect similar to yours. Did you also use Interaction Connect to add the custom JSON? When the chat comes into the queue, I don't see the email address when I look at the the interaction attributes in the handler. Does the email address appear in the interaction attributes? I'm unsure how to access that info?

    Chudi

    ------------------------------
    Chudi Igboemeka

    Start.ca
    ------------------------------