Lola Profile icon

Lola Profile

Lola Profile Node

Lola Profile

AI-generated

Overview

The Lola Profile node allows you to either retrieve ("Get") or update ("Set") a user's profile based on various identifiers and profile fields. This node is useful in workflows where you need to fetch user information for personalization, validation, or logging purposes, or when you want to update user details such as name, contact info, or custom metadata.

Common scenarios:

  • Fetching a user's profile using their channel identifier (e.g., phone number, email, Telegram ID).
  • Updating a user's profile with new information, including custom metadata.
  • Integrating user profile management into automated workflows for CRMs, support systems, or messaging platforms.

Practical examples:

  • Retrieve a user's profile before sending them a personalized message.
  • Update a user's email and add custom tags after they complete a form.

Properties

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

Output

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

    {
      "lola_profile": { /* profile data returned from getProfile */ }
    }
    
    • lola_profile: Contains the retrieved user profile object.
  • 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 (not strictly required by default).
  • Relies on external functions getProfile and setProfile (from ../GenericFunctions), which likely interact with an external service or API.

Troubleshooting

Common issues:

  • Missing required fields:
    • For "Get", ensure "User Channel Identifier" is provided.
    • For "Set", ensure "User Identifier" is provided.
  • Invalid date format:
    • When setting "Date of Birth", use the format YYYY-MM-DD.
  • Metadata errors:
    • Ensure that metadata keys and values are correctly filled; malformed JSON in "Metadata JSON" may cause errors.

Error messages:

  • Errors from missing parameters or invalid formats will typically result in workflow execution errors. Double-check required fields and formats.
  • If the underlying API returns errors (e.g., user not found, invalid identifier), these will surface as node errors.

Links and References

  • n8n Documentation
  • For integration-specific documentation, refer to your Lola Profile API or service provider's documentation.

Discussion