Actions39
- Panel Actions
- Message Actions
- Chatbot Actions
- Contact Actions
- Sequence Actions
- Session Actions
Overview
This node integrates with the WTS Chat API to manage contacts within the system. Specifically, the 'Create Contact' operation allows users to create a new contact or update an existing one based on provided details such as name, email, phone number, Instagram handle, annotations, tags, portfolios, custom fields, and metadata. It supports options to upsert (update if exists) or retrieve the contact if it already exists without updating. This node is useful for automating contact management workflows, such as adding new leads, updating customer information, or syncing contact data from other systems.
Use Case Examples
- Creating a new contact with name, email, and phone number.
- Updating an existing contact if it already exists using the upsert option.
- Adding tags and custom fields to a contact during creation.
Properties
| Name | Meaning |
|---|---|
| Name | The full name of the contact to create. |
| Tag Names or IDs | Tags to associate with the contact, selectable from a list or specified by IDs. |
| Phone Number | The contact's phone number. |
| The contact's email address. | |
| The contact's Instagram username. | |
| Annotation | A note or annotation about the contact. |
| Portfolio Names or IDs | Portfolios to associate with the contact, selectable from a list or specified by IDs. |
| Upsert | If enabled, updates the contact if it already exists instead of creating a new one. |
| Get If Exists? | If enabled, returns the existing contact without updating it if found. |
| Custom Fields | Custom key-value pairs to add to the contact's metadata. |
| Metadata | Additional metadata key-value pairs to associate with the contact. |
Output
JSON
json- The created or updated contact object returned from the WTS API.
Dependencies
- WTS API key credential for authentication
Troubleshooting
- Invalid email format error: Ensure the email address is correctly formatted.
- Missing required fields error: Ensure mandatory fields like name or phone number are provided.
- API authentication errors: Verify the WTS API key credential is correctly configured and valid.
Links
- n8n Expressions Documentation - Documentation on how to use expressions in n8n for dynamic values.