Hello Genesys Cloud
Please are we able to customise the Interaction Details presented to an agent when they answer a webchat based on the inputs from a customer?
Using the default webchat userData as below, I do see this coming through on the interaction details.
userData: {
addressStreet: '64472 Brown Street',
addressCity: 'Lindgrenmouth',
addressPostalCode: '50163-2735',
addressState: 'FL',
phoneNumber: '1-916-892-2045 x293',
phoneType: 'Cell',
customerId: '59606',
}
What I am looking for is the Interaction Details populated by the inputs from the customer.
When I remove the userData as above, the only two fields that populate from the customer input are Customer Name and Customer Email.
I'm using the auto-loading webchat and my form object looks like
webchat: {
userData: {},
emojis: true,
chatButton: {
enabled: true,
openDelay: 1000,
effectDuration: 300,
hideDuringInvite: true
},
form: {
wrapper: '<table></table>',
inputs: [
{
id: 'cx_webchat_form_firstname',
name: 'firstname',
maxlength: '100',
placeholder: 'Required',
label: 'First Name',
},
{
id: 'cx_webchat_form_lastname',
name: 'lastname',
maxlength: '100',
placeholder: 'Required',
label: 'Last Name',
},
{
id: 'cx_webchat_form_email',
name: 'email',
maxlength: '100',
placeholder: 'Required',
label: 'Email',
},
{
id: 'custom_field_1',
name: 'number',
maxlength: '10',
placeholder: '07 or 04 number',
label: 'Phone',
},
{
id: 'cx_webchat_form_subject',
name: 'subject',
maxlength: '100',
placeholder: 'Energy bill enquiry',
label: 'Subject',
}
],
},