Lola Profile icon

Lola Profile

Lola Profile Node

Overview

The Lola Profile node allows you to either retrieve ("Get") or update ("Set") a user's profile information within the Lola system. This node is useful in workflows where you need to fetch user details based on a channel identifier (such as phone number, email, or Telegram ID), or update user attributes like name, contact info, date of birth, and custom metadata.

Common scenarios:

  • Fetching a user's profile for personalization or verification.
  • Updating user profiles with new information collected from forms, chatbots, or integrations.
  • Storing additional metadata about users for segmentation or analytics.

Practical examples:

  • Retrieve a user's profile using their phone number when they interact with your chatbot.
  • Update a user's email and add custom metadata after they complete a registration form.

Properties

Name Meaning
Operation Selects the action to perform:
• Get – Get a profile
• Set – Set a profile
User Channel Identifier (Get only) An identifier for the user in this channel (e.g., phone number, email, Telegram ID). Required for "Get" operation.
User Identifier (Set only) An identifier for the user (e.g., phone number, email, etc.). Required for "Set" operation.
First Name (Set only) The user's first name to set in the profile.
Last Name (Set only) The user's last name to set in the profile.
Email (Set only) The user's email address to set in the profile.
Phone Number (Set only) The user's phone number to set in the profile.
Date of Birth (Set only) The user's date of birth to set in the profile (format: YYYY-MM-DD).
Metadata (Set only) Add key-value pairs as additional metadata. Each entry has:
• Name: Metadata key
• Value: Value to set for the metadata key
Metadata JSON (Set only) Add key-JSON pairs as additional metadata. Each entry has:
• Name: Metadata key
• JSON: JSON object/value to set for the metadata key

Output

  • For "Get" operation:
    The output will be the input item(s) with an added field:

    {
      "lola_profile": { /* profile data returned by Lola */ }
    }
    
    • lola_profile: Contains the full profile object retrieved for the specified user channel identifier.
  • For "Set" operation:
    The output will be the same as the input items. No additional fields are added to the output.

  • Binary Data:
    This node does not output binary data.

Dependencies

  • May require credentials named lolaKeyApi if configured.
  • Relies on external functions (getProfile, setProfile) likely interacting with the Lola API/service.

Troubleshooting

  • Missing Required Fields:
    • If "User Channel Identifier" (for Get) or "User Identifier" (for Set) is missing, the node may throw an error indicating a required parameter is missing.
  • Invalid Date Format:
    • For "Date of Birth", ensure the value is in YYYY-MM-DD format; otherwise, errors may occur during processing.
  • Metadata Issues:
    • Ensure that metadata keys are unique and values are valid strings or JSON objects as appropriate.
  • API Errors:
    • If the underlying Lola service/API is unreachable or returns an error, the node may fail with a message from the API.

Links and References

  • n8n Documentation
  • (If available) Refer to your Lola API documentation for details on profile structure and requirements.

Discussion