Lola Messanger Trigger icon

Lola Messanger Trigger

Starts the workflow on a Lola Message is received.

Overview

The Lola Messanger Trigger node is designed to start an n8n workflow when a message or event is received from the Lola Messenger platform via webhook. It listens for incoming HTTP POST requests at a specific endpoint and triggers workflows based on the type of data received (message or event). This node is particularly useful for automating responses, processing messages, or handling events in real-time as they arrive from Lola Messenger.

Practical examples:

  • Automatically log incoming chat messages to a database.
  • Trigger notifications or alerts when specific events occur in Lola Messenger.
  • Integrate Lola Messenger with other systems (e.g., CRM, support platforms) by reacting to new messages or events.

Properties

Name Meaning
Account ID A unique identifier for the account. Required to associate the webhook with your account.
Inbox ID A unique identifier for the inbox. Used to specify which inbox the webhook should monitor.

Output

The node outputs data in three possible channels (main outputs):

  1. msg: Contains message data when a "message" type is received.
  2. list: (Unused in current logic; always empty.)
  3. events: Contains event data when an "event" type is received.

Each output item has the following structure in its json field:

{
  "lola_omnichannel": "<content>"
}

Where <content> is the content of the message or event received from Lola Messenger.

Note: The node does not output binary data.

Dependencies

  • External Service: Requires access to the Lola Messenger API.
  • API Key: Needs valid credentials (lolaKeyApi) configured in n8n.
  • Webhook Configuration: The node automatically registers and manages webhooks with Lola Messenger using the provided Account ID and Inbox ID.

Troubleshooting

Common Issues:

  • Invalid Credentials: If the API key is incorrect or missing, the node will fail to register the webhook.
  • Incorrect Account/Inbox ID: Providing wrong IDs may result in no data being received or errors during webhook registration.
  • Webhook Not Triggering: Ensure that the webhook URL is accessible from Lola Messenger and that the node is active in n8n.

Error Messages and Resolutions:

  • "401 Unauthorized" or similar: Check and update your Lola Messenger API credentials in n8n.
  • "Webhook already exists" or "Webhook not found": Try deleting and recreating the node to reset the webhook registration.
  • No data received: Double-check the Account ID and Inbox ID values, and ensure Lola Messenger is sending data to the correct webhook URL.

Links and References

Discussion