Actions21
- Contato Actions
- LiveChat Actions
- Tag Actions
- WhatsApp Template Actions
- Campo Personalizado Actions
- Disparo Actions
- Fluxo Actions
Overview
This node integrates with the uChat API to manage custom fields for contacts. Specifically, the 'Definir Valor' operation allows users to set the value of a single custom field for a specified contact identified by a unique user identifier (user_ns). This is useful in scenarios where you want to update or assign specific custom data to a contact, such as preferences, tags, or other personalized information.
Use Case Examples
- Setting a custom field value to track a user's subscription status.
- Updating a contact's preferred language or region in a custom field.
Properties
| Name | Meaning |
|---|---|
| User NS | Unique identifier of the contact (user_ns) for whom the custom field value will be set. |
| Nome Ou ID Do Campo Name or ID | The name or ID of the custom field to set. Can be selected from a list or specified using an expression. |
| Valor Do Campo | The value to assign to the specified custom field for the contact. |
Output
JSON
*- Response from the uChat API after setting the custom field value, typically including confirmation or updated contact data.
Dependencies
- Requires an API key credential for authenticating with the uChat API at https://www.uchat.com.au/api.
Troubleshooting
- Ensure the 'userNs' (user_ns) is correctly specified and corresponds to an existing contact; otherwise, the API call may fail.
- The 'fieldName' must be a valid custom field name or ID recognized by the uChat system; invalid names or IDs will cause errors.
- The 'fieldValue' should be a valid string; improper formatting or unsupported values might cause the API to reject the request.
- Common error messages may include authentication failures (check API credentials), invalid parameters (check field names and user_ns), or network issues (verify connectivity to the uChat API).
Links
- n8n Expressions Documentation - Documentation on how to use expressions in n8n to dynamically specify field names or values.
- uChat API Documentation - Official API documentation for uChat, detailing endpoints and usage for managing custom fields and contacts.