Lola NLP AI
AI-generatedOverview
The Lola NLP AI node enables conversational AI interactions within n8n workflows. It sends user messages, context, and configuration to the Lola AI service, which responds with generated replies or commands. The node supports both synchronous (waits for a response) and asynchronous (returns immediately; response handled by another node) operation modes. This is useful for building chatbots, virtual assistants, or automated customer support agents that require contextual understanding and personality customization.
Example scenarios:
- Automating customer support chats with tailored personalities.
- Creating multilingual or culturally adapted chatbot experiences.
- Integrating AI-driven responses into messaging platforms like Telegram.
Properties
| Name | Meaning |
|---|---|
| Personality and Skills | Select one or more traits to define the assistant's style and background: - Customer Chat - Friendly - Mexican - Sarcastic - Spanish |
| Knowledge Base | The knowledge base text used to train the AI on the conversation's context. This helps the assistant understand and respond appropriately. |
| Mode | Choose how the node operates: - Sync: Waits for Lola's response and outputs it directly. - Async: Returns immediately; response will be available in the Lola Callback node. |
| Assistant Name | The name of the assistant (e.g., "Lola"). Required. |
| Incoming Message | The user's incoming message text. Required. |
| Chat Identifier | A unique identifier for the chat session. Required. |
| Message Identifier | An optional identifier to track the specific message. |
| Source ID | Identifies the source platform of the message (e.g., "Telegram"). Required. |
| Metadata | Optional key-value pairs to provide additional context or parameters to the AI. Each entry has a Name and Value. |
Output
- The node outputs an array with two possible branches:
- First output: Contains items with the AI's response in
json.lola_response. - Second output: If the response includes a command, the item is routed here instead.
- First output: Contains items with the AI's response in
Structure of json.lola_response:
{
// ...other fields from the Lola API response,
"source": {
"content": {
// ...response content fields except 'prompt'
}
},
"command": { /* present if a command is returned */ }
}
- The
lola_responsefield contains the full response from the Lola AI service, minus the original prompt for privacy/security. - If a command is present in the response, the item is sent to the second output branch.
Dependencies
- External Service: Requires access to the Lola AI API endpoint.
- Credentials: Optionally uses
lolaKeyApicredentials if configured. - n8n Configuration: No special environment variables are required unless specified by the Lola API documentation.
Troubleshooting
Common issues:
- Missing required properties: If required fields (Assistant Name, Incoming Message, Chat Identifier, Source ID) are not provided, the node may throw parameter validation errors.
- API errors: If the Lola API is unreachable or returns an error, the node may fail with an error message indicating the issue.
- Async mode confusion: In async mode, users must use the Lola Callback node to handle the actual response.
Error messages and resolutions:
- "Missing required parameter...": Ensure all required input fields are filled.
- "Request failed with status code...": Check your network connection and Lola API credentials.
- "Response: undefined": The Lola API did not return a valid response; check the request payload and API status.
Links and References
- n8n Documentation
- (If available) Lola AI API documentation (refer to your provider for details)