Lola Append History L2 icon

Lola Append History L2

Lola Agent Hook

Overview

This node, Lola Append History L2, is designed to interact with a Lola Agent by appending a message to a chat history. It is typically used in workflows where you need to record or forward messages (from either an AI or a human) into a specific chat session managed by the Lola Agent system. Common scenarios include building conversational bots, logging chat interactions, or integrating external messaging systems with Lola's chat infrastructure.

Practical Example:
You might use this node to log every user and AI response during a customer support conversation, ensuring that the full context is available for future reference or analytics.

Properties

Name Meaning
From Specifies the sender of the message. Options: "AI" or "Human".
Chat Identifier A unique identifier for the chat session. Required to associate the message correctly.
Message The content of the message to send to the Lola Agent. Required.

Output

The node outputs a JSON object with the following structure:

{
  "lola_response": { /* Response from setValueFromL2AppentHistory function */ }
}
  • lola_response: Contains the result returned by the Lola Agent after appending the message to the chat history. The exact structure depends on the Lola Agent's API but will typically include status information or updated chat data.

Dependencies

  • External Service: Requires access to the Lola Agent system.
  • Credentials: Optionally uses lolaKeyApi credentials if configured in n8n.
  • n8n Configuration: No special environment variables are required unless specified by the Lola Agent integration.

Troubleshooting

  • Missing Chat Identifier: If the "Chat Identifier" property is empty or invalid, the node may fail to append the message. Ensure this field is populated with a valid chat ID.
  • Invalid Credentials: If the Lola Agent requires authentication and credentials are missing or incorrect, you may receive authentication errors.
  • API Errors: Any issues with the Lola Agent service (e.g., downtime, network issues) will be reflected in the lola_response output. Check the response for error messages.

Links and References

  • n8n Documentation
  • Consult your Lola Agent documentation for details on chat identifiers and message formats.

Discussion