Lola Rephrasing icon

Lola Rephrasing

Lola NLP Rephrasing

Lola Rephrasing

AI-generated

Overview

The Lola Rephrasing node is designed to rephrase a given text using NLP techniques. It can generate alternative phrasings for the input text, optionally applying a specific tone or style. This node is useful in scenarios where you want to avoid repetitive language, create more engaging content, or adapt messages for different audiences. For example, it can be used to rewrite marketing copy, paraphrase user-generated content, or generate variations of chatbot responses.

Properties

Name Meaning
Bypass Rephrase Whether to skip the rephrasing process and return the original text as-is.
Text The text to rephrase. (Required)
Enable Cache Whether to enable caching for random phrases.
Rephrase Text Sample Size The number of alternative phrases to generate for rephrasing. Leave empty to use the default value.
Rephrasing Tone The tone to apply to the rephrased text. Example values: informal, cheerful, sarcastic, ironic, happier, etc. Leave empty for the default tone.

Output

The node outputs a JSON object under the key lola_rephrase with the following structure:

{
  "lola_rephrase": {
    "sourceText": "<original input text>",
    "rephrasedText": "<selected rephrased version or original if bypassed>",
    "samples": [
      "<alternative phrasing 1>",
      "<alternative phrasing 2>",
      "... (up to sample size)"
    ]
  }
}
  • sourceText: The original text provided as input.
  • rephrasedText: The selected rephrased version (randomly chosen from generated samples), or the original text if bypass is enabled or no alternatives are found.
  • samples: An array of all generated alternative phrasings, including the one selected as rephrasedText.

Dependencies

  • May require an external NLP service for rephrasing (as indicated by the use of a function like rephraseMessage).
  • Optionally uses a credential named lolaKeyApi, but it's not strictly required.
  • No mandatory n8n environment variables are specified.

Troubleshooting

  • No Alternatives Generated: If the NLP service cannot generate alternative phrasings, the output will contain only the original text in both rephrasedText and samples.
  • Credential Issues: If the node is configured to use an API key (lolaKeyApi) and it's missing or invalid, rephrasing may fail.
  • Invalid Input: If the required "Text" property is empty, the node may throw an error or produce no output.
  • Unexpected Output: If "Bypass Rephrase" is enabled, the node will always return the original text without any changes.

Links and References

Discussion