Lola Command Trigger v2 icon

Lola Command Trigger v2

Starts the workflow on a Lola Command is received.

Overview

This node acts as a trigger that starts an n8n workflow when a Lola Command is received via a webhook. It listens for incoming POST requests containing Lola Command data and categorizes the data into three types: text messages, commands, and interactive lists. Each type of data is then output through separate channels for further processing in the workflow. This node is useful for automating responses or actions based on Lola Command inputs, such as handling user commands, processing text messages, or managing interactive list selections.

Use Case Examples

  1. Automate customer support responses based on Lola commands.
  2. Trigger different workflow branches depending on whether the input is a text message, a command, or an interactive list selection.
  3. Log or process Lola Command data for analytics or monitoring.

Output

JSON

  • msg - Output for text type Lola Command responses
  • list - Output for interactiveList type Lola Command responses
  • cmd - Output for command type Lola Command responses

Dependencies

  • Requires an API key credential for Lola API authentication to register and manage the webhook.

Troubleshooting

  • Ensure the Lola API key credential is correctly configured and has the necessary permissions.
  • Verify that the webhook URL registered with Lola matches the URL generated by the node to avoid webhook registration failures.
  • Check the incoming payload structure to confirm it contains a 'type' field with values 'text', 'command', or 'interactiveList' as expected.

Discussion