Overview
The "Lola CIP" node is designed to interact with a user profile system, specifically for managing and retrieving CIP (Customer Information Profile) tokens. It supports two main operations: claiming (creating or updating) a profile token and retrieving an existing profile token. This node is useful in workflows where you need to manage user identities or synchronize user data across platforms such as Telegram, WhatsApp, etc.
Practical examples:
- Automatically create or update a user's profile token when they register or update their information on your platform.
- Retrieve a user's profile token to verify their identity or fetch associated data during workflow execution.
Properties
| Name | Meaning |
|---|---|
| Profile ID | User Profile ID, must be unique and should be taken from Lola Profile V2. Required for all operations. |
| Token Operation | Selects the operation to perform: - Get: Get a profile - Claim: Set a profile; if it does not exist, create it; if it exists, update it. |
| CIP Token ID | Current CIP Token ID. Only required and visible when the operation is "Claim". |
| Platform ID | The current platform (e.g., telegram, whatsapp, etc.). Only required and visible when the operation is "Claim". |
Output
- The output is always attached to the
json.lola_cipfield of the item. - The structure of
lola_cipdepends on the operation:- For Claim: Contains the result of the claim operation, including a
statusfield (e.g.,"success"). - For Get: Contains the retrieved profile token data.
- For Claim: Contains the result of the claim operation, including a
- If the operation fails, the item is routed to the error output.
Example output:
{
"lola_cip": {
"status": "success",
// ...other fields depending on the API response
}
}
Dependencies
- May require credentials named
lolaKeyApi(optional, depending on configuration). - Relies on external functions
claimCIPTokenandgetCIPToken(presumably making API calls).
Troubleshooting
- Missing or invalid Profile ID: Ensure that the "Profile ID" is provided and matches a valid user in Lola Profile V2.
- Operation errors: If the API call fails (e.g., network issues, invalid token), the node will throw an error and route the item to the error output.
- Common error messages:
- "NodeOperationError" — Indicates an issue with the API call or input parameters. Check the error details for more information.
- Required fields for 'Claim': Make sure "CIP Token ID" and "Platform ID" are provided when using the "Claim" operation.
Links and References
- n8n Documentation
- Consult your Lola Profile V2 documentation for details about valid Profile IDs and token management.