Greetings from Zoho SalesIQ!
Sometimes, it becomes necessary to keep visitor details recorded to make conversations more personal. For this, Zoho SalesIQ's Zobots can be configured to update details from certain fields during a visitor-chatbot conversation using the field_name attribute.
This attribute can be used to update the visitor name, email, phone number, etc. in SalesIQ. Other details like ID, city, etc. can also be updated using the field_name.
All information other than visitor name, email and phone will be updated in the custom info section of the particular visitor.
Sample Code:
1. To update the visitor's name:
- replies = [
- {
- "text":"Your name",
- "field_name":"siq_name"
- }
- ];
- response.put("replies",replies);
2. To update the visitor's email address:
- replies =
- [
- {
- "text":"Your email address",
- "field_name":"siq_email"
- }
- ];
- response.put("replies",replies);
3. To update the visitor's phone number:
- replies =
- [
- {
- "text":"Your phone number",
- "field_name":"siq_phone"
- }
- ];
- response.put("replies",replies);
4. To update the visitor's ID in custom info:
- replies = [
- {
- "text":"Your ID",
- "field_name":"siq_id"
- }
- ];
- response.put("replies",replies);
5. To update the visitor's serial number in custom info:
- replies = [
- {
- "text":"Your serial number",
- "field_name":"siq_serialnumber"
- }
- ];
- response.put("replies",replies);