Superchat icon

Superchat

Receive and send messages from WhatsApp, Instagram, Messenger, E-Mail, SMS, via Live Chat and Telegram.

Contact → Update Contact

AI-generated

Overview

This node updates an existing contact's information in the Superchat system. It is useful for scenarios where you need to modify contact details such as name, gender, email addresses, phone numbers, or custom attributes. For example, updating a contact's email after they change it or adding new phone numbers to their profile.

Use Case Examples

  1. Updating a contact's first and last name based on new information.
  2. Changing the gender attribute of a contact.
  3. Adding multiple email addresses or phone numbers to a contact.
  4. Modifying custom attributes specific to the contact's profile.

Properties

Name Meaning
Contact ID The unique identifier of the contact to update, which starts with 'co_'.
First Name The first name of the contact.
Last Name The last name of the contact.
Gender The gender of the contact, with options to not update, female, male, or diverse.
Email Addresses A collection of email addresses associated with the contact, allowing multiple values.
Phone Numbers A collection of phone numbers associated with the contact, allowing multiple values.
Custom Attributes Custom attributes mapped to the contact, allowing flexible additional data fields.

Output

JSON

  • id - The unique identifier of the updated contact.
  • firstName - The updated first name of the contact.
  • lastName - The updated last name of the contact.
  • gender - The updated gender of the contact.
  • emails - The updated list of email addresses of the contact.
  • phoneNumbers - The updated list of phone numbers of the contact.
  • customAttributes - The updated custom attributes of the contact.

Dependencies

  • Requires an API key credential for Superchat API authentication.

Troubleshooting

  • Common issues include providing an invalid or missing Contact ID, which will cause the update to fail.
  • Errors may occur if the email or phone number formats are incorrect or if required fields are missing.
  • If the 'Do Not Update' option is selected for gender, the gender field remains unchanged.
  • Ensure the API key credential is valid and has the necessary permissions to update contacts.

Links

  • Superchat API Documentation - Official documentation for the Superchat API, useful for understanding contact update operations and required parameters.

Discussion