Actions20
Overview
This node integrates with the Linq API to manage chat-related operations. Specifically, for the Chat - Create operation, it allows users to create a new chat session by specifying participants and sending an initial message. This is useful in scenarios where you want to programmatically start conversations between multiple phone numbers, such as customer support chats, group messaging setups, or automated outreach campaigns.
For example, you can use this node to:
- Initiate a group chat among several phone numbers.
- Send a welcome message automatically when creating a new chat.
- Set a custom display name for the chat to identify it easily.
Properties
| Name | Meaning |
|---|---|
| Send From | The phone number from which the chat is sent (optional). |
| Display Name | The display name assigned to the chat (optional). |
| Phone Numbers | Comma-separated list of phone numbers to include as participants in the chat. |
| Message Text | The text content of the initial message to send in the chat. |
Output
The output JSON contains the response from the Linq API after creating the chat. It typically includes details about the newly created chat object and the initial message sent. The exact structure depends on the Linq API response but generally includes identifiers, participant information, timestamps, and message metadata.
No binary data output is produced by this operation.
Dependencies
- Requires an API authentication token credential for the Linq API.
- The node makes HTTP requests to
https://api.linqapp.com/api/partner/v2/chatsendpoint. - Proper configuration of the Linq API credentials in n8n is necessary for successful execution.
Troubleshooting
- Rate Limit Exceeded: If the node throws an error indicating "Rate limit exceeded. Please try again after 10 seconds.", it means too many requests were made in a short period. To resolve, implement retry logic with delays or reduce request frequency.
- Invalid Phone Numbers: Ensure that the phone numbers provided are correctly formatted and valid according to Linq API requirements.
- Missing Required Fields: The
phoneNumbersandmessageTextfields must be provided; otherwise, the API may reject the request. - Authentication Errors: Verify that the API token credential is correctly set up and has the necessary permissions.
Links and References
- Linq API Documentation (Assumed official docs URL)
- n8n HTTP Request Node Documentation (for understanding how HTTP requests work in n8n)