If you want to ask users for their name / email / phone / company or any other custom attributes, use a pre-chat form.
You can configure it in Settings → iOS apps
You can also set up custom attributes in SDK
ObjC:
configuration.userAttributes =
@[
// Custom attributes
[[HCSUserAttribute alloc] initWithAttributeName:@"Custom"
placeholder:@"My custom"
required:true],
[[HCSUserAttribute alloc] initWithAttributeName:@"Custom2"
placeholder:@"Please enter something"
required:false]
];
Swift:
configuration.userAttributes =
[HCSUserAttribute(attributeName: "Custom", placeholder: "Custom placeholder", required: true),
HCSUserAttribute(attributeName: "Custom2", placeholder: "Please enter something", required: false)]